diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-16 17:11:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-16 17:11:32 +0000 |
commit | a1a5f9225cbfbc4f0d4528d2f5f7cf6f5ffecb22 (patch) | |
tree | 12bc32435c4e1abcff83b63e554593c5f5b8c679 /testsuites/tmtests/tm27/task1.c | |
parent | 2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-a1a5f9225cbfbc4f0d4528d2f5f7cf6f5ffecb22.tar.bz2 |
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.
Diffstat (limited to 'testsuites/tmtests/tm27/task1.c')
-rw-r--r-- | testsuites/tmtests/tm27/task1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/tmtests/tm27/task1.c b/testsuites/tmtests/tm27/task1.c index 0ec0bb1b24..f75e0f0d31 100644 --- a/testsuites/tmtests/tm27/task1.c +++ b/testsuites/tmtests/tm27/task1.c @@ -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( |