Changeset e4cc4176 in rtems for testsuites/psxtests/psx04


Ignore:
Timestamp:
Aug 23, 1996, 3:58:24 PM (24 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5a234809
Parents:
3adf786
Message:

Changed all EFAULTS to EINVALs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psx04/init.c

    r3adf786 re4cc4176  
    406406  if ( status != -1 )
    407407    printf( "status = %d\n", status );
    408   assert( errno == EFAULT );
    409   puts( "Init: sigemptyset - EFAULT (set invalid)" );
     408  assert( errno == EINVAL );
     409  puts( "Init: sigemptyset - EINVAL (set invalid)" );
    410410
    411411  status = sigfillset( NULL );
    412412  if ( status != -1 )
    413413    printf( "status = %d\n", status );
    414   assert( errno == EFAULT );
    415   puts( "Init: sigfillset - EFAULT (set invalid)" );
     414  assert( errno == EINVAL );
     415  puts( "Init: sigfillset - EINVAL (set invalid)" );
    416416
    417417  status = sigaddset( NULL, SIGUSR1 );
    418418  if ( status != -1 )
    419419    printf( "status = %d\n", status );
    420   assert( errno == EFAULT );
    421   puts( "Init: sigaddset - EFAULT (set invalid)" );
     420  assert( errno == EINVAL );
     421  puts( "Init: sigaddset - EINVAL (set invalid)" );
    422422
    423423  status = sigaddset( &mask, 0 );
     
    434434  if ( status != -1 )
    435435    printf( "status = %d\n", status );
    436   assert( errno == EFAULT );
    437   puts( "Init: sigdelset - EFAULT (set invalid)" );
     436  assert( errno == EINVAL );
     437  puts( "Init: sigdelset - EINVAL (set invalid)" );
    438438 
    439439  status = sigdelset( &mask, 0 );
     
    450450  if ( status != -1 )
    451451    printf( "status = %d\n", status );
    452   assert( errno == EFAULT );
    453   puts( "Init: sigismember - EFAULT (set invalid)" );
     452  assert( errno == EINVAL );
     453  puts( "Init: sigismember - EINVAL (set invalid)" );
    454454 
    455455  status = sigismember( &mask, 0 );
     
    482482  if ( status != -1 )
    483483    printf( "status = %d\n", status );
    484   assert( errno == EFAULT );
    485   puts( "Init: pthread_sigmask - EFAULT (set and oset invalid)" );
     484  assert( errno == EINVAL );
     485  puts( "Init: pthread_sigmask - EINVAL (set and oset invalid)" );
    486486
    487487  status = pthread_sigmask( 999, &pending_set, NULL );
     
    494494  if ( status != -1 )
    495495    printf( "status = %d\n", status );
    496   assert( errno == EFAULT );
    497   puts( "Init: sigpending - EFAULT (set invalid)" );
     496  assert( errno == EINVAL );
     497  puts( "Init: sigpending - EINVAL (set invalid)" );
    498498
    499499  timeout.tv_nsec = -1;
     
    550550  puts( "Init: kill - SUCCESSFUL (signal = 0)" );
    551551
     552  status = kill( getpid(), 999 );
     553  if ( status != -1 )
     554    printf( "status = %d\n", status );
     555  assert( errno == EINVAL );
     556  puts( "Init: kill - EINVAL (sig invalid)" );
     557
    552558  /* exit this thread */
    553559
Note: See TracChangeset for help on using the changeset viewer.