Skip to content

Commit

Permalink
tests: arch: common: stack_unwind: fix symtab test
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ycsin authored and nashif committed Jul 9, 2024
1 parent cb8db00 commit 49e8c98
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/arch/common/stack_unwind/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ tests:
- qemu_cortex_a53
extra_configs:
- CONFIG_FRAME_POINTER=y
- CONFIG_EXCEPTION_STACK_TRACE_SYMTAB=y
harness_config:
type: multi_line
regex:
- "[func1+\\w+]"
- "[func2+\\w+]"
- "[func1+\\w+]"
- "[func2+\\w+]"
- "[func1+\\w+]"
- "\\[func1\\+0x\\w+\\]"
- "\\[func2\\+0x\\w+\\]"
- "\\[func1\\+0x\\w+\\]"
- "\\[func2\\+0x\\w+\\]"
- "\\[func1\\+0x\\w+\\]"

0 comments on commit 49e8c98

Please sign in to comment.