commit | cc7db8c8f934d5b7c972e071544193c78727bf55 | [log] [tgz] |
---|---|---|
author | Etienne Carriere <etienne.carriere@foss.st.com> | Tue Nov 21 22:08:31 2023 +0100 |
committer | Jérôme Forissier <jerome@forissier.org> | Wed Nov 22 09:46:32 2023 +0100 |
tree | c10135c8bb61c5e81251df927595d72d3aff7d3f | |
parent | 4f91b9acdf7c1a969c91bda873928f21dd420153 [diff] |
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: 2d6dc9312935 ("xtest: pkcs11: add symmetric cipher tests") Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers