mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
tests/core/thread_stack_alignment: also test for stack usage
This commit is contained in:
parent
02fe256a06
commit
5b73294dad
@ -24,6 +24,7 @@ def testfunc(child):
|
||||
child.expect(r"(\{[^\n\r]*\})\r\n")
|
||||
stats = json.loads(child.match.group(1))["threads"][0]
|
||||
assert stats["name"] == "test"
|
||||
assert stats["stack_used"] < stats["stack_size"]
|
||||
if stack_used_max < stats["stack_used"]:
|
||||
stack_used_max = stats["stack_used"]
|
||||
if stack_used_min > stats["stack_used"]:
|
||||
|
Loading…
Reference in New Issue
Block a user