[rtems commit] testsuites/smpmulticast01: Enforce step ordering
Joel Sherrill
joel at rtems.org
Tue Sep 21 14:03:23 UTC 2021
Module: rtems
Branch: master
Commit: e3971de4179eb65da50240bff473dac93068e377
Changeset: http://git.rtems.org/rtems/commit/?id=e3971de4179eb65da50240bff473dac93068e377
Author: Kinsey Moore <kinsey.moore at oarcorp.com>
Date: Sat Sep 18 20:13:27 2021 -0500
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.
---
testsuites/smptests/smpmulticast01/init.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testsuites/smptests/smpmulticast01/init.c b/testsuites/smptests/smpmulticast01/init.c
index 4163dd8..ec4bab9 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);
More information about the vc
mailing list