Skip to content

Commit 599e3bb

Browse files
peter-mitsisfabiobaltieri
authored andcommitted
tests: Stack safety for thread analyzer
Adds stack safety to thread analyzer test case. Signed-off-by: Peter Mitsis <[email protected]>
1 parent 70347ce commit 599e3bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/subsys/debug/thread_analyzer/testcase.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ tests:
2727
regex:
2828
- "(.*)0x([0-9a-fA-F]+)([ ]+) : STACK: unused [0-9]+ usage [0-9]+ / [0-9]+ (.*)"
2929
- "(.*)ISR0([ ]+) : STACK: unused [0-9]+ usage [0-9]+ / [0-9]+ (.*)"
30+
debug.thread_analyzer.printk.stack_safety:
31+
extra_configs:
32+
- CONFIG_THREAD_ANALYZER_USE_PRINTK=y
33+
- CONFIG_THREAD_ANALYZER_STACK_SAFETY=y
34+
- CONFIG_THREAD_RUNTIME_STACK_SAFETY_DEFAULT_UNUSED_THRESHOLD_PCT=90
35+
harness: console
36+
harness_config:
37+
type: multi_line
38+
regex:
39+
- "(.*)0x([0-9a-fA-F]+)([ ]+) : STACK: unused [0-9]+ usage [0-9]+ / [0-9]+ (.*)"
40+
- " : Stack Safety Warning: Threshold crossed"
41+
- "(.*)ISR0([ ]+) : STACK: unused [0-9]+ usage [0-9]+ / [0-9]+ (.*)"
3042
debug.thread_analyzer.printk.userspace:
3143
filter: CONFIG_ARCH_HAS_USERSPACE
3244
extra_configs:

0 commit comments

Comments
 (0)