Skip to content

Commit

Permalink
Fix #36, Refactor UT_SetForceFail (#37)
Browse files Browse the repository at this point in the history
New function name is `UT_SetDefaultReturnValue`
  • Loading branch information
zanzaben authored and astrogeco committed Dec 1, 2020
1 parent 2cbab9d commit b48d981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit-test/coveragetest/coveragetest_sample_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void Test_SAMPLE_LIB_Init(void)
UtAssert_StrCmp(UT_TESTBUFFER, SAMPLE_LIB_Buffer, "Internal buffer content valid");

/* Test failure of the underlying library call */
UT_SetForceFail(UT_KEY(OCS_strncpy), -1);
UT_SetDefaultReturnValue(UT_KEY(OCS_strncpy), -1);

/* off-nominal case should return CFE_STATUS_NOT_IMPLEMENTED */
UT_TEST_FUNCTION_RC(SAMPLE_LIB_Init(), CFE_STATUS_NOT_IMPLEMENTED);
Expand Down

0 comments on commit b48d981

Please sign in to comment.