summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmclocknanosleep01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtmtests/psxtmclocknanosleep01/init.c')
-rw-r--r--testsuites/psxtmtests/psxtmclocknanosleep01/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtmtests/psxtmclocknanosleep01/init.c b/testsuites/psxtmtests/psxtmclocknanosleep01/init.c
index 86c1f5f8b6..484ddbacee 100644
--- a/testsuites/psxtmtests/psxtmclocknanosleep01/init.c
+++ b/testsuites/psxtmtests/psxtmclocknanosleep01/init.c
@@ -13,6 +13,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#include <timesys.h>
#include <rtems/btimer.h>
#include "test_support.h"
@@ -34,9 +36,9 @@ void *POSIX_Init(
TEST_BEGIN();
- benchmark_timer_initialize();
+ benchmark_timer_initialize();
clock_nanosleep( CLOCK_REALTIME, 0, &sleepTime, (struct timespec *) NULL );
- end_time = benchmark_timer_read();
+ end_time = benchmark_timer_read();
put_time( "nanosleep: yield", end_time, 1, 0, 0 );