We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98d723e + ff90d70 commit 97f39b6Copy full SHA for 97f39b6
modules/cfe_testcase/src/es_task_test.c
@@ -273,6 +273,16 @@ void TestExitChild(void)
273
CFE_SUCCESS);
274
OS_TaskDelay(500);
275
UtAssert_INT32_EQ(ExpectedCount, 1);
276
+
277
+ /*
278
+ * Invoking CFE_ES_ExitChildTask() from the context of a main task should _not_ actually exit.
279
+ * as this is a void function there is no return code to check here. The fact that the test
280
+ * continues after this call is evidence that the test passed (i.e. it did not actually end the task).
281
+ */
282
+ UtAssert_VOIDCALL(CFE_ES_ExitChildTask());
283
284
+ /* If this message is printed, then the test passed. If the test fails this will not be reached. */
285
+ UtAssert_True(true, "CFE_ES_ExitChildTask() called from main task (ignored; main task did not exit)");
286
}
287
288
void ESTaskTestSetup(void)
0 commit comments