From 753cbcf74fed6aab883d00512bbe904391a4e1f6 Mon Sep 17 00:00:00 2001 From: Juergen Repp Date: Wed, 20 Mar 2024 10:34:04 +0100 Subject: [PATCH] esys-test: skip test esys-pcr-auth-value. Test is skipped if setting of an auth value is not allowed for a pcrNum. Signed-off-by: Juergen Repp --- test/integration/esys-pcr-auth-value.int.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/esys-pcr-auth-value.int.c b/test/integration/esys-pcr-auth-value.int.c index f666674a2..ba0409826 100644 --- a/test/integration/esys-pcr-auth-value.int.c +++ b/test/integration/esys-pcr-auth-value.int.c @@ -39,7 +39,7 @@ test_esys_pcr_auth_value(ESYS_CONTEXT * esys_context) int failure_return = EXIT_FAILURE; /* - * PCR register 20 belongs to the policy group and the auth value group. + * PCR register 21 belongs to the policy group and the auth value group. * PCRs of these groups can be used for SetAuthValue and SetAuthPolicy. */ ESYS_TR pcrHandle_handle = 20; @@ -60,7 +60,8 @@ test_esys_pcr_auth_value(ESYS_CONTEXT * esys_context) ); - if ((r == TPM2_RC_COMMAND_CODE) || + if ((r == TPM2_RC_VALUE) || + (r == TPM2_RC_COMMAND_CODE) || (r == (TPM2_RC_COMMAND_CODE | TSS2_RESMGR_RC_LAYER)) || (r == (TPM2_RC_COMMAND_CODE | TSS2_RESMGR_TPM_RC_LAYER))) { LOG_WARNING("Command TPM2_PCR_SetAuthValue not supported by TPM.");