Changeset 1ee0d5f in rtems


Ignore:
Timestamp:
Jun 2, 2014, 2:15:14 PM (5 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
4.11, master
Children:
5abe5a8
Parents:
9553e7a6
git-author:
Christian Mauderer <Christian.Mauderer@…> (06/02/14 14:15:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/03/14 06:16:09)
Message:

smptests/smpmrsp01: Fix scheduler ids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpmrsp01/init.c

    r9553e7a6 r1ee0d5f  
    867867  ctx->main_task_id = rtems_task_self();
    868868
    869   for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
     869  for (cpu_index = 0; cpu_index < 2; ++cpu_index) {
    870870    sc = rtems_scheduler_ident(cpu_index, &ctx->scheduler_ids[cpu_index]);
     871    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
     872  }
     873
     874  for (cpu_index = 2; cpu_index < cpu_count; ++cpu_index) {
     875    sc = rtems_scheduler_ident(
     876      cpu_index / 2 + 1,
     877      &ctx->scheduler_ids[cpu_index]
     878    );
    871879    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    872880  }
Note: See TracChangeset for help on using the changeset viewer.