diff options
Diffstat (limited to 'testsuites/samples/nsecs')
-rw-r--r-- | testsuites/samples/nsecs/init.c | 6 | ||||
-rw-r--r-- | testsuites/samples/nsecs/system.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c index fe5390dc38..e9fff63f26 100644 --- a/testsuites/samples/nsecs/init.c +++ b/testsuites/samples/nsecs/init.c @@ -34,6 +34,8 @@ #include "tmacros.h" #include "pritime.h" +const char rtems_test_name[] = "NANOSECOND CLOCK"; + static char *my_ctime( time_t t ) { static char b[32]; @@ -62,7 +64,7 @@ rtems_task Init( rtems_time_of_day time; int index; - puts( "\n\n*** NANOSECOND CLOCK TEST ***" ); + TEST_BEGIN(); time.year = 2007; time.month = 03; @@ -137,7 +139,7 @@ rtems_task Init( sleep(1); - puts( "*** END OF NANOSECOND CLOCK TEST ***" ); + TEST_END(); exit(0); } diff --git a/testsuites/samples/nsecs/system.h b/testsuites/samples/nsecs/system.h index a9d2ac6c86..25f7d313b6 100644 --- a/testsuites/samples/nsecs/system.h +++ b/testsuites/samples/nsecs/system.h @@ -1,6 +1,8 @@ #ifndef SYSTEM_H #define SYSTEM_H +#include <rtems/test.h> + #include <bsp.h> /* for device driver prototypes */ extern void dummy_function_empty_body_to_force_call(void); @@ -12,5 +14,7 @@ extern void dummy_function_empty_body_to_force_call(void); #define CONFIGURE_MAXIMUM_TASKS 1 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #include <rtems/confdefs.h> #endif |