Skip to content

Fix #2836, clear the whole unused tail of the EVS housekeeping app table - #2837

Open
philphauler wants to merge 1 commit into
nasa:devfrom
philphauler:fix-evs-hk-clear-tail
Open

philphauler wants to merge 1 commit into
nasa:devfrom
philphauler:fix-evs-hk-clear-tail

Conversation

@philphauler

@philphauler philphauler commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Checklist (Please check before submitting)

Describe the contribution

Hi! Fixes #2836. CFE_EVS_SendHkCmd never advanced AppTlmDataPtr in 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.c reverted to dev and the test kept, the new assertions fail: AppData[2].AppID (0x110001) == CFE_ES_APPID_UNDEFINED (0x0) and AppMessageSentCounter (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

  • Hardware: x86_64 (WSL2)
  • OS: Ubuntu 22.04
  • Versions: cFE dev 2612eb0, OSAL and PSP from the cFS dev bundle

Contributor Info

Filip Koscak, phil.phaulre@gmail.com

Thanks for looking, and have a nice day!

…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.
@philphauler

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CFE_EVS_SendHkCmd only clears the first unused AppData slot in the housekeeping packet

1 participant