Changeset 6702bffc in rtems


Ignore:
Timestamp:
08/21/96 15:49:21 (26 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
df70c6b
Parents:
256a462
Message:

updated to support ENOTSUP

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx07/init.c

    r256a462 r6702bffc  
    100100  attr.stacksize = 0;
    101101 
    102   puts( "Init: pthread_create - EAGAIN (stacksize too small)" );
     102  puts( "Init: pthread_create - EINVAL (stacksize too small)" );
     103  status = pthread_create( &Task_id, &attr, Task_1, NULL );
     104  assert( status == EINVAL );
     105
     106  attr.stacksize = BSP_Configuration.work_space_size;
     107  puts( "Init: pthread_create - EAGAIN (stacksize too large)" );
    103108  status = pthread_create( &Task_id, &attr, Task_1, NULL );
    104109  assert( status == EAGAIN );
    105 
    106   attr.stacksize = BSP_Configuration.work_space_size;
    107   puts( "Init: pthread_create - EINVAL (stacksize too large)" );
    108   status = pthread_create( &Task_id, &attr, Task_1, NULL );
    109   assert( status == EINVAL );
    110110
    111111  status = pthread_attr_init( &attr );
     
    127127  attr.contentionscope = PTHREAD_SCOPE_SYSTEM;
    128128
    129   puts( "Init: pthread_create - ENOSYS (unsupported system contention scope)" );
     129  puts( "Init: pthread_create - ENOTSUP (unsupported system contention scope)" );
    130130  status = pthread_create( &Task_id, &attr, Task_1, NULL );
    131   assert( status == ENOSYS );
     131  assert( status == ENOTSUP );
    132132
    133133  status = pthread_attr_init( &attr );
     
    205205  assert( status == EINVAL );
    206206 
    207   puts( "Init: pthread_attr_setinheritsched - EINVAL (invalid inheritsched)" );
     207  puts( "Init: pthread_attr_setinheritsched - ENOTSUP (invalid inheritsched)" );
    208208  status = pthread_attr_setinheritsched( &attr, -1 );
    209   assert( status == EINVAL );
     209  assert( status == ENOTSUP );
    210210 
    211211  puts( "Init: pthread_attr_setinheritsched - SUCCESSFUL" );
     
    243243  assert( status == EINVAL );
    244244 
    245   puts( "Init: pthread_attr_setschedpolicy - EINVAL (invalid schedpolicy)" );
     245  puts( "Init: pthread_attr_setschedpolicy - ENOTSUP (invalid schedpolicy)" );
    246246  status = pthread_attr_setschedpolicy( &attr, -1 );
    247   assert( status == EINVAL );
     247  assert( status == ENOTSUP );
    248248 
    249249  puts( "Init: pthread_attr_setschedpolicy - SUCCESSFUL" );
  • testsuites/psxtests/psx07/init.c

    r256a462 r6702bffc  
    100100  attr.stacksize = 0;
    101101 
    102   puts( "Init: pthread_create - EAGAIN (stacksize too small)" );
     102  puts( "Init: pthread_create - EINVAL (stacksize too small)" );
     103  status = pthread_create( &Task_id, &attr, Task_1, NULL );
     104  assert( status == EINVAL );
     105
     106  attr.stacksize = BSP_Configuration.work_space_size;
     107  puts( "Init: pthread_create - EAGAIN (stacksize too large)" );
    103108  status = pthread_create( &Task_id, &attr, Task_1, NULL );
    104109  assert( status == EAGAIN );
    105 
    106   attr.stacksize = BSP_Configuration.work_space_size;
    107   puts( "Init: pthread_create - EINVAL (stacksize too large)" );
    108   status = pthread_create( &Task_id, &attr, Task_1, NULL );
    109   assert( status == EINVAL );
    110110
    111111  status = pthread_attr_init( &attr );
     
    127127  attr.contentionscope = PTHREAD_SCOPE_SYSTEM;
    128128
    129   puts( "Init: pthread_create - ENOSYS (unsupported system contention scope)" );
     129  puts( "Init: pthread_create - ENOTSUP (unsupported system contention scope)" );
    130130  status = pthread_create( &Task_id, &attr, Task_1, NULL );
    131   assert( status == ENOSYS );
     131  assert( status == ENOTSUP );
    132132
    133133  status = pthread_attr_init( &attr );
     
    205205  assert( status == EINVAL );
    206206 
    207   puts( "Init: pthread_attr_setinheritsched - EINVAL (invalid inheritsched)" );
     207  puts( "Init: pthread_attr_setinheritsched - ENOTSUP (invalid inheritsched)" );
    208208  status = pthread_attr_setinheritsched( &attr, -1 );
    209   assert( status == EINVAL );
     209  assert( status == ENOTSUP );
    210210 
    211211  puts( "Init: pthread_attr_setinheritsched - SUCCESSFUL" );
     
    243243  assert( status == EINVAL );
    244244 
    245   puts( "Init: pthread_attr_setschedpolicy - EINVAL (invalid schedpolicy)" );
     245  puts( "Init: pthread_attr_setschedpolicy - ENOTSUP (invalid schedpolicy)" );
    246246  status = pthread_attr_setschedpolicy( &attr, -1 );
    247   assert( status == EINVAL );
     247  assert( status == ENOTSUP );
    248248 
    249249  puts( "Init: pthread_attr_setschedpolicy - SUCCESSFUL" );
Note: See TracChangeset for help on using the changeset viewer.