forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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)" );
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user