summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psx12/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-06 15:17:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-06 15:17:39 +0000
commit2ffcc2ed9fbe5330ce05c8a5ec2e6d23302f2285 (patch)
treecb0bdd13c55157a6099eedaf5df86d0122962a05 /c/src/tests/psxtests/psx12/init.c
parentchanged _TOD_Is_set from a function to a boolean variable (diff)
downloadrtems-2ffcc2ed9fbe5330ce05c8a5ec2e6d23302f2285.tar.bz2
modified test to take into account change in default value of
inheritsched pthread attribute from implicit to explicit scheduling parameters.
Diffstat (limited to '')
-rw-r--r--c/src/tests/psxtests/psx12/init.c5
1 files changed, 5 insertions, 0 deletions
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 );