summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/nsecs
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-10 16:31:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commit9391f6d6637c752046cdfd89ae2eeea147496e44 (patch)
treefe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/nsecs
parentsapi: Add <rtems/test.h> (diff)
downloadrtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2
tests/samples: Use <rtems/test.h>
Diffstat (limited to 'testsuites/samples/nsecs')
-rw-r--r--testsuites/samples/nsecs/init.c6
-rw-r--r--testsuites/samples/nsecs/system.h4
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