Skip to content

Commit b19a65d

Browse files
authored
Merge pull request nasa#1173 from skliper/fix1172-defaultreturnvalue
Fix nasa#1172, Update to use Ut_Stub_CheckDefaultReturnValue API
2 parents ab21c87 + ba562e3 commit b19a65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsw/cfe-core/ut-stubs/ut_tbl_stubs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int32 CFE_TBL_GetAddress (void **TblPtr, CFE_TBL_Handle_t TblHandle)
132132
int32 ForceValue;
133133

134134
status = UT_DEFAULT_IMPL(CFE_TBL_GetAddress);
135-
if (status >= 0 && !UT_Stub_CheckForceFail(UT_KEY(CFE_TBL_GetAddress), &ForceValue))
135+
if (status >= 0 && !UT_Stub_CheckDefaultReturnValue(UT_KEY(CFE_TBL_GetAddress), &ForceValue))
136136
{
137137
UT_Stub_CopyToLocal(UT_KEY(CFE_TBL_GetAddress), (uint8 *)TblPtr, sizeof(void*));
138138
}

0 commit comments

Comments
 (0)