diff --git a/testApp/rtemsTestHarness.c b/testApp/rtemsTestHarness.c index 0ca6ed3..9e09c60 100644 --- a/testApp/rtemsTestHarness.c +++ b/testApp/rtemsTestHarness.c @@ -2,38 +2,11 @@ * Copyright information and license terms for this software can be * found in the file LICENSE that is included with the distribution */ -#include -#include -#include -#include -#include "rtemsNetworking.h" +extern void pvDataAllTests(void); -#include - -rtems_task -Init (rtems_task_argument ignored) +int main(int argc, char **argv) { - rtems_bsdnet_initialize_network (); - //rtems_bsdnet_show_if_stats (); - - rtems_time_of_day timeOfDay; - if (rtems_clock_get(RTEMS_CLOCK_GET_TOD,&timeOfDay) != RTEMS_SUCCESSFUL) { - timeOfDay.year = 2014; - timeOfDay.month = 1; - timeOfDay.day = 1; - timeOfDay.hour = 0; - timeOfDay.minute = 0; - timeOfDay.second = 0; - timeOfDay.ticks = 0; - - rtems_status_code ret = rtems_clock_set(&timeOfDay); - if (ret != RTEMS_SUCCESSFUL) { - printf("**** Can't set time %s\n", rtems_status_text(ret)); - } - } - osdTimeRegister(); - - extern void pvDataAllTests(void); - pvDataAllTests(); + pvDataAllTests(); /* calls epicsExit(0) */ + return 0; }