Skip to content

Commit 49e8c98

Browse files
ycsinnashif
authored andcommitted
tests: arch: common: stack_unwind: fix symtab test
The symtab test should have the `CONFIG_EXCEPTION_STACK_TRACE_SYMTAB` enabled. This was not caught in the CI previously as the regex was also wrong, '[' and ']' are regex syntax and should be escaped. Signed-off-by: Yong Cong Sin <[email protected]>
1 parent cb8db00 commit 49e8c98

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/arch/common/stack_unwind/testcase.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ tests:
6363
- qemu_cortex_a53
6464
extra_configs:
6565
- CONFIG_FRAME_POINTER=y
66+
- CONFIG_EXCEPTION_STACK_TRACE_SYMTAB=y
6667
harness_config:
6768
type: multi_line
6869
regex:
69-
- "[func1+\\w+]"
70-
- "[func2+\\w+]"
71-
- "[func1+\\w+]"
72-
- "[func2+\\w+]"
73-
- "[func1+\\w+]"
70+
- "\\[func1\\+0x\\w+\\]"
71+
- "\\[func2\\+0x\\w+\\]"
72+
- "\\[func1\\+0x\\w+\\]"
73+
- "\\[func2\\+0x\\w+\\]"
74+
- "\\[func1\\+0x\\w+\\]"

0 commit comments

Comments
 (0)