diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:16 +0100 |
commit | 698c2e504a4382036b412e1b2798ca83432bbbab (patch) | |
tree | 114a7c00b534d6cecd4566b5d1c892c79b899268 /testsuites/psxtests/psxrwlock01/test.c | |
parent | tests: Use rtems_status_text() (diff) | |
download | rtems-698c2e504a4382036b412e1b2798ca83432bbbab.tar.bz2 |
tests/psxtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/psxtests/psxrwlock01/test.c')
-rw-r--r-- | testsuites/psxtests/psxrwlock01/test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxrwlock01/test.c b/testsuites/psxtests/psxrwlock01/test.c index 5ec22c2f8d..f91f9838c8 100644 --- a/testsuites/psxtests/psxrwlock01/test.c +++ b/testsuites/psxtests/psxrwlock01/test.c @@ -25,6 +25,8 @@ /* #define __USE_XOPEN2K XXX already defined on GNU/Linux */ #include <pthread.h> +const char rtems_test_name[] = "PSXRWLOCK 1"; + /* forward declarations to avoid warnings */ void *ReadLockThread(void *arg); void *WriteLockThread(void *arg); @@ -108,7 +110,7 @@ int main( int i; struct timespec abstime; - puts( "\n\n*** POSIX RWLOCK TEST 01 ***" ); + TEST_BEGIN(); /*************** NULL POINTER CHECKS *****************/ puts( "pthread_rwlockattr_init( NULL ) -- EINVAL" ); @@ -483,6 +485,6 @@ int main( rtems_test_assert( status == 0 ); /*************** END OF TEST *****************/ - puts( "*** END OF POSIX RWLOCK TEST 01 ***" ); + TEST_END(); exit(0); } |