[rtems commit] smpmulticast01: Ignore SMP_FATAL_SHUTDOWN_RESPONSE

Sebastian Huber sebh at rtems.org
Tue Apr 16 05:32:06 UTC 2024


Module:    rtems
Branch:    master
Commit:    9ec36a17e2a6945116b9eb53f36165ce24c54ca7
Changeset: http://git.rtems.org/rtems/commit/?id=9ec36a17e2a6945116b9eb53f36165ce24c54ca7

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Apr  8 11:58:08 2024 +0200

smpmulticast01: Ignore SMP_FATAL_SHUTDOWN_RESPONSE

This fatal code is a part of the normal SMP termination procedure.

---

 testsuites/smptests/smpmulticast01/init.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/testsuites/smptests/smpmulticast01/init.c b/testsuites/smptests/smpmulticast01/init.c
index ef8a1dbcb4..51a4624ea1 100644
--- a/testsuites/smptests/smpmulticast01/init.c
+++ b/testsuites/smptests/smpmulticast01/init.c
@@ -563,14 +563,16 @@ static void fatal_extension(
   bool ok;
 
   if (source == RTEMS_FATAL_SOURCE_SMP) {
-    T_step_eq_int(1, source, RTEMS_FATAL_SOURCE_SMP);
-    T_step_false(2, always_set_to_false, "unexpected argument value");
-    T_step_eq_int(3, code, SMP_FATAL_WRONG_CPU_STATE_TO_PERFORM_JOBS);
-    T_case_end();
-
-    ok = T_run_finalize();
-    rtems_test_assert(ok);
-    TEST_END();
+    if (code != SMP_FATAL_SHUTDOWN_RESPONSE) {
+      T_step_eq_int(1, source, RTEMS_FATAL_SOURCE_SMP);
+      T_step_false(2, always_set_to_false, "unexpected argument value");
+      T_step_eq_int(3, code, SMP_FATAL_WRONG_CPU_STATE_TO_PERFORM_JOBS);
+      T_case_end();
+
+      ok = T_run_finalize();
+      rtems_test_assert(ok);
+      TEST_END();
+    }
   } else if (source == RTEMS_FATAL_SOURCE_APPLICATION) {
     ok = T_run_finalize();
     rtems_test_assert(ok);



More information about the vc mailing list