Skip to content

Commit

Permalink
Merge pull request #1173 from skliper/fix1172-defaultreturnvalue
Browse files Browse the repository at this point in the history
Fix #1172, Update to use Ut_Stub_CheckDefaultReturnValue API
  • Loading branch information
astrogeco authored Feb 26, 2021
2 parents ab21c87 + ba562e3 commit b19a65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/cfe-core/ut-stubs/ut_tbl_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int32 CFE_TBL_GetAddress (void **TblPtr, CFE_TBL_Handle_t TblHandle)
int32 ForceValue;

status = UT_DEFAULT_IMPL(CFE_TBL_GetAddress);
if (status >= 0 && !UT_Stub_CheckForceFail(UT_KEY(CFE_TBL_GetAddress), &ForceValue))
if (status >= 0 && !UT_Stub_CheckDefaultReturnValue(UT_KEY(CFE_TBL_GetAddress), &ForceValue))
{
UT_Stub_CopyToLocal(UT_KEY(CFE_TBL_GetAddress), (uint8 *)TblPtr, sizeof(void*));
}
Expand Down

0 comments on commit b19a65d

Please sign in to comment.