diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-18 18:39:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-18 18:39:01 +0000 |
commit | 1d61610a78c56a493c6ab7d84e619e95e0410a1c (patch) | |
tree | 9ef984f38580cba9795ddb3c94a77e4a463c1421 | |
parent | Changed format of comment blocks to C comments. (diff) | |
download | rtems-1d61610a78c56a493c6ab7d84e619e95e0410a1c.tar.bz2 |
Modified to reflect change from 255 posix priority levels to 254.
-rw-r--r-- | c/src/tests/psxtests/psx01/psx01.scn | 2 | ||||
-rw-r--r-- | c/src/tests/psxtests/psx05/init.c | 4 | ||||
-rw-r--r-- | c/src/tests/psxtests/psx05/psx05.scn | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psx01/psx01.scn | 2 | ||||
-rw-r--r-- | testsuites/psxtests/psx05/init.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psx05/psx05.scn | 6 |
6 files changed, 12 insertions, 12 deletions
diff --git a/c/src/tests/psxtests/psx01/psx01.scn b/c/src/tests/psxtests/psx01/psx01.scn index 444c4f97bc..8f563dd26c 100644 --- a/c/src/tests/psxtests/psx01/psx01.scn +++ b/c/src/tests/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/c/src/tests/psxtests/psx05/init.c b/c/src/tests/psxtests/psx05/init.c index bade436f6f..ce8279a394 100644 --- a/c/src/tests/psxtests/psx05/init.c +++ b/c/src/tests/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/c/src/tests/psxtests/psx05/psx05.scn b/c/src/tests/psxtests/psx05/psx05.scn index 8d70b10c7b..6e4bc7320d 100644 --- a/c/src/tests/psxtests/psx05/psx05.scn +++ b/c/src/tests/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) 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) |