From 81df083c0b53b212580a0dacd8a2ac3ce417f16c 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..ea40c6058 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 + */ + 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 */