Skip to content

Commit 656abe4

Browse files
ioannisgcarlescufi
authored andcommitted
tests: error_hook: fix sample output in README
Minor fixes to the sample output in the README file, reflecting the correct error reason (3: oops) instead of reason 0 (generic CPU error). Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 31f34e0 commit 656abe4

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

tests/ztest/error_hook/README.txt

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,15 @@ Assert error expected as part of test case.
179179
PASS - test_catch_assert_in_isr
180180
===================================================================
181181
START - test_catch_z_oops
182-
E: Page fault at address (nil) (error code 0x4)
183-
E: Linear address not present in page tables
184-
E: Access violation: user thread not allowed to read
185-
E: PTE: not present
186-
E: EAX: 0x00000000, EBX: 0x0011303c, ECX: 0x00000000, EDX: 0x0011303c
187-
E: ESI: 0x00000000, EDI: 0x00130fe8, EBP: 0x00130fc0, ESP: 0x00130fc0
188-
E: EFLAGS: 0x00000246 CS: 0x002b CR3: 0x001142c0
182+
E: EAX: 0x00000000, EBX: 0x00000000, ECX: 0x00000000, EDX: 0x00000000
183+
E: ESI: 0x00000000, EDI: 0x00000000, EBP: 0x00000000, ESP: 0x00000000
184+
E: EFLAGS: 0x001003c4 CS: 0x0511 CR3: 0x00115740
189185
E: call trace:
190-
E: EIP: 0x00100544
191-
E: 0x00104808 (0x130033)
192-
E: 0x001010ea (0x11303c)
193-
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
194-
E: Current thread: 0x1140a0 (unknown)
195-
Caught system error -- reason 0 1
186+
E: EIP: 0x0010ff9e
187+
E: NULL base ptr
188+
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
189+
E: Current thread: 0x114120 (unknown)
190+
Caught system error -- reason 3 1
196191
Fatal error expected as part of test case.
197192
PASS - test_catch_z_oops
198193
===================================================================

0 commit comments

Comments
 (0)