Describe the bug
The value passed into CFE_SB_TimeStampMsg cannot be checked because the context value is not put into the UT_Stub_CopyFromLocal function.
To Reproduce
Write a unit test that attempts to check this value by setting up UT_SetDataBuffer.
Test fails because the value was never saved so it will not equal the expected value.
Expected behavior
UT_SetDataBuffer when used for CFE_SB_TimeStampMsg will copy the argument value from local (UT_Stub_CopyFromLocal).
Code snips
Current code:
void CFE_SB_TimeStampMsg(CFE_SB_MsgPtr_t MsgPtr)
{
UT_DEFAULT_IMPL(CFE_SB_TimeStampMsg);
}
System observed on:
- Hardware : PC
- OS: RHEL7 - 3.10.0-1062.1.2.el7.x86_64
- Versions cFE 6.7
Additional context
Add any other context about the problem here.
Reporter Info
Full name and company/organization if applicable