From 2ffcc2ed9fbe5330ce05c8a5ec2e6d23302f2285 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Sep 1996 15:17:39 +0000 Subject: modified test to take into account change in default value of inheritsched pthread attribute from implicit to explicit scheduling parameters. --- c/src/tests/psxtests/psx12/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c/src/tests') diff --git a/c/src/tests/psxtests/psx12/init.c b/c/src/tests/psxtests/psx12/init.c index 53f646e5c2..b5b35d8604 100644 --- a/c/src/tests/psxtests/psx12/init.c +++ b/c/src/tests/psxtests/psx12/init.c @@ -58,6 +58,8 @@ void *POSIX_Init( status = pthread_attr_init( &attr ); assert( !status ); + status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); + assert( !status ); attr.schedpolicy = -1; puts( "Init: pthread_create - EINVAL (invalid scheduling policy)" ); @@ -85,6 +87,9 @@ void *POSIX_Init( status = pthread_attr_setschedparam( &attr, &schedparam ); assert( !status ); + status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); + assert( !status ); + puts( "Init: pthread_create - EINVAL (replenish < budget)" ); status = pthread_create( &Task_id, &attr, Task_1, NULL ); assert( status == EINVAL ); -- cgit v1.2.3