-
Notifications
You must be signed in to change notification settings - Fork 201
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
CFE_SB_TimeStampMsg in ut_sb_stubs.c does not record MsgPtr argument value #747
Comments
astrogeco
added a commit
that referenced
this issue
Jul 1, 2020
Fix #747, Update CFE_SB_TimeStampMsg to save the message pointer argument
astrogeco
pushed a commit
that referenced
this issue
Jul 1, 2020
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
astrogeco
pushed a commit
that referenced
this issue
Jul 26, 2020
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
System observed on:
Additional context
Add any other context about the problem here.
Reporter Info
Full name and company/organization if applicable
The text was updated successfully, but these errors were encountered: