[rtems commit] spcpuset01: Update due to CPU_NAND_S() changes

Sebastian Huber sebh at rtems.org
Wed Jun 7 13:29:51 UTC 2017


Module:    rtems
Branch:    master
Commit:    b06dbb26588ffb0db8e7873a01753ecdd10d4569
Changeset: http://git.rtems.org/rtems/commit/?id=b06dbb26588ffb0db8e7873a01753ecdd10d4569

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun  7 08:47:47 2017 +0200

spcpuset01: Update due to CPU_NAND_S() changes

Close #3032.

---

 testsuites/sptests/spcpuset01/test.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testsuites/sptests/spcpuset01/test.c b/testsuites/sptests/spcpuset01/test.c
index 9864b1d..569c296 100644
--- a/testsuites/sptests/spcpuset01/test.c
+++ b/testsuites/sptests/spcpuset01/test.c
@@ -54,10 +54,10 @@ void test_cpu_nand_case_1(size_t cpu1, size_t cpu2)
 
   /* test if all bits clear except cpu1 */
   for (i=0 ; i<CPU_SETSIZE ; i++) {
-    if (i== cpu1)
-      rtems_test_assert( CPU_ISSET(i, &set3) == 0 );
-    else
+    if (i== cpu2)
       rtems_test_assert( CPU_ISSET(i, &set3) == 1 );
+    else
+      rtems_test_assert( CPU_ISSET(i, &set3) == 0 );
   }
 }
 



More information about the vc mailing list