From 1ee0d5f71951904d660d116ae3d346f588dcf937 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Mon, 2 Jun 2014 16:15:14 +0200 Subject: smptests/smpmrsp01: Fix scheduler ids --- testsuites/smptests/smpmrsp01/init.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3