Skip to content

Commit

Permalink
Merge pull request #235 from avan989:Fix-232-address-sanitizer-issue
Browse files Browse the repository at this point in the history
Fix #232, Address sanitizer issue
  • Loading branch information
dzbaker committed Feb 25, 2025
2 parents ceaf7ab + 7532a88 commit 7c2e0d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unit-test/coveragetest/coveragetest_sample_app_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ void Test_SAMPLE_APP_ProcessCmd(void)
* reporting the table values, and one through the CFE_TBL_ReleaseAddress()
* error path.
*/
UT_SetDataBuffer(UT_KEY(CFE_TBL_GetAddress), &TblPtr, sizeof(TblPtr), false);
UT_SetDefaultReturnValue(UT_KEY(CFE_TBL_GetAddress), CFE_SUCCESS);
UT_SetDefaultReturnValue(UT_KEY(CFE_TBL_ReleaseAddress), CFE_TBL_ERR_NO_ACCESS);
UtAssert_INT32_EQ(SAMPLE_APP_ProcessCmd(&TestMsg), CFE_TBL_ERR_NO_ACCESS);
Expand Down

0 comments on commit 7c2e0d9

Please sign in to comment.