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/psxtmmutex03/init.c | |
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 '')
-rw-r--r-- | testsuites/psxtmtests/psxtmmutex03/init.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/testsuites/psxtmtests/psxtmmutex03/init.c b/testsuites/psxtmtests/psxtmmutex03/init.c index 6a29230520..9751b87e3f 100644 --- a/testsuites/psxtmtests/psxtmmutex03/init.c +++ b/testsuites/psxtmtests/psxtmmutex03/init.c @@ -11,6 +11,8 @@ #include "config.h" #endif +#define TEST_INIT + #include <timesys.h> #include <rtems/btimer.h> #include <errno.h> @@ -93,10 +95,10 @@ void benchmark_mutex_trylock_not_available(void) benchmark_timer_initialize(); status = pthread_mutex_trylock( &MutexId ); - /* - * it has to return a negative value - * because it try to lock a not available mutex - * so the assert call is make with status instead !status + /* + * it has to return a negative value + * because it try to lock a not available mutex + * so the assert call is make with status instead !status */ end_time = benchmark_timer_read(); rtems_test_assert( status ); @@ -136,7 +138,7 @@ void *POSIX_Init( int status; TEST_BEGIN(); - + /* * Create the single Mutex used in all the test case */ @@ -144,7 +146,7 @@ void *POSIX_Init( rtems_test_assert( !status ); /* - * Now invoke subroutines to time each test case + * Now invoke subroutines to time each test case * get the goal depends of its order */ benchmark_mutex_lock_available(); @@ -154,7 +156,7 @@ void *POSIX_Init( benchmark_mutex_unlock_no_threads_waiting(); benchmark_mutex_timedlock_available(); benchmark_mutex_unlock_no_threads_waiting(); - + /* * Destroy the mutex used in the tests |