Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xtest: pkcs11: fix false positive error report on CKR_HOST_MEMORY
Fix false positive error case in test 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: 2d6dc93 ("xtest: pkcs11: add symmetric cipher tests") Signed-off-by: Etienne Carriere <[email protected]>
- Loading branch information