Skip to content

Commit 8880c5c

Browse files
zanzabenastrogeco
authored andcommitted
Fix #36, Refactor UT_SetForceFail (#38)
New function name is `UT_SetDefaultReturnValue`
1 parent 2cbab9d commit 8880c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit-test/coveragetest/coveragetest_sample_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void Test_SAMPLE_LIB_Init(void)
129129
UtAssert_StrCmp(UT_TESTBUFFER, SAMPLE_LIB_Buffer, "Internal buffer content valid");
130130

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

134134
/* off-nominal case should return CFE_STATUS_NOT_IMPLEMENTED */
135135
UT_TEST_FUNCTION_RC(SAMPLE_LIB_Init(), CFE_STATUS_NOT_IMPLEMENTED);

0 commit comments

Comments
 (0)