Skip to content

Commit

Permalink
Fix nasa#375, removed network setup call (will squash later)
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jan 11, 2024
1 parent c7e6ee4 commit 4f2d699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fsw/pc-rtems/src/cfe_psp_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ int timer_count = 0;
*/
int CFE_PSP_Setup(void)
{
/* TODO this hangs the dev board when using rki2 since network is already set up */
#if 0
rtems_status_code status;

/*
Expand All @@ -128,6 +130,7 @@ int CFE_PSP_Setup(void)
{
printf("Network init not successful: %s / %s (continuing)\n", rtems_status_text(status), strerror(errno));
}
#endif

return RTEMS_SUCCESSFUL;
}
Expand Down
3 changes: 1 addition & 2 deletions unit-test-coverage/pc-rtems/src/coveragetest-cfe-psp-start.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ void Test_CFE_PSP_Setup(void)
/* Test for printf due to error from rtems_bsdnet_initialize_network (function still returns RTEMS_SUCCESSFUL) */
UT_SetDefaultReturnValue(UT_KEY(PCS_rtems_bsdnet_initialize_network), -1);
UtAssert_INT32_EQ(CFE_PSP_Setup(), PCS_RTEMS_SUCCESSFUL);
UtAssert_STUB_COUNT(PCS_printf, 1);
}

void Test_OS_Application_Startup(void)
Expand Down Expand Up @@ -82,4 +81,4 @@ void Test_CFE_PSP_Main(void)
* failure of OS_FileSysAddFixedMap, and 1 from CFE_PSP_InitProcessorReservedMemory */
UtAssert_STUB_COUNT(OS_printf, 5);
UT_ResetState(UT_KEY(OS_printf)); /* Reset so cleared for future tests */
}
}

0 comments on commit 4f2d699

Please sign in to comment.