UnitTest/TestSpdmRequester/TestSpdmRequesterGetVersion.c
/**
  Test 8: receiving a ResponseNotReady ERROR message from the responder.
  Expected behavior: client returns a Status of RETURN_DEVICE_ERROR.
  Note: As from 1.0.0, this is an unexpected behavior, as the responder should not
  respond a GET_VERSION message with a ResponseNotReady.
**/
Test 8: receiving a ResponseNotReady ERROR message from the responder.
Expected behavior: client returns a Status of RETURN_DEVICE_ERROR.
Note: As from 1.0.0, this is an unexpected behavior, as the responder should not
respond a GET_VERSION message with a ResponseNotReady.
Test 8 : receiving a ResponseNotReady ERROR message from the responder . Expected behavior : client returns a Status of RETURN_DEVICE_ERROR . Note : As from 1 . 0 . 0 this is an unexpected behavior as the responder should not respond a GET_VERSION message with a ResponseNotReady .
void TestSpdmRequesterGetVersionCase8(void **state) {
  RETURN_STATUS        Status;
  SPDM_TEST_CONTEXT    *SpdmTestContext;
  SPDM_DEVICE_CONTEXT  *SpdmContext;
  SpdmTestContext = *state;
  SpdmContext = SpdmTestContext->SpdmContext;
  SpdmTestContext->CaseId = 0x8;
  Status = SpdmGetVersion (SpdmContext);
  assert_int_equal (Status, RETURN_DEVICE_ERROR);
}
void TestSpdmRequesterGetVersionCase8 ( void * * state ) { RETURN_STATUS Status ; SPDM_TEST_CONTEXT * SpdmTestContext ; SPDM_DEVICE_CONTEXT * SpdmContext ; SpdmTestContext = * state ; SpdmContext = SpdmTestContext -> SpdmContext ; SpdmTestContext -> CaseId = 0x8 ; Status = SpdmGetVersion ( SpdmContext ) ; assert_int_equal ( Status , RETURN_DEVICE_ERROR ) ; }
Test 8: receiving a ResponseNotReady ERROR message from the responder.
Test 8 : receiving a ResponseNotReady ERROR message from the responder .