diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2014-03-18 16:25:33 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-19 08:34:27 +0100 |
commit | 6592cabade83930ae03f086afd416a9bcd029197 (patch) | |
tree | e289b022f1f8375d0c4a4c64f2c5bbf6912a2c68 /testsuites/psxtests/psx01/init.c | |
parent | score: Add _Assert_Not_reached() (diff) | |
download | rtems-6592cabade83930ae03f086afd416a9bcd029197.tar.bz2 |
psxtests: move pthread_once tests into an extra test.
Diffstat (limited to 'testsuites/psxtests/psx01/init.c')
-rw-r--r-- | testsuites/psxtests/psx01/init.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c index 1d1a9e8e63..59605b49af 100644 --- a/testsuites/psxtests/psx01/init.c +++ b/testsuites/psxtests/psx01/init.c @@ -20,18 +20,6 @@ #include <rtems/score/todimpl.h> -pthread_once_t nesting_once = PTHREAD_ONCE_INIT; - -void Test_init_routine_nesting( void ); - -void Test_init_routine_nesting( void ) -{ - int status; - puts( "Test_init_routine_nesting: invoked" ); - status = pthread_once( &nesting_once, Test_init_routine_nesting ); - rtems_test_assert( status == EINVAL ); -} - void *POSIX_Init( void *argument ) @@ -107,11 +95,6 @@ void *POSIX_Init( ); rtems_test_assert( !status ); - /* once nesting */ - puts( "Init: pthread_once - SUCCESSFUL (init_routine_nesting executes)" ); - status = pthread_once( &nesting_once, Test_init_routine_nesting ); - rtems_test_assert( !status ); - /* create a thread */ puts( "Init: pthread_create - SUCCESSFUL" ); |