Skip to content

Commit

Permalink
Fix nasa#53, Remove stray refs to old event type constants
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Dec 5, 2022
1 parent 358fc48 commit e6b7da4
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions unit-test/lc_app_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void LC_AppInit_Test_Nominal(void)
/* Verify results */
sprintf(Message, "LC Initialized. Version %d.%d.%d.%d", LC_MAJOR_VERSION, LC_MINOR_VERSION, LC_REVISION,
LC_MISSION_REV);
/* UtAssert_True (Ut_CFE_EVS_EventSent(LC_INIT_INF_EID, CFE_EVS_INFORMATION, Message), Message); */
/* UtAssert_True (Ut_CFE_EVS_EventSent(LC_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, Message), Message); */

UtAssert_INT32_EQ(Result, CFE_SUCCESS);

Expand Down Expand Up @@ -446,7 +446,7 @@ void LC_SbInit_Test_CreatePipeError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_CR_PIPE_ERR_EID, CFE_EVS_ERROR, "Error Creating LC Pipe, RC=0xFFFFFFFF"),
(Ut_CFE_EVS_EventSent(LC_CR_PIPE_ERR_EID, CFE_EVS_EventType_ERROR, "Error Creating LC Pipe, RC=0xFFFFFFFF"),
"Error Creating LC Pipe, RC=0xFFFFFFFF");
*/
UtAssert_True(Result == -1, "Result == -1");
Expand All @@ -467,8 +467,8 @@ void LC_SbInit_Test_SubscribeHKReqError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_SUB_HK_REQ_ERR_EID, CFE_EVS_ERROR, "Error Subscribing to HK Request, MID=0x18A5,
RC=0xFFFFFFFF"), "Error Subscribing to HK Request, MID=0x18A5, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_SUB_HK_REQ_ERR_EID, CFE_EVS_EventType_ERROR, "Error Subscribing to HK Request,
MID=0x18A5, RC=0xFFFFFFFF"), "Error Subscribing to HK Request, MID=0x18A5, RC=0xFFFFFFFF");
*/
UtAssert_True(Result == -1, "Result == -1");

Expand All @@ -488,8 +488,8 @@ void LC_SbInit_Test_SubscribeGndCmdError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_SUB_GND_CMD_ERR_EID, CFE_EVS_ERROR, "Error Subscribing to GND CMD, MID=0x18A4,
RC=0xFFFFFFFF"), "Error Subscribing to GND CMD, MID=0x18A4, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_SUB_GND_CMD_ERR_EID, CFE_EVS_EventType_ERROR, "Error Subscribing to GND CMD,
MID=0x18A4, RC=0xFFFFFFFF"), "Error Subscribing to GND CMD, MID=0x18A4, RC=0xFFFFFFFF");
*/
UtAssert_True(Result == -1, "Result == -1");

