Repository navigation
Fix #2781, fix compilation of time client and coverage tests - #2867
Merged
Merged
Conversation
chillfig
approved these changes
Oct 22, 2026
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.
name: FSW Code Change
about: Flight Software code changes
labels: fsw
Description of Change
This fixes the cfe compilation when configured as a time client. The fix also allows the coverage tests to compile and run without failing when the cfe time subsystem is configured as a client.
Note the on the coverage tests, the area where the "#if (CFE_PLATFORM_TIME_CFG_SERVER == true)" clause was removed, the code will initialize that packet for the FAKE tone configuration on both the client and server.
I think there is another bug where clients will send that command to the server. I'm going to verify that it's a problem and submit another issue to fix it. It's likely that this unit test clause will go back once it is fixed. But for now this makes the test match the code.
Linked Issue
Closes #2781
Requirements Impact
Testing Evidence
the cFS bundle builds and runs when either configured as a time server or time client.
On my cFS fork, I tested this by configuring CPU1 as a server and CPU2 as a client. Both compile and run.
Unit Tests (UT Assert)
Coverage tests pass as before:
Time run from CPU2:
COSMOS Test Suite
N/A — no relevant changes
Areas of Expertise Touched
Author Checklist
.clang-formatReviewer Checklist
.clang-formathas been appliedReviewer Testing Notes