From a3ad4afba883e56447aa40f92c1ad08d835d2564 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 Oct 2017 11:22:21 +0200 Subject: posix: Validate affinity sets by the scheduler Update #2514. --- testsuites/smptests/smppsxaffinity02/init.c | 6 +++--- testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'testsuites') diff --git a/testsuites/smptests/smppsxaffinity02/init.c b/testsuites/smptests/smppsxaffinity02/init.c index eb38ea3c25..21a723d41b 100644 --- a/testsuites/smptests/smppsxaffinity02/init.c +++ b/testsuites/smptests/smppsxaffinity02/init.c @@ -45,11 +45,11 @@ void Validate_setaffinity_errors(void) int sc; cpu_set_t cpuset; - /* Verify pthread_setaffinity_np checks that all cpu's exist. */ + /* Verify pthread_setaffinity_np checks that more cpu's don't hurt. */ CPU_FILL(&cpuset); - puts( "Init - pthread_setaffinity_np - Invalid cpu - EINVAL" ); + puts( "Init - pthread_setaffinity_np - Lots of cpus - SUCCESS" ); sc = pthread_setaffinity_np( Init_id, sizeof(cpu_set_t), &cpuset ); - rtems_test_assert( sc == EINVAL ); + rtems_test_assert( sc == 0 ); /* Verify pthread_setaffinity_np checks that at least one cpu is set */ CPU_ZERO(&cpuset); diff --git a/testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn b/testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn index 7f3d3f9597..3790149b31 100644 --- a/testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn +++ b/testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn @@ -1,5 +1,5 @@ -*** SMP POSIX AFFINITY ATTRIBUTE TEST 2 *** -Init - pthread_setaffinity_np - Invalid cpu - EINVAL +*** BEGIN OF TEST SMPPSXAFFINITY 2 *** +Init - pthread_setaffinity_np - Lots of cpus - SUCCESS Init - pthread_setaffinity_np - no cpu - EINVAL Init - pthread_setaffinity_np - Invalid thread - ESRCH Init - pthread_setaffinity_np - Invalid cpusetsize - EINVAL @@ -11,7 +11,7 @@ Init - Set Init priority to high Init - Create Medium priority tasks Init - Verify Medium priority tasks Init - Create Low priority tasks -Init - Verify Medium priority tasks +Init - Verify Low priority tasks Init - Change affinity on Low priority tasks Init - Validate affinity on Low priority tasks -*** SMP POSIX AFFINITY ATTRIBUTE TEST 2 *** +*** END OF TEST SMPPSXAFFINITY 2 *** -- cgit v1.2.3