diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-21 15:49:21 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-21 15:49:21 +0000 |
commit | 6702bffccdc42036c6e5115b7fad0afa4fecf59f (patch) | |
tree | 2c95fe01f6c84972f1460af6b584eb29f75355b9 /testsuites/psxtests/psx07 | |
parent | 256a462255b37ca57b77c6727d94c2d7941ce793 (diff) |
updated to support ENOTSUP
Diffstat (limited to 'testsuites/psxtests/psx07')
-rw-r--r-- | testsuites/psxtests/psx07/init.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c index 9d11cd578a..189d7cdfd0 100644 --- a/testsuites/psxtests/psx07/init.c +++ b/testsuites/psxtests/psx07/init.c @@ -99,14 +99,14 @@ void *POSIX_Init( /* must go around pthread_attr_setstacksize to set a bad stack size */ attr.stacksize = 0; - puts( "Init: pthread_create - EAGAIN (stacksize too small)" ); + puts( "Init: pthread_create - EINVAL (stacksize too small)" ); status = pthread_create( &Task_id, &attr, Task_1, NULL ); - assert( status == EAGAIN ); + assert( status == EINVAL ); attr.stacksize = BSP_Configuration.work_space_size; - puts( "Init: pthread_create - EINVAL (stacksize too large)" ); + puts( "Init: pthread_create - EAGAIN (stacksize too large)" ); status = pthread_create( &Task_id, &attr, Task_1, NULL ); - assert( status == EINVAL ); + assert( status == EAGAIN ); status = pthread_attr_init( &attr ); assert( !status ); @@ -126,9 +126,9 @@ void *POSIX_Init( /* must go around pthread_attr_set routines to set a bad value */ attr.contentionscope = PTHREAD_SCOPE_SYSTEM; - puts( "Init: pthread_create - ENOSYS (unsupported system contention scope)" ); + puts( "Init: pthread_create - ENOTSUP (unsupported system contention scope)" ); status = pthread_create( &Task_id, &attr, Task_1, NULL ); - assert( status == ENOSYS ); + assert( status == ENOTSUP ); status = pthread_attr_init( &attr ); assert( !status ); @@ -204,9 +204,9 @@ void *POSIX_Init( pthread_attr_setinheritsched( &destroyed_attr, PTHREAD_INHERIT_SCHED ); assert( status == EINVAL ); - puts( "Init: pthread_attr_setinheritsched - EINVAL (invalid inheritsched)" ); + puts( "Init: pthread_attr_setinheritsched - ENOTSUP (invalid inheritsched)" ); status = pthread_attr_setinheritsched( &attr, -1 ); - assert( status == EINVAL ); + assert( status == ENOTSUP ); puts( "Init: pthread_attr_setinheritsched - SUCCESSFUL" ); status = pthread_attr_setinheritsched( &attr, PTHREAD_INHERIT_SCHED ); @@ -242,9 +242,9 @@ void *POSIX_Init( pthread_attr_setschedpolicy( &destroyed_attr, SCHED_OTHER ); assert( status == EINVAL ); - puts( "Init: pthread_attr_setschedpolicy - EINVAL (invalid schedpolicy)" ); + puts( "Init: pthread_attr_setschedpolicy - ENOTSUP (invalid schedpolicy)" ); status = pthread_attr_setschedpolicy( &attr, -1 ); - assert( status == EINVAL ); + assert( status == ENOTSUP ); puts( "Init: pthread_attr_setschedpolicy - SUCCESSFUL" ); status = pthread_attr_setschedpolicy( &attr, SCHED_RR ); |