Skip to content

Commit

Permalink
Fix #1786, Set up app and apply format for Restart App UT
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 17, 2021
1 parent 94360e7 commit 901f135
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -3522,9 +3522,10 @@ 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 */
/* Test successfully restarting an app */
ES_ResetUnitTest();
AppId = CFE_ES_AppRecordGetID(UtAppRecPtr);
ES_UT_SetupSingleAppId(CFE_ES_AppType_EXTERNAL, CFE_ES_AppState_RUNNING, NULL, &UtAppRecPtr, NULL);
AppId = CFE_ES_AppRecordGetID(UtAppRecPtr);
UtAssert_INT32_EQ(CFE_ES_RestartApp(AppId), CFE_SUCCESS);

/* Test CFE_ES_ReloadApp with bad AppID argument */
Expand Down

0 comments on commit 901f135

Please sign in to comment.