Skip to content

Commit 546264e

Browse files
skliperpepepr08
authored andcommitted
Fix nasa#375, removed network setup call (will squash later)
1 parent 74a72e9 commit 546264e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fsw/pc-rtems/src/cfe_psp_start.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ int timer_count = 0;
117117
*/
118118
int CFE_PSP_Setup(void)
119119
{
120+
/* TODO this hangs the dev board when using rki2 since network is already set up */
121+
#if 0
120122
rtems_status_code status;
121123

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

132135
return RTEMS_SUCCESSFUL;
133136
}

unit-test-coverage/pc-rtems/src/coveragetest-cfe-psp-start.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ void Test_CFE_PSP_Setup(void)
4343
/* Test for printf due to error from rtems_bsdnet_initialize_network (function still returns RTEMS_SUCCESSFUL) */
4444
UT_SetDefaultReturnValue(UT_KEY(PCS_rtems_bsdnet_initialize_network), -1);
4545
UtAssert_INT32_EQ(CFE_PSP_Setup(), PCS_RTEMS_SUCCESSFUL);
46-
UtAssert_STUB_COUNT(PCS_printf, 1);
4746
}
4847

4948
void Test_OS_Application_Startup(void)
@@ -82,4 +81,4 @@ void Test_CFE_PSP_Main(void)
8281
* failure of OS_FileSysAddFixedMap, and 1 from CFE_PSP_InitProcessorReservedMemory */
8382
UtAssert_STUB_COUNT(OS_printf, 5);
8483
UT_ResetState(UT_KEY(OS_printf)); /* Reset so cleared for future tests */
85-
}
84+
}

0 commit comments

Comments
 (0)