Skip to content

Commit 93db4e5

Browse files
kartbennashif
authored andcommitted
tests: kernel: fatal: expect the fault printk_reentrancy provokes
The test faults on purpose from inside printk(), so twister sees a fatal error banner and fails the run even though the suite itself passed. Mark the fault expected, as the other tests under tests/kernel/fatal do. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org> Assisted-by: Claude:opus-5
1 parent 9c48588 commit 93db4e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/kernel/fatal/printk_reentrancy/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ common:
22
tags:
33
- kernel
44
- printk
5+
# Taking the fault is the point of the test, so the fatal error report
6+
# in the output is the expected outcome rather than a crash.
7+
ignore_faults: true
58
# A fault taken inside printk() must still be reported. Without a lock
69
# free reporting path the fault handler blocks on the printk lock the
710
# faulting context already holds, and the test times out rather than

0 commit comments

Comments
 (0)