From 1d61610a78c56a493c6ab7d84e619e95e0410a1c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 18 Apr 1997 18:39:01 +0000 Subject: Modified to reflect change from 255 posix priority levels to 254. --- testsuites/psxtests/psx01/psx01.scn | 2 +- testsuites/psxtests/psx05/init.c | 4 ++-- testsuites/psxtests/psx05/psx05.scn | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'testsuites') diff --git a/testsuites/psxtests/psx01/psx01.scn b/testsuites/psxtests/psx01/psx01.scn index 444c4f97bc..8f563dd26c 100644 --- a/testsuites/psxtests/psx01/psx01.scn +++ b/testsuites/psxtests/psx01/psx01.scn @@ -24,7 +24,7 @@ Init: sec (0), nsec (0) remaining Init: ID is 0x0c010001 Init: sched_get_priority_min (SCHED_FIFO) -- 1 Init: sched_get_priority_min -- EINVAL (invalid policy) -Init: sched_get_priority_max (SCHED_FIFO) -- 255 +Init: sched_get_priority_max (SCHED_FIFO) -- 254 Init: sched_get_priority_min -- EINVAL (invalid policy) Init: Round Robin quantum is 0 seconds, 500000000 nanoseconds Init: pthread_create - SUCCESSFUL diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index bade436f6f..ce8279a394 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -428,7 +428,7 @@ void *POSIX_Init( /* set priority of Task2 to highest priority */ - param.sched_priority = 255; + param.sched_priority = 254; puts( "Init: pthread_setschedparam - Setting Task2 priority to highest" ); status = pthread_setschedparam( Task2_id, SCHED_FIFO, ¶m ); @@ -550,7 +550,7 @@ void *POSIX_Init( /* set priority of Init to highest priority */ - param.sched_priority = 255; + param.sched_priority = 254; status = pthread_setschedparam( Init_id, SCHED_FIFO, ¶m ); assert( !status ); diff --git a/testsuites/psxtests/psx05/psx05.scn b/testsuites/psxtests/psx05/psx05.scn index 8d70b10c7b..6e4bc7320d 100644 --- a/testsuites/psxtests/psx05/psx05.scn +++ b/testsuites/psxtests/psx05/psx05.scn @@ -3,7 +3,7 @@ Init's ID is 0x0c010001 Init: pthread_mutexattr_init - EINVAL (NULL attr) Init: pthread_mutexattr_init - SUCCESSFUL Init: mutex protocol is (0) -- PTHREAD_PRIO_NONE -Init: mutex priority ceiling is 255 +Init: mutex priority ceiling is 254 Init: mutex process shared is (0) -- PTHREAD_PROCESS_PRIVATE Init: pthread_mutexattr_destroy - SUCCESSFUL Init: pthread_mutexattr_destroy - EINVAL (NULL attr) @@ -75,7 +75,7 @@ Init: pthread_mutex_init - SUCCESSFUL Init: pthread_mutex_trylock - SUCCESSFUL Init: pthread_setschedparam - Setting Task2 priority to highest Task 2: pthread_mutex_lock unavailable (inherit case) -Init: pthread_getschedparam - priority = 255 +Init: pthread_getschedparam - priority = 254 Init: pthread_mutex_unlock - SUCCESSFUL Task 2: mutex acquired Task 2: unlock Mutex 2 @@ -88,7 +88,7 @@ Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT) Init: pthread_mutex_init - SUCCESSFUL Init: pthread_mutex_getprioceiling - EINVAL (invalid id) Init: pthread_mutex_getprioceiling - EINVAL (NULL ceiling) -Init: pthread_mutex_getprioceiling - 255 +Init: pthread_mutex_getprioceiling - 254 Init: pthread_mutex_setprioceiling - EINVAL (invalid id) Init: pthread_mutex_setprioceiling - EINVAL (illegal priority) Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling) -- cgit v1.2.3