Skip to content

Commit

Permalink
Fix nasa#1786, Success Test for CFE_ES_RestartApp
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker committed Aug 13, 2021
1 parent 3efc5b5 commit 2c96972
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -3522,6 +3522,11 @@ void TestAPI(void)
AppId = CFE_ES_APPID_C(ES_UT_MakeAppIdForIndex(99999));
UtAssert_INT32_EQ(CFE_ES_RestartApp(AppId), CFE_ES_ERR_RESOURCEID_NOT_VALID);

/* Test successfully restarting an app */
ES_ResetUnitTest();
AppId = CFE_ES_AppRecordGetID(UtAppRecPtr);
UtAssert_INT32_EQ(CFE_ES_RestartApp(AppId), CFE_SUCCESS);

/* Test CFE_ES_ReloadApp with bad AppID argument */
ES_ResetUnitTest();
UtAssert_INT32_EQ(CFE_ES_ReloadApp(CFE_ES_APPID_UNDEFINED, "filename"), CFE_ES_ERR_RESOURCEID_NOT_VALID);
Expand Down

0 comments on commit 2c96972

Please sign in to comment.