1
0
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:
Benjamin Valentin 2024-06-04 16:46:34 +02:00
parent 02fe256a06
commit 5b73294dad

View File

@ -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"]: