Skip to content

Commit

Permalink
Merge pull request #2029 from skliper/fix2028-uninit_es_ut_blockdata
Browse files Browse the repository at this point in the history
Fix #2028, Initialize BlockData in ES UT
  • Loading branch information
astrogeco committed Jan 19, 2022
2 parents 3f4d4b0 + 3333827 commit 39f386c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -4670,6 +4670,8 @@ void TestCDS()

UtPrintf("Begin Test CDS");

memset(BlockData, 0, sizeof(BlockData));

/* Test init with a mutex create failure */
UT_SetDeferredRetcode(UT_KEY(OS_MutSemCreate), 1, OS_ERROR);
UtAssert_INT32_EQ(CFE_ES_CDS_EarlyInit(), CFE_STATUS_EXTERNAL_RESOURCE_FAIL);
Expand Down

0 comments on commit 39f386c

Please sign in to comment.