Skip to content

Commit

Permalink
fapi tests: Fix layer check for TPM2_RC_COMMAND_CODE.
Browse files Browse the repository at this point in the history
A bit mask for the layer of the return code was not used in one case
of the  integration test fapi-key-create-policies-sign.int.c

Signed-off-by: Juergen Repp <[email protected]>
Co-authored-by: Johannes Holland <[email protected]>
  • Loading branch information
JuergenReppSIT and joholl committed Jul 3, 2023
1 parent 27087c3 commit 8dc96b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/fapi-key-create-policies-sign.int.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ test_fapi_key_create_policies_sign(FAPI_CONTEXT *context)
if (number_rc(r) == TPM2_RC_PP) {
LOG_WARNING("Test requires physical presence.");
goto skip;
} else if (r == TPM2_RC_COMMAND_CODE) {
} else if (base_rc(r) == TPM2_RC_COMMAND_CODE) {
LOG_WARNING("Command not supported, probably PolicyPhysicalPresence");
goto skip;
}
Expand Down

0 comments on commit 8dc96b2

Please sign in to comment.