diff --git a/fsw/cfe-core/unit-test/sb_UT.c b/fsw/cfe-core/unit-test/sb_UT.c index 98de8a255..1cf45fe4e 100644 --- a/fsw/cfe-core/unit-test/sb_UT.c +++ b/fsw/cfe-core/unit-test/sb_UT.c @@ -2456,6 +2456,12 @@ void Test_Unsubscribe_Basic(void) EVTSENT(CFE_SB_SUBSCRIPTION_RCVD_EID); + /* Check unsubscribe after unsubscribe produces event */ + UT_ClearEventHistory(); + ASSERT(CFE_SB_Unsubscribe(MsgId, TestPipe)); + EVTCNT(2); + EVTSENT(CFE_SB_UNSUB_NO_SUBS_EID); + TEARDOWN(CFE_SB_DeletePipe(TestPipe)); } /* end Test_Unsubscribe_Basic */