diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 11:22:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-11 07:37:54 +0200 |
commit | a3ad4afba883e56447aa40f92c1ad08d835d2564 (patch) | |
tree | 1736c0390a1d4fbb4f86ab22f7811a5a099fdbaa /testsuites/smptests/smppsxaffinity02/init.c | |
parent | score: Add _Thread_queue_Dispatch_disable() (diff) | |
download | rtems-a3ad4afba883e56447aa40f92c1ad08d835d2564.tar.bz2 |
posix: Validate affinity sets by the scheduler
Update #2514.
Diffstat (limited to 'testsuites/smptests/smppsxaffinity02/init.c')
-rw-r--r-- | testsuites/smptests/smppsxaffinity02/init.c | 6 |
1 files changed, 3 insertions, 3 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); |