Skip to content

Commit

Permalink
Fix #1794, Subscribe Message Limit Greater CFE_PLATFORM_SB_DEFAULT_MS…
Browse files Browse the repository at this point in the history
…G_LIMIT
  • Loading branch information
arielswalker committed Aug 17, 2021
1 parent 73c1565 commit bcf41b5
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
*/
UtAssert_INT32_EQ(CFE_SB_Unsubscribe(MsgId, PipeId), CFE_SUCCESS);
UtAssert_INT32_EQ(CFE_SB_SubscribeLocal(MsgId, PipeId, UINT16_MAX), CFE_SB_FAILED);

CFE_UtAssert_TEARDOWN(CFE_SB_DeletePipe(PipeId));

} /* end Test_Subscribe_LocalSubscription */
Expand Down

0 comments on commit bcf41b5

Please sign in to comment.