summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpfatal01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-17 13:46:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-30 18:27:48 +0200
commit30570b49c52e2f0e8b7687070dde61c68e7a7af3 (patch)
tree05d2b852b495a65ecc4467fa6afcce4820f75bf8 /testsuites/smptests/smpfatal01/init.c
parent8f3973fe8d40a781727250b733b76d97bc091fe1 (diff)
downloadrtems-30570b49c52e2f0e8b7687070dde61c68e7a7af3.tar.bz2
smpfatal01: Fix test time out on sparc/leon3
End the test on the processor which triggers the test condition. This avoids endless power down loops in the sparc/leon3 BSP.
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smpfatal01/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/smptests/smpfatal01/init.c b/testsuites/smptests/smpfatal01/init.c
index 431d71dd65..4b01763a92 100644
--- a/testsuites/smptests/smpfatal01/init.c
+++ b/testsuites/smptests/smpfatal01/init.c
@@ -62,7 +62,7 @@ static void fatal_extension(
_SMP_barrier_Wait(&barrier, &barrier_state, cpu_count);
- if (self == main_cpu) {
+ if (self == other_cpu) {
uint32_t cpu;
for (cpu = 0; cpu < cpu_count; ++cpu) {