From bcf41b52f6a813a7e39aac32783c9af9e97d8122 Mon Sep 17 00:00:00 2001 From: ArielSAdamsNASA Date: Fri, 13 Aug 2021 11:43:08 -0500 Subject: [PATCH] Fix #1794, Subscribe Message Limit Greater CFE_PLATFORM_SB_DEFAULT_MSG_LIMIT --- modules/sb/ut-coverage/sb_UT.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/sb/ut-coverage/sb_UT.c b/modules/sb/ut-coverage/sb_UT.c index 6e741708a..85d276dc7 100644 --- a/modules/sb/ut-coverage/sb_UT.c +++ b/modules/sb/ut-coverage/sb_UT.c @@ -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 */