Skip to content

Commit

Permalink
esys-test: skip test esys-pcr-auth-value.
Browse files Browse the repository at this point in the history
Test is skipped if setting of an auth value is not allowed for a pcrNum.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Mar 21, 2024
1 parent e7bc5fc commit 753cbcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/esys-pcr-auth-value.int.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.");
Expand Down

0 comments on commit 753cbcf

Please sign in to comment.