@@ -354,7 +354,7 @@ void Test_SAMPLE_APP_ProcessGroundCommand(void)
354354 /* test dispatch of PROCESS */
355355 /* note this will end up calling SAMPLE_APP_Process(), and as such it needs to
356356 * avoid dereferencing a table which does not exist. */
357- UT_SetForceFail (UT_KEY (CFE_TBL_GetAddress ), CFE_TBL_ERR_UNREGISTERED );
357+ UT_SetDefaultReturnValue (UT_KEY (CFE_TBL_GetAddress ), CFE_TBL_ERR_UNREGISTERED );
358358 UT_SetDeferredRetcode (UT_KEY (CFE_SB_GetCmdCode ), 1 , SAMPLE_APP_PROCESS_CC );
359359 UT_SetDeferredRetcode (UT_KEY (CFE_SB_GetTotalMsgLength ), 1 , sizeof (TestMsg .Process ));
360360
@@ -487,7 +487,7 @@ void Test_SAMPLE_APP_ProcessCC(void)
487487 * Configure the CFE_TBL_GetAddress function to return an error
488488 * Exercise the error return path
489489 */
490- UT_SetForceFail (UT_KEY (CFE_TBL_GetAddress ), CFE_TBL_ERR_UNREGISTERED );
490+ UT_SetDefaultReturnValue (UT_KEY (CFE_TBL_GetAddress ), CFE_TBL_ERR_UNREGISTERED );
491491 UT_TEST_FUNCTION_RC (SAMPLE_APP_Process (& TestMsg ), CFE_TBL_ERR_UNREGISTERED );
492492}
493493
@@ -564,7 +564,7 @@ void Test_SAMPLE_APP_GetCrc(void)
564564 * the message using a hook function, if desired.
565565 */
566566
567- UT_SetForceFail (UT_KEY (CFE_TBL_GetInfo ), CFE_TBL_ERR_INVALID_NAME );
567+ UT_SetDefaultReturnValue (UT_KEY (CFE_TBL_GetInfo ), CFE_TBL_ERR_INVALID_NAME );
568568 SAMPLE_APP_GetCrc ("UT" );
569569 UtAssert_True (UT_GetStubCount (UT_KEY (CFE_ES_WriteToSysLog )) == 1 , "CFE_ES_WriteToSysLog() called" );
570570
0 commit comments