summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpmulticast01/init.c
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2021-09-18 20:13:27 -0500
committerJoel Sherrill <joel@rtems.org>2021-09-21 08:58:31 -0500
commite3971de4179eb65da50240bff473dac93068e377 (patch)
tree1b69ce69f13330cc0ed97edd8626125e40d61a3d /testsuites/smptests/smpmulticast01/init.c
parent36477258320f731c3019df6e311a4deab7d1a1bb (diff)
downloadrtems-e3971de4179eb65da50240bff473dac93068e377.tar.bz2
testsuites/smpmulticast01: Enforce step ordering
The order in which step checks for 1 and 2 are not rigidly defined and may actually occur in either order depending on how the threads execute. This waits for the job to complete to enforce the existing ordering.
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smpmulticast01/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuites/smptests/smpmulticast01/init.c b/testsuites/smptests/smpmulticast01/init.c
index 4163dd8370..ec4bab922d 100644
--- a/testsuites/smptests/smpmulticast01/init.c
+++ b/testsuites/smptests/smpmulticast01/init.c
@@ -506,6 +506,7 @@ T_TEST_CASE(AddJobInJob)
_Per_CPU_Add_job(cpu_self, &add_job_in_job_jobs[0]);
T_step(0);
_SMP_Send_message(cpu_self, SMP_MESSAGE_PERFORM_JOBS);
+ _Per_CPU_Wait_for_job(cpu_self, &add_job_in_job_jobs[0]);
T_step(2);
_SMP_Send_message(cpu_self, SMP_MESSAGE_PERFORM_JOBS);
_Thread_Dispatch_enable(cpu_self);