summaryrefslogtreecommitdiff
path: root/common/panic_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/panic_output.c')
-rw-r--r--common/panic_output.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/panic_output.c b/common/panic_output.c
index e5a184be27..27c7e1e202 100644
--- a/common/panic_output.c
+++ b/common/panic_output.c
@@ -121,7 +121,12 @@ void panic_reboot(void)
}
/* Complete the processing of a panic, after the initial message is shown */
-test_mockable_static_noreturn void complete_panic(int linenum)
+test_mockable_static
+#if !(defined(TEST_FUZZ) || defined(CONFIG_ZTEST))
+ noreturn
+#endif
+ void
+ complete_panic(int linenum)
{
if (IS_ENABLED(CONFIG_SOFTWARE_PANIC))
software_panic(PANIC_SW_ASSERT, linenum);