Skip to content
Commit cc7db8c8 authored by Etienne Carriere's avatar Etienne Carriere Committed by Jérôme Forissier
Browse files

xtest: pkcs11: fix false positive error report on CKR_HOST_MEMORY



Fix false positive error cases in tests pkcs11_1004 and pkcs11_1007.

In the pkcs11_1004 test, the client creates as many PKCS#11 objects
as possible until the system fails on memory allocation error. In the
pkcs11_1007 test, the client prepares as many cipher sessions as
possible until the system fails on memory allocation error. Both
test implementations consider only CKR_DEVICE_MEMORY return code as
the condition for expected resource exhaustion while they should also
consider the host resource exhaustion return code CKR_HOST_MEMORY.

Fixes: 2d6dc931 ("xtest: pkcs11: add symmetric cipher tests")
Reviewed-by: Joakim Bech's avatarJoakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
parent 4f91b9ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment