Fix #1466, Add status return to CFE_ES_WaitForStartupSync() #2273
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
Describe the contribution
CFE_ES_WaitForStartupSync
#1466CFE_ES_WaitForStartupSync()
from void return toCFE_Status_t
, and carries through the return value fromCFE_ES_WaitForSystemState()
.Testing performed
GitHub CI actions all passing successfully.
Local tests confirm all tests passing and LCOV confirms coverage of amended lines, and total coverage unaffected.
These 2 UT calls to
CFE_ES_WaitForStartupSync()
would have had to be updated, but as far as I can tell they are not actually required for coverage, and are not needed for the test blocks that they are part of (ES_ResetUnitTest()
is run immediately after both).cFE/modules/es/ut-coverage/es_UT.c
Lines 4441 to 4463 in 7c03369
Coverage is already provided by the prior call to
CFE_ES_WaitForStartupSync()
:cFE/modules/es/ut-coverage/es_UT.c
Line 4434 in 7c03369
CFE_ES_WaitForSystemState()
is already fully covered elsewhere.Expected behavior changes
CFE_ES_WaitForStartupSync()
now carries through the status/return ofCFE_ES_WaitForSystemState()
allowing additional handling by the user.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