diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-04-08 11:58:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-04-16 07:26:35 +0200 |
commit | 9ec36a17e2a6945116b9eb53f36165ce24c54ca7 (patch) | |
tree | 53a54eff8b832b5ef7ee004df8e2efde4d1594a9 /testsuites/smptests | |
parent | testsuites/unit: Add tests for compiler builtins (diff) | |
download | rtems-9ec36a17e2a6945116b9eb53f36165ce24c54ca7.tar.bz2 |
smpmulticast01: Ignore SMP_FATAL_SHUTDOWN_RESPONSE
This fatal code is a part of the normal SMP termination procedure.
Diffstat (limited to 'testsuites/smptests')
-rw-r--r-- | testsuites/smptests/smpmulticast01/init.c | 18 |
1 files 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); |