summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/smptests/smpipi01/init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/smptests/smpipi01/init.c b/testsuites/smptests/smpipi01/init.c
index db0688c5ee..8c39d18bfb 100644
--- a/testsuites/smptests/smpipi01/init.c
+++ b/testsuites/smptests/smpipi01/init.c
@@ -161,6 +161,10 @@ static void test_send_message_flood(
}
for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) {
+ rtems_test_assert(
+ _Processor_mask_Is_set(_SMP_Online_processors, cpu_index)
+ );
+
printf(
"inter-processor interrupts for processor %"
PRIu32 "%s: %" PRIu32 "\n",
@@ -169,6 +173,12 @@ static void test_send_message_flood(
ctx->counters[cpu_index].value
);
}
+
+ for (; cpu_index < CPU_COUNT; ++cpu_index) {
+ rtems_test_assert(
+ !_Processor_mask_Is_set(_SMP_Online_processors, cpu_index)
+ );
+ }
}
static void test(void)