summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmnanosleep01/init.c
diff options
context:
space:
mode:
authorbjorn larsson <bjornlarsson@oarcorp.com>2014-03-21 15:35:26 -0500
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-25 08:06:37 +0100
commitfd46711c5410cde6f5a1913e6d2e45ddee190269 (patch)
tree9e1b46c4d7b6e98fc9434df5bad2a9b27a98fe17 /testsuites/psxtmtests/psxtmnanosleep01/init.c
parenttmtests: convert to test.h (diff)
downloadrtems-fd46711c5410cde6f5a1913e6d2e45ddee190269.tar.bz2
psxtmtests: Add test.h support
Diffstat (limited to 'testsuites/psxtmtests/psxtmnanosleep01/init.c')
-rw-r--r--testsuites/psxtmtests/psxtmnanosleep01/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtmtests/psxtmnanosleep01/init.c b/testsuites/psxtmtests/psxtmnanosleep01/init.c
index 99d9551fd6..e86a5d1086 100644
--- a/testsuites/psxtmtests/psxtmnanosleep01/init.c
+++ b/testsuites/psxtmtests/psxtmnanosleep01/init.c
@@ -15,6 +15,8 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+const char rtems_test_name[] = "PSXTMNANOSLEEP 01";
+
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
@@ -28,7 +30,7 @@ void *POSIX_Init(
sleepTime.tv_sec = 0;
sleepTime.tv_nsec = 0;
- puts( "\n\n*** POSIX TIME TEST PSXTMNANOSLEEP01 ***" );
+ TEST_BEGIN();
benchmark_timer_initialize();
nanosleep( &sleepTime, (struct timespec *) NULL );
@@ -36,7 +38,7 @@ void *POSIX_Init(
put_time( "nanosleep: yield", end_time, 1, 0, 0 );
- puts( "*** END OF POSIX TIME TEST PSXTMNANOSLEEP01 ***" );
+ TEST_END();
rtems_test_exit(0);
}