UnitTest/TestSpdmRequester/TestSpdmRequesterGetVersion.c
/**
  Test 6: on the first try, receiving a Busy ERROR message, and on retry, receiving
  a correct VERSION message with available version 1.0 and 1.1.
  Expected behavior: client returns a Status of RETURN_SUCCESS.
**/
Test 6: on the first try, receiving a Busy ERROR message, and on retry, receiving
a correct VERSION message with available version 1.0 and 1.1.
Expected behavior: client returns a Status of RETURN_SUCCESS.
Test 6 : on the first try receiving a Busy ERROR message and on retry receiving a correct VERSION message with available version 1 . 0 and 1 . 1 . Expected behavior : client returns a Status of RETURN_SUCCESS .
void TestSpdmRequesterGetVersionCase6(void **state) {
  RETURN_STATUS        Status;
  SPDM_TEST_CONTEXT    *SpdmTestContext;
  SPDM_DEVICE_CONTEXT  *SpdmContext;
  SpdmTestContext = *state;
  SpdmContext = SpdmTestContext->SpdmContext;
  SpdmTestContext->CaseId = 0x6;
  Status = SpdmGetVersion (SpdmContext);
  assert_int_equal (Status, RETURN_SUCCESS);
}
void TestSpdmRequesterGetVersionCase6 ( void * * state ) { RETURN_STATUS Status ; SPDM_TEST_CONTEXT * SpdmTestContext ; SPDM_DEVICE_CONTEXT * SpdmContext ; SpdmTestContext = * state ; SpdmContext = SpdmTestContext -> SpdmContext ; SpdmTestContext -> CaseId = 0x6 ; Status = SpdmGetVersion ( SpdmContext ) ; assert_int_equal ( Status , RETURN_SUCCESS ) ; }
Test 6: on the first try, receiving a Busy ERROR message, and on retry, receiving
a correct VERSION message with available version 1.0 and 1.1.
Test 6 : on the first try receiving a Busy ERROR message and on retry receiving a correct VERSION message with available version 1 . 0 and 1 . 1 .