Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Dec 2, 2023
1 parent b6873ee commit a9931cd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions unit-test/coveragetest/coveragetest_sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ void Test_SAMPLE_APP_Init(void)
/* nominal case should return CFE_SUCCESS */
UtAssert_INT32_EQ(SAMPLE_APP_Init(), CFE_SUCCESS);

/* trigger a failure for each of the sub-calls,
* and confirm a write to syslog for each.
* Note that this count accumulates, because the status
* is _not_ reset between these test cases. */
/*
* Trigger a failure for each of the sub-calls, and confirm a write to syslog for
* failure to register with EVS, and that an event is generated for subsequent error paths.
* Note that this count accumulates, because the status is _not_ reset between these test cases.
*/
UT_SetDeferredRetcode(UT_KEY(CFE_EVS_Register), 1, CFE_EVS_INVALID_PARAMETER);
UtAssert_INT32_EQ(SAMPLE_APP_Init(), CFE_EVS_INVALID_PARAMETER);
UtAssert_STUB_COUNT(CFE_ES_WriteToSysLog, 1);
Expand All @@ -171,7 +172,7 @@ void Test_SAMPLE_APP_Init(void)

UT_SetDeferredRetcode(UT_KEY(CFE_TBL_Register), 1, CFE_TBL_ERR_INVALID_OPTIONS);
UtAssert_INT32_EQ(SAMPLE_APP_Init(), CFE_TBL_ERR_INVALID_OPTIONS);
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 6); /* 1 from this error path, 1 from successful initialization event */
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 6); /* 1 from table registration error, 1 from successful init event */
}

/*
Expand Down

0 comments on commit a9931cd

Please sign in to comment.