Skip to content

Commit

Permalink
Merge pull request #1856 from pepepr08/fix1827-sb-errorctr
Browse files Browse the repository at this point in the history
Fix #1827 Check error ctr to TransmitMsg test
  • Loading branch information
astrogeco authored Aug 20, 2021
2 parents c729862 + 748b6f7 commit e4150b0
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 @@ -3055,12 +3055,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 e4150b0

Please sign in to comment.