Skip to content

Commit

Permalink
Merge pull request #1814 from ArielSAdamsNASA/fix-1794-message-limit-…
Browse files Browse the repository at this point in the history
…greater-cfe_platform_sb_default_msg_limit

Fix #1794, Subscribe to Message Limit Greater Than CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT
  • Loading branch information
astrogeco committed Aug 20, 2021
2 parents c79d40e + 81df083 commit f2bcc5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/sb/ut-coverage/sb_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,12 @@ void Test_Subscribe_LocalSubscription(void)
CFE_UtAssert_EVENTSENT(CFE_SB_PIPE_ADDED_EID);
CFE_UtAssert_EVENTSENT(CFE_SB_SUBSCRIPTION_RCVD_EID);

/* Test_Subscribe_LocalSubscription with message
* limit greater than CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT
*/
CFE_UtAssert_SUCCESS(CFE_SB_Unsubscribe(MsgId, PipeId));
UtAssert_INT32_EQ(CFE_SB_SubscribeLocal(MsgId, PipeId, UINT16_MAX), CFE_SUCCESS);

CFE_UtAssert_TEARDOWN(CFE_SB_DeletePipe(PipeId));

} /* end Test_Subscribe_LocalSubscription */
Expand Down

0 comments on commit f2bcc5e

Please sign in to comment.