UnitTest/TestSpdmRequester/TestSpdmRequesterGetVersion.c
void TestSpdmRequesterGetVersionCase9(void **state) {
  RETURN_STATUS        Status;
  SPDM_TEST_CONTEXT    *SpdmTestContext;
  SPDM_DEVICE_CONTEXT  *SpdmContext;

  SpdmTestContext = *state;
  SpdmContext = SpdmTestContext->SpdmContext;
  SpdmTestContext->CaseId = 0x9;

  Status = SpdmGetVersion (SpdmContext);
  assert_int_equal (Status, RETURN_DEVICE_ERROR);
}
/**
  Test 9: on the first try, receiving a ResponseNotReady 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_DEVICE_ERROR.
  Note: The responder should not
  respond a GET_VERSION message with a ResponseNotReady.
**/
Test 9: on the first try, receiving a ResponseNotReady 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_DEVICE_ERROR.
Note: The responder should not
respond a GET_VERSION message with a ResponseNotReady.
Test 9 : on the first try receiving a ResponseNotReady 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_DEVICE_ERROR . Note : The responder should not respond a GET_VERSION message with a ResponseNotReady .
void TestSpdmRequesterGetVersionCase9(void **state) {
  RETURN_STATUS        Status;
  SPDM_TEST_CONTEXT    *SpdmTestContext;
  SPDM_DEVICE_CONTEXT  *SpdmContext;
  SpdmTestContext = *state;
  SpdmContext = SpdmTestContext->SpdmContext;
  SpdmTestContext->CaseId = 0x9;
  Status = SpdmGetVersion (SpdmContext);
  assert_int_equal (Status, RETURN_DEVICE_ERROR);
}
void TestSpdmRequesterGetVersionCase9 ( void * * state ) { RETURN_STATUS Status ; SPDM_TEST_CONTEXT * SpdmTestContext ; SPDM_DEVICE_CONTEXT * SpdmContext ; SpdmTestContext = * state ; SpdmContext = SpdmTestContext -> SpdmContext ; SpdmTestContext -> CaseId = 0x9 ; Status = SpdmGetVersion ( SpdmContext ) ; assert_int_equal ( Status , RETURN_DEVICE_ERROR ) ; }
Test 9: on the first try, receiving a ResponseNotReady ERROR message, and on retry,
receiving a correct VERSION message with available version 1.0 and 1.1.
Test 9 : on the first try receiving a ResponseNotReady ERROR message and on retry receiving a correct VERSION message with available version 1 . 0 and 1 . 1 .