summaryrefslogtreecommitdiff
path: root/zephyr/shim/src/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/src/system.c')
-rw-r--r--zephyr/shim/src/system.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/shim/src/system.c b/zephyr/shim/src/system.c
index c2182e92c5..b3dd2c121b 100644
--- a/zephyr/shim/src/system.c
+++ b/zephyr/shim/src/system.c
@@ -159,9 +159,15 @@ test_mockable void system_hibernate(uint32_t seconds, uint32_t microseconds)
return;
}
+ /*
+ * Ignore infinite loop for coverage as the test would fail via timeout
+ * and not report regardless of executing code.
+ */
+ /* LCOV_EXCL_START */
/* should never reach this point */
while (1)
continue;
+ /* LCOV_EXCL_STOP */
}
#ifdef CONFIG_PM