From 2b4ecfc2262deedbfcfc8481c6092c9fa2a56131 Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Sat, 6 Jul 2024 17:38:29 +0800 Subject: [PATCH] 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 --- tests/arch/common/stack_unwind/testcase.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/arch/common/stack_unwind/testcase.yaml b/tests/arch/common/stack_unwind/testcase.yaml index b6fbd0f7ed8bb7..a142137bfbdf14 100644 --- a/tests/arch/common/stack_unwind/testcase.yaml +++ b/tests/arch/common/stack_unwind/testcase.yaml @@ -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+\\]"