UnitTest/TestSpdmRequester/TestSpdmRequesterGetVersion.c
/**
  Test 5: receiving an Busy ERROR message correct VERSION message from the responder.
  Expected behavior: client returns a Status of RETURN_DEVICE_ERROR.
**/
Test 5: receiving an Busy ERROR message correct VERSION message from the responder.
Expected behavior: client returns a Status of RETURN_DEVICE_ERROR.
Test 5 : receiving an Busy ERROR message correct VERSION message from the responder . Expected behavior : client returns a Status of RETURN_DEVICE_ERROR .
void TestSpdmRequesterGetVersionCase5(void **state) {
  RETURN_STATUS        Status;
  SPDM_TEST_CONTEXT    *SpdmTestContext;
  SPDM_DEVICE_CONTEXT  *SpdmContext;
  SpdmTestContext = *state;
  SpdmContext = SpdmTestContext->SpdmContext;
  SpdmTestContext->CaseId = 0x5;
  Status = SpdmGetVersion (SpdmContext);
  assert_int_equal (Status, RETURN_NO_RESPONSE);
}
void TestSpdmRequesterGetVersionCase5 ( void * * state ) { RETURN_STATUS Status ; SPDM_TEST_CONTEXT * SpdmTestContext ; SPDM_DEVICE_CONTEXT * SpdmContext ; SpdmTestContext = * state ; SpdmContext = SpdmTestContext -> SpdmContext ; SpdmTestContext -> CaseId = 0x5 ; Status = SpdmGetVersion ( SpdmContext ) ; assert_int_equal ( Status , RETURN_NO_RESPONSE ) ; }
Test 5: receiving an Busy ERROR message correct VERSION message from the responder.
Test 5 : receiving an Busy ERROR message correct VERSION message from the responder .