selftests: tpm: add async space test with noneexisting handle
authorTadeusz Struk <tstruk@gmail.com>
Sun, 16 Jan 2022 01:26:27 +0000 (17:26 -0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Sun, 20 Feb 2022 23:22:05 +0000 (00:22 +0100)
commitabbcefc9643774ca1738c95334b0091bb726757e
tree7d37a22ae7d7b7bf2fc604c99620ea031e7b30a1
parentcc63c34051499d325642d62f0041f79377f1ab44
selftests: tpm: add async space test with noneexisting handle

Add a test for /dev/tpmrm0 in async mode that checks if
the code handles invalid handles correctly.

Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <linux-integrity@vger.kernel.org>
Cc: <linux-kselftest@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Tested-by: Jarkko Sakkinen<jarkko@kernel.org>
Signed-off-by: Tadeusz Struk <tstruk@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
tools/testing/selftests/tpm2/tpm2_tests.py