summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx04/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-09-01 16:15:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-09-01 16:15:33 +0000
commita98ea8714353dcf076ef8e108eda4e0431c75b14 (patch)
tree3bf2dadf37ed4c34a34ff24854b1f3e3683aa45d /testsuites/psxtests/psx04/init.c
parent2005-09-01 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-a98ea8714353dcf076ef8e108eda4e0431c75b14.tar.bz2
2005-09-01 Joel Sherrill <joel@OARcorp.com>
PR 628/rtems * psx04/init.c, psx04/psx04.scn: Update tests to reflect a signal of 0 being an error.
Diffstat (limited to 'testsuites/psxtests/psx04/init.c')
-rw-r--r--testsuites/psxtests/psx04/init.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c
index 6f1d588dfe..98a9cd3dd4 100644
--- a/testsuites/psxtests/psx04/init.c
+++ b/testsuites/psxtests/psx04/init.c
@@ -421,8 +421,10 @@ void *POSIX_Init(
puts( "Init: sigaddset - EINVAL (set invalid)" );
status = sigaddset( &mask, 0 );
- assert( !status );
- puts( "Init: sigaddset - SUCCESSFUL (signal = 0)" );
+ if ( status != -1 )
+ printf( "status = %d\n", status );
+ assert( errno == EINVAL );
+ puts( "Init: sigaddset - EINVAL (signal = 0)" );
status = sigaddset( &mask, 999 );
if ( status != -1 )
@@ -463,8 +465,10 @@ void *POSIX_Init(
puts( "Init: sigismember - EINVAL (signal invalid)" );
status = sigaction( 0, &act, 0 );
- assert( !status );
- puts( "Init: sigaction - SUCCESSFUL (signal = 0)" );
+ if ( status != -1 )
+ printf( "status = %d\n", status );
+ assert( errno == EINVAL );
+ puts( "Init: sigaction - EINVAL (signal = 0)" );
status = sigaction( 999, &act, NULL );
if ( status != -1 )
@@ -523,8 +527,10 @@ void *POSIX_Init(
puts( "Init: pthread_kill - ESRCH (signal SA_SIGINFO)" );
status = pthread_kill( Init_id, 0 );
- assert( !status );
- puts( "Init: pthread_kill - SUCCESSFUL (signal = 0)" );
+ if ( status != -1 )
+ printf( "status = %d\n", status );
+ assert( errno == EINVAL );
+ puts( "Init: pthread_kill - EINVAL (signal = 0)" );
act.sa_handler = SIG_IGN;
act.sa_flags = 0;
@@ -540,8 +546,10 @@ void *POSIX_Init(
puts( "Init: kill - ESRCH (pid invalid)" );
status = kill( getpid(), 0 );
- assert( !status );
- puts( "Init: kill - SUCCESSFUL (signal = 0)" );
+ if ( status != -1 )
+ printf( "status = %d\n", status );
+ assert( errno == EINVAL );
+ puts( "Init: kill - EINVAL (signal = 0)" );
status = kill( getpid(), 999 );
if ( status != -1 )