-
Notifications
You must be signed in to change notification settings - Fork 228
Description
Is your feature request related to a problem? Please describe.
Filter verification is done by sending an event message that says "FAILED", even though the actual assert will PASS. This does not get counted in test reporting as an actual failure.
cFE/modules/evs/ut-coverage/evs_UT.c
Lines 522 to 538 in eb9c523
| /* Send 2nd information message, should be filtered */ | |
| UT_InitData(); | |
| CFE_UtAssert_SUCCESS(CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "FAILED")); | |
| /* Send last information message, which should cause filtering to lock */ | |
| UT_InitData(); | |
| FilterPtr = EVS_FindEventID(0, (EVS_BinFilter_t *)AppDataPtr->BinFilters); | |
| FilterPtr->Count = CFE_EVS_MAX_FILTER_COUNT - 1; | |
| CFE_UtAssert_SUCCESS(CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "OK")); | |
| /* Test that filter lock is applied */ | |
| UT_InitData(); | |
| CFE_UtAssert_SUCCESS(CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "FAILED")); | |
| /* Test that filter lock is (still) applied */ | |
| UT_InitData(); | |
| CFE_UtAssert_SUCCESS(CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "FAILED")); |
Describe the solution you'd like
Assert on the message counters not incrementing (MessageSendCounter and/or EventCount) and CFE_SB_TransmitMsg stub count doesn't increment, the as well as the filter counter (should latch at max per requirement).
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC