diff options
author | Chris Johns <chrisj@rtems.org> | 2017-10-19 16:39:16 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-10-23 16:25:45 +1100 |
commit | 98c6d501452f02264ff148a1b8479e420c81562d (patch) | |
tree | 8c6cd90ccd1df98f782396d94d6acdbfe5d042cb /testsuites/psxtmtests/psxtmclocknanosleep01 | |
parent | posix: Fix POSIX disabled build (diff) | |
download | rtems-98c6d501452f02264ff148a1b8479e420c81562d.tar.bz2 |
testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured
with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
call to printk.
- Control the test's single init for functions and global data with
TEST_INIT and not CONFIGURE_INIT. They are now separate.
Updates #3170.
Diffstat (limited to 'testsuites/psxtmtests/psxtmclocknanosleep01')
-rw-r--r-- | testsuites/psxtmtests/psxtmclocknanosleep01/init.c | 6 |
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 ); |