mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-25 06:09:47 +08:00
2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1743/cpu * tm26/task1.c, tm27/task1.c: Add Simple Priority Scheduler as complement to existing Deterministic Priority Scheduler. Modify these tests to verify the scheduler they are designed to work with is the default scheduler.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
|
||||
|
||||
PR 1743/cpu
|
||||
* tm26/task1.c, tm27/task1.c: Add Simple Priority Scheduler as
|
||||
complement to existing Deterministic Priority Scheduler. Modify these
|
||||
tests to verify the scheduler they are designed to work with is the
|
||||
default scheduler.
|
||||
|
||||
2011-03-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* tm26/task1.c: Update for API change.
|
||||
|
||||
@@ -102,6 +102,13 @@ rtems_task Init(
|
||||
|
||||
puts( "\n\n*** TIME TEST 26 ***" );
|
||||
|
||||
if (_Scheduler.Operations.initialize != _Scheduler_priority_Initialize) {
|
||||
puts(" Error ==> " );
|
||||
puts("Test only supported for deterministic priority scheduler\n" );
|
||||
puts( "*** END OF TEST 26 ***" );
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
#define FP1_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 3u) /* 201, */
|
||||
status = rtems_task_create(
|
||||
rtems_build_name( 'F', 'P', '1', ' ' ),
|
||||
|
||||
@@ -54,6 +54,12 @@ rtems_task Init(
|
||||
Print_Warning();
|
||||
|
||||
puts( "\n\n*** TIME TEST 27 ***" );
|
||||
if (_Scheduler.Operations.initialize != _Scheduler_priority_Initialize) {
|
||||
puts(" Error ==> " );
|
||||
puts("Test only supported for deterministic priority scheduler\n" );
|
||||
puts( "*** END OF TEST 26 ***" );
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
#define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1u)
|
||||
status = rtems_task_create(
|
||||
|
||||
Reference in New Issue
Block a user