Skip to content

Commit

Permalink
Fix cap test failure for 1.2 only device.
Browse files Browse the repository at this point in the history
We need to skip the mut_auth_cap == 1 and encap_cap == 0 test.

Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Oct 26, 2023
1 parent 09d3254 commit ee8e55f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,11 +664,8 @@ void spdm_test_case_capabilities_invalid_request (void *test_context)
spdm_request_new.flags = invalid_flags_v11[index];

/*the mut_auth_cap == 1 and encap_cap == 0 case need check for version1.1 only*/
if (index == 2) {
version = SPDM_MESSAGE_VERSION_11;
spdm_request_size =
offsetof(spdm_get_capabilities_request_t, data_transfer_size);
spdm_request_new.header.spdm_version = version;
if ((index == 2) && (version == SPDM_MESSAGE_VERSION_12)) {
continue;
}
} else {
continue;
Expand Down

0 comments on commit ee8e55f

Please sign in to comment.