summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2022-08-24 23:50:52 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-31 18:05:06 +0000
commit887a3f6c0e556bfb8308cf124edf087e53635ea8 (patch)
treead7dbe259962aa2bdfacd75d75b2d31978b44257 /common
parent5242100ccb366df8c3a5c6897733f02c8c31cabd (diff)
downloadchrome-ec-887a3f6c0e556bfb8308cf124edf087e53635ea8.tar.gz
test: Add basic tests exercising the panic output API
Exercise some of the panic output API. Some of the basic printing API cannot yet be fully tested. But a fix upstream is coming to allow us to use the 'console' harness features to parse the output log and pass/fail the test based on output. BRANCH=none BUG=none TEST=twister -s zephyr/test/drivers/drivers.default Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I8e56e8bcdaa0e095891c38a26e56ced8f3a8d4d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855593 Reviewed-by: Simon Glass <sjg@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'common')
-rw-r--r--common/panic_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/panic_output.c b/common/panic_output.c
index 4bbf9bc230..ffbe1525da 100644
--- a/common/panic_output.c
+++ b/common/panic_output.c
@@ -121,7 +121,7 @@ void panic_reboot(void)
}
/* Complete the processing of a panic, after the initial message is shown */
-static noreturn void complete_panic(int linenum)
+test_mockable_static_noreturn void complete_panic(int linenum)
{
if (IS_ENABLED(CONFIG_SOFTWARE_PANIC))
software_panic(PANIC_SW_ASSERT, linenum);