diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-17 13:39:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-17 13:48:08 +0200 |
commit | d346f705e2d947f86997264d521dc67ab596ae20 (patch) | |
tree | 08ed0802f7927f0942ad3a6b941b1a2fc8bcb6b9 /testsuites | |
parent | posix: Fix return status of pthread_cancel() (diff) | |
download | rtems-d346f705e2d947f86997264d521dc67ab596ae20.tar.bz2 |
posix: Fix return states of pthread_kill()
POSIX mandates that an error code is returned and not -1 plus errno.
Update #2715.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/psxtests/psx04/init.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c index e9311b9e16..6b6387376b 100644 --- a/testsuites/psxtests/psx04/init.c +++ b/testsuites/psxtests/psx04/init.c @@ -536,9 +536,7 @@ void *POSIX_Init( puts( "Init: pthread_sigmask - EINVAL (timout->nsec invalid to large)" ); status = pthread_kill( Init_id, 999 ); - if ( status != -1 ) - printf( "status = %d\n", status ); - rtems_test_assert( errno == EINVAL ); + rtems_test_assert( status == EINVAL ); puts( "Init: pthread_kill - EINVAL (sig invalid)" ); status = pthread_kill( 0, SIGUSR2 ); @@ -548,9 +546,7 @@ void *POSIX_Init( puts( "Init: pthread_kill - ESRCH (signal SA_SIGINFO)" ); status = pthread_kill( Init_id, 0 ); - if ( status != -1 ) - printf( "status = %d\n", status ); - rtems_test_assert( errno == EINVAL ); + rtems_test_assert( status == EINVAL ); puts( "Init: pthread_kill - EINVAL (signal = 0)" ); act.sa_handler = SIG_IGN; |