Skip to content

Commit

Permalink
Fix #138, Unit test update for 1 based SC_LAST_RTS_WITH_EVENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jan 30, 2024
1 parent 29f7bad commit 6a16aa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unit-test/sc_state_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void SC_GetNextRtsCommand_Test_ZeroCommandLength(void)
SC_RTS_BUFF_SIZE32 - SC_RTS_HDR_WORDS - ((SC_PACKET_MIN_SIZE + SC_RTS_HEADER_SIZE + 3) / SC_BYTES_IN_WORD) - 1;

/* Set to generate error message SC_RTS_LNGTH_ERR_EID */
CFE_MSG_Init((CFE_MSG_Message_t *)Entry, CFE_SB_ValueToMsgId(SC_CMD_MID), SC_LAST_RTS_WITH_EVENTS - 1);
CFE_MSG_Init((CFE_MSG_Message_t *)Entry, CFE_SB_ValueToMsgId(SC_CMD_MID), SC_PACKET_MIN_SIZE - 1);
MsgSize1 = SC_PACKET_MIN_SIZE - 1;
MsgSize2 = SC_PACKET_MIN_SIZE - 1;

Expand Down Expand Up @@ -496,7 +496,7 @@ void SC_GetNextRtsCommand_Test_ZeroCommandLengthLastRts(void)
size_t MsgSize2;
uint32 EntryOffsetVal;
SC_AtsIndex_t AtsIndex = SC_ATS_IDX_C(1);
SC_RtsIndex_t RtsIndex = SC_RTS_IDX_C(SC_LAST_RTS_WITH_EVENTS);
SC_RtsIndex_t RtsIndex = SC_RTS_IDX_C(SC_LAST_RTS_WITH_EVENTS - 1);
SC_RtsInfoEntry_t * RtsInfoPtr;
SC_AtsInfoTable_t * AtsInfoPtr;

Expand Down Expand Up @@ -583,7 +583,7 @@ void SC_GetNextRtsCommand_Test_EndOfBufferLastRts(void)
size_t MsgSize;
SC_AtsIndex_t AtsIndex = SC_ATS_IDX_C(1);
uint32 EntryOffsetVal;
SC_RtsIndex_t RtsIndex = SC_RTS_IDX_C(SC_LAST_RTS_WITH_EVENTS);
SC_RtsIndex_t RtsIndex = SC_RTS_IDX_C(SC_LAST_RTS_WITH_EVENTS - 1);
SC_RtsInfoEntry_t * RtsInfoPtr;
SC_AtsInfoTable_t * AtsInfoPtr;

Expand Down

0 comments on commit 6a16aa7

Please sign in to comment.