[x] I signed and emailed the appropriate Contributor License Agreement to GSFC-SoftwareRelease@mail.nasa.gov and copied cfs-program@lists.nasa.gov.
Describe the contribution
Fixes #382
A few cases of exit(1) and exit(-1) replaced with EXIT_FAILURE macro.
Note: A single case was replaced with EXIT_SUCCESS in CFE_PSP_DisplayUsage() - this call to exit() seems to be there simply to explicitly end execution of the function (it's a void function) so I assume there is no difference between exiting with SUCCESS or FAILURE.
Testing performed
GitHub CI actions all passing successfully.
Tested locally to confirm no change to test outcomes or coverage.
Expected behavior changes
No change to behavior.
The macros are more expressive and potentially more portable.
System(s) tested on
Intel(R) Celeron(R) N4100 CPU @ 1.10GHz x86_64
Debian GNU/Linux 11 (bullseye)
Current main branch of cFS.
Checklist
Describe the contribution
exit(1)
andexit(-1)
replaced withEXIT_FAILURE
macro.Note: A single case was replaced with
EXIT_SUCCESS
inCFE_PSP_DisplayUsage()
- this call toexit()
seems to be there simply to explicitly end execution of the function (it's avoid
function) so I assume there is no difference between exiting with SUCCESS or FAILURE.Testing performed GitHub CI actions all passing successfully. Tested locally to confirm no change to test outcomes or coverage.
Expected behavior changes No change to behavior. The macros are more expressive and potentially more portable.
System(s) tested on Intel(R) Celeron(R) N4100 CPU @ 1.10GHz x86_64 Debian GNU/Linux 11 (bullseye) Current main branch of cFS.
Contributor Info Avi Weiss @thnkslprpt