Changeset a3ad4af in rtems for testsuites/smptests


Ignore:
Timestamp:
Oct 10, 2017, 9:22:21 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b2dbb634
Parents:
db3a3de
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/17 09:22:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/11/17 05:37:54)
Message:

posix: Validate affinity sets by the scheduler

Update #2514.

Location:
testsuites/smptests/smppsxaffinity02
Files:
2 edited

Legend:

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

    rdb3a3de ra3ad4af  
    4646  cpu_set_t           cpuset;
    4747
    48   /* Verify pthread_setaffinity_np checks that all cpu's exist. */
     48  /* Verify pthread_setaffinity_np checks that more cpu's don't hurt. */
    4949  CPU_FILL(&cpuset);
    50   puts( "Init - pthread_setaffinity_np - Invalid cpu - EINVAL" );
     50  puts( "Init - pthread_setaffinity_np - Lots of cpus - SUCCESS" );
    5151  sc = pthread_setaffinity_np( Init_id, sizeof(cpu_set_t), &cpuset );
    52   rtems_test_assert( sc == EINVAL );
     52  rtems_test_assert( sc == 0 );
    5353
    5454  /* Verify pthread_setaffinity_np checks that at least one cpu is set */
  • testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn

    rdb3a3de ra3ad4af  
    1 *** SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***
    2 Init - pthread_setaffinity_np - Invalid cpu - EINVAL
     1*** BEGIN OF TEST SMPPSXAFFINITY 2 ***
     2Init - pthread_setaffinity_np - Lots of cpus - SUCCESS
    33Init - pthread_setaffinity_np - no cpu - EINVAL
    44Init - pthread_setaffinity_np - Invalid thread - ESRCH
     
    1212Init - Verify Medium priority tasks
    1313Init - Create  Low priority tasks
    14 Init - Verify Medium priority tasks
     14Init - Verify Low priority tasks
    1515Init - Change affinity on Low priority tasks
    1616Init - Validate affinity on Low priority tasks
    17 *** SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***
     17*** END OF TEST SMPPSXAFFINITY 2 ***
Note: See TracChangeset for help on using the changeset viewer.