Skip to content

Commit

Permalink
Fix #1827 Check error ctr to TransmitMsg test
Browse files Browse the repository at this point in the history
  • Loading branch information
pepepr08 committed Aug 19, 2021
1 parent a0c2de6 commit 748b6f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/sb/ut-coverage/sb_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -3049,12 +3049,14 @@ void Test_TransmitMsg_MaxMsgSizePlusOne(void)

UT_SetDataBuffer(UT_KEY(CFE_MSG_GetMsgId), &MsgId, sizeof(MsgId), false);
UT_SetDataBuffer(UT_KEY(CFE_MSG_GetSize), &Size, sizeof(Size), false);
CFE_SB_Global.HKTlmMsg.Payload.MsgSendErrorCounter = 0;

UtAssert_INT32_EQ(CFE_SB_TransmitMsg(&TlmPkt.Hdr.Msg, true), CFE_SB_MSG_TOO_BIG);

CFE_UtAssert_EVENTCOUNT(1);

CFE_UtAssert_EVENTSENT(CFE_SB_MSG_TOO_BIG_EID);
UtAssert_INT32_EQ(CFE_SB_Global.HKTlmMsg.Payload.MsgSendErrorCounter, 1);

} /* end Test_TransmitMsg_MaxMsgSizePlusOne */

Expand Down

0 comments on commit 748b6f7

Please sign in to comment.