Closed johnphamngc closed 4 years ago
It looks like Test_CFE_SB_ChecksumUtils has further issues w/ CCSDSv2, as it assumes SID = MsgID in multiple cases, and doesn't account for the fact that ApidQSystemId is populated w/ the spacecraft ID by CFE_SB_InitMsg (which is a user configurable value, causing ExpRtnFrmGet to be wrong if the spacecraft ID is changed from the defaults).
I mistakenly filed a duplicate ticket about this because I just discovered it myself. Looks like there are a few issues in here.
Describe the bug Unit tests fail to build when MESSAGE_FORMAT_IS_CCSDS_VER_2 is enabled
To Reproduce Enable MESSAGE_FORMAT_IS_CCSDS_VER_2 in
*mission_cfg.h
Runmake CFLAGS="-m32 -Wno-format" SIMULATION=native ENABLE_UNIT_TESTS=true
Expected behavior Compilation succeeds, however build actually fails due to missing
#include
Code snips This can be fixed by doing the following
However, subsequently a checksum error is encountered when running the tests. This was worked around by doing the following, but unsure if the workaround is correct.
System observed on:
Reporter Info John N Pham, Northrop Grumman