Repository navigation
Fix #2836, clear the whole unused tail of the EVS housekeeping app table - #2837
Open
philphauler wants to merge 1 commit into
Open
philphauler wants to merge 1 commit into
philphauler wants to merge 1 commit into
Conversation
…p table CFE_EVS_SendHkCmd never advanced AppTlmDataPtr in the loop that clears the unused AppData slots, so only the first free slot was cleared and later slots kept the AppID and counters of apps that had since been unregistered. Advance the pointer like the fill loop does and add a regression test that frees two apps between housekeeping reports.
Contributor
Author
|
Quick update: my Individual CLA for the cFS framework went to GSFC-SoftwareRelease on 2026-09-16, after this PR was opened, so I've ticked that box in the checklist. Happy to adjust anything if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 (Please check before submitting)
Describe the contribution
Hi! Fixes #2836.
CFE_EVS_SendHkCmdnever advancedAppTlmDataPtrin the loop that clears the unused tail of the housekeeping app table, so only the first free slot was cleared. This advances the pointer the same way the fill loop above it does.Testing performed
New Test_Misc case in evs_UT.c: mark 3 AppData entries used, send HK, free entries 1 and 2, send HK again, assert slots 1 and 2 read AppID UNDEFINED and counter 0.
With
cfe_evs_task.creverted to dev and the test kept, the new assertions fail:AppData[2].AppID (0x110001) == CFE_ES_APPID_UNDEFINED (0x0)andAppMessageSentCounter (102) == 0(Test_Misc 21 pass / 2 fail). With it, coverage-evs-ALL passes 1409/1409.cFS dev bundle:
make SIMULATION=native ENABLE_UNIT_TESTS=true prep && make,ctest -R coverage-evs.Expected behavior changes
The housekeeping packet no longer reports AppID/counters of apps unregistered since the previous cycle. No API change.
System(s) tested on
Contributor Info
Filip Koscak, phil.phaulre@gmail.com
Thanks for looking, and have a nice day!