Skip to content

Commit

Permalink
Fixes nasa#274, NumOfChildTasks not decremented
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknutsen committed Jan 31, 2020
1 parent b8ff70f commit 1af8e70
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fsw/cfe-core/unit-test/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -4810,10 +4810,8 @@ void TestAPI(void)
Return = CFE_ES_GetAppInfo(&AppInfo,CFE_ES_Global.TaskTable[1].AppId);
UtAssert_True(Return == CFE_SUCCESS,
"CFE_ES_GetAppInfo() return=%x", (unsigned int)Return);
UT_Report(__FILE__, __LINE__,
AppInfo.NumOfChildTasks == 0,
"CFE_ES_DeleteChildTask",
"NumOfChildTasks = 0 - Delete child task successful");
UtAssert_True(AppInfo.NumOfChildTasks == 0,
"AppInfo.NumOfChildTaskss == %u", (unsigned int)AppInfo.NumOfChildTasks);

/* Test deleting a child task with an OS task delete failure */
ES_ResetUnitTest();
Expand Down

0 comments on commit 1af8e70

Please sign in to comment.