Skip to content

Commit

Permalink
Fix #2095, Update platform cfg comments and unit test for auto event …
Browse files Browse the repository at this point in the history
…suppression
  • Loading branch information
semaldona committed Jul 29, 2022
1 parent 270e17d commit 1b5a3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/sample_defs/cpu1_platform_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,8 @@
** Sustained number of events that may be emitted per app per second.
**
** \par Limits
** This number must be less than or equal to #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST
** This number must be less than or equal to #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST.
** Values lower than 8 may cause functional and unit test failures.
*/
#define CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC 8

Expand Down
2 changes: 1 addition & 1 deletion modules/evs/ut-coverage/evs_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,7 @@ void Test_Squelching(void)
/*
* Test boundary condition where SquelchTokens > -EVENT_COST && CreditCount >= EVENT_COST
*/
InjectedTime = OS_TimeAssembleFromMilliseconds(1, 150);
InjectedTime = OS_TimeAssembleFromMilliseconds(1, 1200 / CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC);
UT_SetDataBuffer(UT_KEY(CFE_PSP_GetTime), &InjectedTime, sizeof(InjectedTime), false);
AppDataPtr->SquelchedCount = 0;
AppDataPtr->SquelchTokens = -1500;
Expand Down

0 comments on commit 1b5a3ab

Please sign in to comment.