Skip to content

Commit

Permalink
Fix #997, Simplify UT_InitData SB setup
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jan 21, 2021
1 parent c7363c8 commit 7dcc9bb
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 7dcc9bb

Please sign in to comment.