summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2014-06-02 16:15:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-03 08:16:09 +0200
commit1ee0d5f71951904d660d116ae3d346f588dcf937 (patch)
tree341efc836fb0ef1170196647c9e87643ac6d010b
parent9553e7a60d42d46b6f1260121ece58217ad0384f (diff)
downloadrtems-1ee0d5f71951904d660d116ae3d346f588dcf937.tar.bz2
smptests/smpmrsp01: Fix scheduler ids
-rw-r--r--testsuites/smptests/smpmrsp01/init.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/smptests/smpmrsp01/init.c b/testsuites/smptests/smpmrsp01/init.c
index b5590eda9f..b93f196eae 100644
--- a/testsuites/smptests/smpmrsp01/init.c
+++ b/testsuites/smptests/smpmrsp01/init.c
@@ -866,11 +866,19 @@ static void Init(rtems_task_argument arg)
ctx->main_task_id = rtems_task_self();
- for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
+ for (cpu_index = 0; cpu_index < 2; ++cpu_index) {
sc = rtems_scheduler_ident(cpu_index, &ctx->scheduler_ids[cpu_index]);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
+ for (cpu_index = 2; cpu_index < cpu_count; ++cpu_index) {
+ sc = rtems_scheduler_ident(
+ cpu_index / 2 + 1,
+ &ctx->scheduler_ids[cpu_index]
+ );
+ rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+ }
+
test_mrsp_flush_error();
test_mrsp_initially_locked_error();
test_mrsp_nested_obtain_error();