-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testcase code should not directly include "cfe_test_msgids.h" (yet) #2395
Comments
For a user that has customized cfe_msgids.h, this will get conflicting values. If/when users have migrated to module-specific msgid files, this will be OK, but for now this can break things.
For a user that has customized cfe_msgids.h, this will get conflicting values. If/when users have migrated to module-specific msgid files, this will be OK, but for now this can break things.
Fix #2395, do not directly use cfe_test_msgids.h
Revert "Fix #2395, do not directly use cfe_test_msgids.h"
Fast-Tracked cFE Pull Request nasa/cFE#2398, nasa/cFE#2399, nasa/cFE#2404: Resolves nasa/cFE#2393, nasa/cFE#2395. Reverts nasa/cFE#2399
Reopening w/ Dan's concurrence, this really should be fixed. Another option is for the modules override search to accept a top level *_msgids.h... then it wouldn't matter since all the generated wrappers would pull in the right file. Basically it currently searches for:
but the first check should be for a global msgid override ( |
@skliper -- Is there a specific problem with your current msgid file? It should still find (and use) a file called And yes - I will look again into some method of (possibly) avoiding the confusion of generating a file that is not used. But other than that potentially-confusing aspect - is something broken here? |
@jphickey - the test code directly references We are currently maintaining a work around by managing an override cfe_test_msgids.h in our *_defs (as just a link to cpu1_msgids.h). |
Note that I was able to work around my issue by overriding the cfe_test_msgids.h source from target_defs/arch_build_custom.cmake: The another option would be to create a symbolic link in target_defs from cfe_test_msgids.h to cpu1_msgids.h but that was less desireable. |
Superseded by #2405. |
Describe the bug
The module-specific header file is a relatively new addition. But for a user that has overridden the previous all-inclusive
cfe_msgids.h
file, including the test_msgids.h directly will cause conflict with the overrides.To Reproduce
Override (only)
cfe_msgids.h
in a build, and change the msgids in here. Do not override cfe_test_msgids.h.Attempt to build cfe_testcase -- the
cfe_test_msgids.h
inclusion will bypass the modified msgids, and get defaults, which will conflict / mismatch.Expected behavior
Should be backward compatible with an existing override of
cfe_msgids.h
System observed on:
Debian
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: