summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-10 11:22:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-11 07:37:54 +0200
commita3ad4afba883e56447aa40f92c1ad08d835d2564 (patch)
tree1736c0390a1d4fbb4f86ab22f7811a5a099fdbaa /testsuites
parentscore: Add _Thread_queue_Dispatch_disable() (diff)
downloadrtems-a3ad4afba883e56447aa40f92c1ad08d835d2564.tar.bz2
posix: Validate affinity sets by the scheduler
Update #2514.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/smptests/smppsxaffinity02/init.c6
-rw-r--r--testsuites/smptests/smppsxaffinity02/smppsxaffinity02.scn8
2 files changed, 7 insertions, 7 deletions
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 ***