summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-17 13:39:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-17 13:43:55 +0200
commitf502882ef5dec2149baf9511e6543ce7b2884bdf (patch)
tree0a8cd6251ade8a34b4e2c617a565f5a37b60be23 /testsuites
parentposix: Fix return status of pthread_cancel() (diff)
downloadrtems-f502882ef5dec2149baf9511e6543ce7b2884bdf.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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c
index ff3bb96e13..89262cbb67 100644
--- a/testsuites/psxtests/psx04/init.c
+++ b/testsuites/psxtests/psx04/init.c
@@ -543,15 +543,11 @@ 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( 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;