-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #87, Change EVS_Register failure from SendEvent to WriteToSysLog #88
Fix #87, Change EVS_Register failure from SendEvent to WriteToSysLog #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor update requested, but otherwise looks good! Thanks.
unit-test/fm_app_tests.c
Outdated
|
||
call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent)); | ||
UtAssert_True(call_count_CFE_EVS_SendEvent == 0, "CFE_EVS_SendEvent was called %u time(s), expected 0", | ||
call_count_CFE_EVS_SendEvent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend taking out these two assertions, no real need to assert that a function was not called. Also no need to add the global variable either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries @jphickey
Removed those two.
1774fa5
to
24042f1
Compare
24042f1
to
9d5d771
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Checklist
Describe the contribution
Fixes #87
CFE_EVS_SendEvent
replaced byCFE_ES_WriteToSysLog
on failure ofCFE_EVS_Register
.Testing performed
GitHub CI actions (incl. Build + Run, Unit Tests etc.) all passing successfully.
Coverage maintained at 100%:
Expected behavior changes
Failure can be successfully recorded somewhere even without the EVS now.
Contributor Info
Avi Weiss @thnkslprpt