diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 18:41:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-14 18:41:18 +0000 |
commit | 5abf63d983adbbd1c53e85f54123e99a57f86306 (patch) | |
tree | b5f0fe51adc49833c05743699fd23fe5a1af7ccb /testsuites/psxtests/psx07/init.c | |
parent | 2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-5abf63d983adbbd1c53e85f54123e99a57f86306.tar.bz2 |
2008-12-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx05/init.c, psx07/init.c, psx09/init.c, psx11/init.c, psx12/init.c:
Run all tests successfully with maxixum number of priorities as 16
instead of 256. This was done by temporarily modifying the score
priority.h maximum. This allowed testing of all API code to ensure
that it worked properly with a reduced number of priorities. Most
modifications were to switch from hard-coded maximum to using the API
provided methods to determine maximum number of priority levels.
Diffstat (limited to 'testsuites/psxtests/psx07/init.c')
-rw-r--r-- | testsuites/psxtests/psx07/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c index 32b0906440..de9392bb98 100644 --- a/testsuites/psxtests/psx07/init.c +++ b/testsuites/psxtests/psx07/init.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -499,7 +499,7 @@ void *POSIX_Init( status = pthread_setschedparam( pthread_self(), SCHED_OTHER, NULL ); fatal_directive_check_status_only( status, EINVAL, "invalid priority" ); - schedparam.sched_priority = 128; + schedparam.sched_priority = sched_get_priority_max(SCHED_OTHER); puts( "Init: pthread_setschedparam - EINVAL (invalid policy)" ); status = pthread_setschedparam( pthread_self(), -1, &schedparam ); |