Skip to content

Commit

Permalink
Fix nasa#747, CFE_SB_TimeStampMsg in does not record MsgPtr argument …
Browse files Browse the repository at this point in the history
…value

In ut_sb_stubs.c, update CFE_SB_TimeStampMsg  to save the message
pointer argument with UT_Stub_CopyFromLocal so that unit tests can check
it
  • Loading branch information
asgibson authored and astrogeco committed Jul 1, 2020
1 parent beb4a6d commit a8f6f8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fsw/cfe-core/ut-stubs/ut_sb_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ int32 CFE_SB_SubscribeLocal(CFE_SB_MsgId_t MsgId,
void CFE_SB_TimeStampMsg(CFE_SB_MsgPtr_t MsgPtr)
{
UT_DEFAULT_IMPL(CFE_SB_TimeStampMsg);
UT_Stub_CopyFromLocal(UT_KEY(CFE_SB_TimeStampMsg), &MsgPtr, sizeof(MsgPtr));
}

/*****************************************************************************/
Expand Down

0 comments on commit a8f6f8b

Please sign in to comment.