From b59736441934fe363f35df5b3dba4bdc1e2b5f9d Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 13 Mar 2018 18:44:38 -0700 Subject: [PATCH] simpler test harness main() --- testApp/rtemsTestHarness.c | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) 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; }