Changeset 16aaf73b in rtems


Ignore:
Timestamp:
Oct 11, 2017, 6:33:19 AM (18 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
871c23c
Parents:
157c767
git-author:
Sebastian Huber <sebastian.huber@…> (10/11/17 06:33:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/11/17 06:33:56)
Message:

smpaffinity01: Fix test case

Update #2514.

Location:
testsuites/smptests/smpaffinity01
Files:
2 edited

Legend:

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

    r157c767 r16aaf73b  
    4141  /* Note this check assumes you are running with less than 32 CPUs */
    4242  CPU_FILL(&cpuset);
    43   puts( "Init - rtems_task_set_affinity - Invalid cpu - RTEMS_INVALID_NUMBER" );
     43  puts( "Init - rtems_task_set_affinity - Lots of cpus - SUCCESS" );
    4444  sc = rtems_task_set_affinity( Init_id, sizeof(cpu_set_t), &cpuset );
    45   rtems_test_assert( sc == RTEMS_INVALID_NUMBER );
     45  rtems_test_assert( sc == RTEMS_SUCCESSFUL );
    4646
    4747  /* Verify rtems_task_set_affinity checks that at least one cpu is set */
  • testsuites/smptests/smpaffinity01/smpaffinity01.scn

    r157c767 r16aaf73b  
    1 *** SMP AFFINITY 1 ***
    2 Init - rtems_task_set_affinity - Invalid cpu - RTEMS_UNSATISFIED
    3 Init - rtems_task_set_affinity - no cpu - RTEMS_UNSATISFIED
     1*** BEGIN OF TEST SMPAFFINITY 1 ***
     2Init - rtems_task_set_affinity - Lots of cpus - SUCCESS
     3Init - rtems_task_set_affinity - no cpu - RTEMS_INVALID_NUMBER
    44Init - rtems_task_set_affinity - Invalid thread - RTEMS_INVALID_ID
    5 Init - rtems_task_set_affinity - Invalid cpusetsize - RTEMS_UNSATISFIED
    6 Init - rtems_task_set_affinity - Invalid cpuset - RTEMS_UNSATISFIED
     5Init - rtems_task_set_affinity - Invalid cpusetsize - RTEMS_INVALID_NUMBER
     6Init - rtems_task_set_affinity - Invalid cpuset - RTEMS_INVALID_ADDRESS
    77Init - rtems_task_get_affinity - Invalid thread - RTEMS_INVALID_ID
    8 Init - rtems_task_get_affinity - Invalid cpusetsize - RTEMS_UNSATISFIED
    9 Init - rtems_task_get_affinity - Invalid cpuset - RTEMS_UNSATISFIED
     8Init - rtems_task_get_affinity - Invalid cpusetsize - RTEMS_INVALID_NUMBER
     9Init - rtems_task_get_affinity - Invalid cpuset - RTEMS_INVALID_ADDRESS
    1010Init - Set Init priority to high
    1111Init - Create Medium priority tasks
     
    1414Init - Change affinity on Low priority tasks
    1515Init - Validate affinity on Low priority tasks
    16 *** END OF SMP AFFINITY TEST 1 ***
     16*** END OF TEST SMPAFFINITY 1 ***
Note: See TracChangeset for help on using the changeset viewer.