diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-23 13:43:38 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-24 14:44:31 +0200 |
commit | 9f61ad60c038847e919e4fd330b78b532b274c64 (patch) | |
tree | c0a9b0719d2b42e2a350d0fb4eae9f4fc46cfbb0 /testsuites | |
parent | bsps: Include missing <rtems/bspIo.h> (diff) | |
download | rtems-9f61ad60c038847e919e4fd330b78b532b274c64.tar.bz2 |
testsuites: Increase invalid priority values
Increase the invalid priority values to support test runs with
alternative schedulers offering a significant higher maximum priority
value, e.g. EDF.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/psxtests/psx05/init.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp30/init.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/sptask_err04/init.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/sptask_err04/task1.c | 6 |
4 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index 5f39b2f16a..cde8733bb0 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -726,7 +726,7 @@ void *POSIX_Init( rtems_test_assert( status == EINVAL ); puts( "Init: pthread_mutex_setprioceiling - EINVAL (illegal priority)" ); - status = pthread_mutex_setprioceiling( &Mutex2_id, 512, &old_ceiling ); + status = pthread_mutex_setprioceiling( &Mutex2_id, INT_MAX, &old_ceiling ); rtems_test_assert( status == EINVAL ); puts( "Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling)" ); diff --git a/testsuites/sptests/sp30/init.c b/testsuites/sptests/sp30/init.c index 21fb3ddc89..616e4cd2a4 100644 --- a/testsuites/sptests/sp30/init.c +++ b/testsuites/sptests/sp30/init.c @@ -46,7 +46,7 @@ rtems_task Init( /* initiate with bad priority */ puts( "timer_initiate_server -- INVALID_PRIORITY" ); status = rtems_timer_initiate_server( - 1000, + UINT32_C(0x80000000), RTEMS_MINIMUM_STACK_SIZE, RTEMS_DEFAULT_ATTRIBUTES ); diff --git a/testsuites/sptests/sptask_err04/init.c b/testsuites/sptests/sptask_err04/init.c index b38b54b457..c9af611d27 100644 --- a/testsuites/sptests/sptask_err04/init.c +++ b/testsuites/sptests/sptask_err04/init.c @@ -49,7 +49,7 @@ rtems_task Init( /* priority > 255 error */ status = rtems_task_create( Task_name[1], - 257, + UINT32_C(0x80000000), RTEMS_MINIMUM_STACK_SIZE, RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES, diff --git a/testsuites/sptests/sptask_err04/task1.c b/testsuites/sptests/sptask_err04/task1.c index c84ef826a2..29b63db5f4 100644 --- a/testsuites/sptests/sptask_err04/task1.c +++ b/testsuites/sptests/sptask_err04/task1.c @@ -136,7 +136,11 @@ rtems_task Task_1( puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS" ); /* bad priority */ - status = rtems_task_set_priority( RTEMS_SELF, 512, &previous_priority ); + status = rtems_task_set_priority( + RTEMS_SELF, + UINT32_C(0x80000000), + &previous_priority + ); fatal_directive_status( status, RTEMS_INVALID_PRIORITY, |