UnitTest/TestSpdmRequester/TestSpdmRequesterGetVersion.c
/**
  Test 3: receiving a correct VERSION message header, but with 0 versions available.
  Expected behavior: client returns a Status of RETURN_DEVICE_ERROR.
**/
Test 3: receiving a correct VERSION message header, but with 0 versions available.
Expected behavior: client returns a Status of RETURN_DEVICE_ERROR.
Test 3 : receiving a correct VERSION message header but with 0 versions available . Expected behavior : client returns a Status of RETURN_DEVICE_ERROR .
void TestSpdmRequesterGetVersionCase3(void **state) {
  RETURN_STATUS        Status;
  SPDM_TEST_CONTEXT    *SpdmTestContext;
  SPDM_DEVICE_CONTEXT  *SpdmContext;
  SpdmTestContext = *state;
  SpdmContext = SpdmTestContext->SpdmContext;
  SpdmTestContext->CaseId = 0x3;
  Status = SpdmGetVersion (SpdmContext);
  assert_int_equal (Status, RETURN_DEVICE_ERROR);
}
void TestSpdmRequesterGetVersionCase3 ( void * * state ) { RETURN_STATUS Status ; SPDM_TEST_CONTEXT * SpdmTestContext ; SPDM_DEVICE_CONTEXT * SpdmContext ; SpdmTestContext = * state ; SpdmContext = SpdmTestContext -> SpdmContext ; SpdmTestContext -> CaseId = 0x3 ; Status = SpdmGetVersion ( SpdmContext ) ; assert_int_equal ( Status , RETURN_DEVICE_ERROR ) ; }
Test 3: receiving a correct VERSION message header, but with 0 versions available.
Test 3 : receiving a correct VERSION message header but with 0 versions available .