[rtems commit] smpaffinity01: Fix test case
Sebastian Huber
sebh at rtems.org
Wed Oct 11 06:34:07 UTC 2017
Module: rtems
Branch: master
Commit: 16aaf73bbb7c48aebce0e993186318710479e6c0
Changeset: http://git.rtems.org/rtems/commit/?id=16aaf73bbb7c48aebce0e993186318710479e6c0
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Oct 11 08:33:19 2017 +0200
smpaffinity01: Fix test case
Update #2514.
---
testsuites/smptests/smpaffinity01/init.c | 4 ++--
testsuites/smptests/smpaffinity01/smpaffinity01.scn | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/testsuites/smptests/smpaffinity01/init.c b/testsuites/smptests/smpaffinity01/init.c
index b80be72..eae6d70 100644
--- a/testsuites/smptests/smpaffinity01/init.c
+++ b/testsuites/smptests/smpaffinity01/init.c
@@ -40,9 +40,9 @@ void Validate_setaffinity_errors(void)
/* Verify rtems_task_set_affinity checks that all cpu's exist. */
/* Note this check assumes you are running with less than 32 CPUs */
CPU_FILL(&cpuset);
- puts( "Init - rtems_task_set_affinity - Invalid cpu - RTEMS_INVALID_NUMBER" );
+ puts( "Init - rtems_task_set_affinity - Lots of cpus - SUCCESS" );
sc = rtems_task_set_affinity( Init_id, sizeof(cpu_set_t), &cpuset );
- rtems_test_assert( sc == RTEMS_INVALID_NUMBER );
+ rtems_test_assert( sc == RTEMS_SUCCESSFUL );
/* Verify rtems_task_set_affinity checks that at least one cpu is set */
CPU_ZERO(&cpuset);
diff --git a/testsuites/smptests/smpaffinity01/smpaffinity01.scn b/testsuites/smptests/smpaffinity01/smpaffinity01.scn
index 6e7eefd..bf1287c 100644
--- a/testsuites/smptests/smpaffinity01/smpaffinity01.scn
+++ b/testsuites/smptests/smpaffinity01/smpaffinity01.scn
@@ -1,16 +1,16 @@
-*** SMP AFFINITY 1 ***
-Init - rtems_task_set_affinity - Invalid cpu - RTEMS_UNSATISFIED
-Init - rtems_task_set_affinity - no cpu - RTEMS_UNSATISFIED
+*** BEGIN OF TEST SMPAFFINITY 1 ***
+Init - rtems_task_set_affinity - Lots of cpus - SUCCESS
+Init - rtems_task_set_affinity - no cpu - RTEMS_INVALID_NUMBER
Init - rtems_task_set_affinity - Invalid thread - RTEMS_INVALID_ID
-Init - rtems_task_set_affinity - Invalid cpusetsize - RTEMS_UNSATISFIED
-Init - rtems_task_set_affinity - Invalid cpuset - RTEMS_UNSATISFIED
+Init - rtems_task_set_affinity - Invalid cpusetsize - RTEMS_INVALID_NUMBER
+Init - rtems_task_set_affinity - Invalid cpuset - RTEMS_INVALID_ADDRESS
Init - rtems_task_get_affinity - Invalid thread - RTEMS_INVALID_ID
-Init - rtems_task_get_affinity - Invalid cpusetsize - RTEMS_UNSATISFIED
-Init - rtems_task_get_affinity - Invalid cpuset - RTEMS_UNSATISFIED
+Init - rtems_task_get_affinity - Invalid cpusetsize - RTEMS_INVALID_NUMBER
+Init - rtems_task_get_affinity - Invalid cpuset - RTEMS_INVALID_ADDRESS
Init - Set Init priority to high
Init - Create Medium priority tasks
Init - Create Low priority tasks
Init - Verify affinity on Low priority tasks
Init - Change affinity on Low priority tasks
Init - Validate affinity on Low priority tasks
-*** END OF SMP AFFINITY TEST 1 ***
+*** END OF TEST SMPAFFINITY 1 ***
More information about the vc
mailing list