Skip to content

Commit

Permalink
Merge pull request nasa#1112 from skliper/fix997-ut_sb_setup
Browse files Browse the repository at this point in the history
Fix nasa#997, Simplify UT_InitData SB setup
  • Loading branch information
astrogeco committed Feb 3, 2021
2 parents b7358d2 + 1a17cfc commit 27f74f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fsw/cfe-core/unit-test/ut_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,12 @@ void UT_InitData(void)
* Set up for the CFE_SB_ReceiveBuffer() call.
*
* The existing test cases assume that this will return success once,
* followed by a timeout response followed by a different error.
* followed by a timeout response.
*
* Specific test cases may provide an actual message buffer to return for
* the first call, or they may override this default behavior entirely.
*
* The default behavior of the CFE_SB_ReceiveBuffer stub is to return success with a zero-ed out
* buffer returned to the caller.
*/
UT_SetDeferredRetcode(UT_KEY(CFE_SB_ReceiveBuffer), 2, CFE_SB_TIME_OUT);
UT_SetDeferredRetcode(UT_KEY(CFE_SB_ReceiveBuffer), 3, -1);

/*
* Set up CFE_ES_GetAppName() and friends
Expand Down

0 comments on commit 27f74f5

Please sign in to comment.