Expand All @@ -509,7 +509,7 @@ void LC_SbInit_Test_SubscribeSampleCmdError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_SUB_SAMPLE_CMD_ERR_EID, CFE_EVS_ERROR, "Error Subscribing to Sample CMD,
(Ut_CFE_EVS_EventSent(LC_SUB_SAMPLE_CMD_ERR_EID, CFE_EVS_EventType_ERROR, "Error Subscribing to Sample CMD,
MID=0x18A6, RC=0xFFFFFFFF"), "Error Subscribing to Sample CMD, MID=0x18A6, RC=0xFFFFFFFF");
*/
UtAssert_True(Result == -1, "Result == -1");
Expand Down Expand Up @@ -820,8 +820,8 @@ void LC_CreateResultTables_Test_WRTRegisterError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_WRT_REGISTER_ERR_EID, CFE_EVS_ERROR, "Error registering WRT, RC=0xFFFFFFFF"),
"Error registering WRT, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_WRT_REGISTER_ERR_EID, CFE_EVS_EventType_ERROR, "Error registering WRT,
RC=0xFFFFFFFF"), "Error registering WRT, RC=0xFFFFFFFF");
*/
UtAssert_True(LC_OperData.TableResults == 0, "LC_OperData.TableResults == 0");
UtAssert_True(Result == -1, "Result == -1");
Expand All @@ -844,8 +844,8 @@ void LC_CreateResultTables_Test_WRTGetAddressError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_WRT_GETADDR_ERR_EID, CFE_EVS_ERROR, "Error getting WRT address, RC=0xFFFFFFFF"),
"Error getting WRT address, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_WRT_GETADDR_ERR_EID, CFE_EVS_EventType_ERROR, "Error getting WRT address,
RC=0xFFFFFFFF"), "Error getting WRT address, RC=0xFFFFFFFF");
*/
UtAssert_True(LC_OperData.TableResults == 0, "LC_OperData.TableResults == 0");
UtAssert_True(Result == -1, "Result == -1");
Expand All @@ -868,8 +868,8 @@ void LC_CreateResultTables_Test_ARTRegisterError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_ART_REGISTER_ERR_EID, CFE_EVS_ERROR, "Error registering ART, RC=0xFFFFFFFF"),
"Error registering ART, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_ART_REGISTER_ERR_EID, CFE_EVS_EventType_ERROR, "Error registering ART,
RC=0xFFFFFFFF"), "Error registering ART, RC=0xFFFFFFFF");
*/
UtAssert_True(LC_OperData.TableResults == LC_WRT_TBL_CREATED, "LC_OperData.TableResults == LC_WRT_TBL_CREATED");
UtAssert_True(Result == -1, "Result == -1");
Expand All @@ -892,8 +892,8 @@ void LC_CreateResultTables_Test_ARTGetAddressError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_ART_GETADDR_ERR_EID, CFE_EVS_ERROR, "Error getting ART address, RC=0xFFFFFFFF"),
"Error getting ART address, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_ART_GETADDR_ERR_EID, CFE_EVS_EventType_ERROR, "Error getting ART address,
RC=0xFFFFFFFF"), "Error getting ART address, RC=0xFFFFFFFF");
*/
UtAssert_True(LC_OperData.TableResults == LC_WRT_TBL_CREATED, "LC_OperData.TableResults == LC_WRT_TBL_CREATED");
UtAssert_True(Result == -1, "Result == -1");
Expand Down Expand Up @@ -1208,8 +1208,8 @@ void LC_LoadDefaultTables_Test_LoadWDTError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_WDT_LOAD_ERR_EID, CFE_EVS_ERROR, "Error (RC=0xFFFFFFFF) Loading WDT with '"
LC_WDT_FILENAME "'"), "Error (RC=0xFFFFFFFF) Loading WDT with '" LC_WDT_FILENAME "'");
(Ut_CFE_EVS_EventSent(LC_WDT_LOAD_ERR_EID, CFE_EVS_EventType_ERROR, "Error (RC=0xFFFFFFFF) Loading WDT with
'" LC_WDT_FILENAME "'"), "Error (RC=0xFFFFFFFF) Loading WDT with '" LC_WDT_FILENAME "'");
*/
UtAssert_True(Result == -1, "Result == -1");

Expand All @@ -1234,8 +1234,8 @@ void LC_LoadDefaultTables_Test_GetWDTAddressError(void)

/* Verify results */
/* UtAssert_True
(Ut_CFE_EVS_EventSent(LC_WDT_GETADDR_ERR_EID, CFE_EVS_ERROR, "Error getting WDT address, RC=0xFFFFFFFF"),
"Error getting WDT address, RC=0xFFFFFFFF");
(Ut_CFE_EVS_EventSent(LC_WDT_GETADDR_ERR_EID, CFE_EVS_EventType_ERROR, "Error getting WDT address,
RC=0xFFFFFFFF"), "Error getting WDT address, RC=0xFFFFFFFF");
*/
UtAssert_True(Result == -1, "Result == -1");

Expand All @@ -1260,7 +1260,7 @@ void LC_LoadDefaultTables_Test_LoadADTError(void)

/* Verify results */
/*UtAssert_True
(Ut_CFE_EVS_EventSent(LC_ADT_LOAD_ERR_EID, CFE_EVS_ERROR, "Error (RC=0xCC000013) Loading ADT with '"
(Ut_CFE_EVS_EventSent(LC_ADT_LOAD_ERR_EID, CFE_EVS_EventType_ERROR, "Error (RC=0xCC000013) Loading ADT with '"
LC_ADT_FILENAME "'"), "Error (RC=0xCC000013) Loading ADT with '" LC_ADT_FILENAME "'");
*/
UtAssert_INT32_EQ(Result, -1);
Expand All @@ -1284,8 +1284,8 @@ void LC_LoadDefaultTables_Test_GetADTAddressError(void)

/* Verify results */
/*UtAssert_True
(Ut_CFE_EVS_EventSent(LC_ADT_GETADDR_ERR_EID, CFE_EVS_ERROR, "Error getting ADT address, RC=0xCC000001"),
"Error getting ADT address, RC=0xCC000001");
(Ut_CFE_EVS_EventSent(LC_ADT_GETADDR_ERR_EID, CFE_EVS_EventType_ERROR, "Error getting ADT address,
RC=0xCC000001"), "Error getting ADT address, RC=0xCC000001");
*/
UtAssert_STUB_COUNT(CFE_EVS_SendEvent, 1);
}
Expand Down

0 comments on commit e6b7da4

Please sign in to comment.