summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/sptests/spcpuset01/test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/spcpuset01/test.c b/testsuites/sptests/spcpuset01/test.c
index 9864b1df36..569c296281 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 );
}
}