Skip to content

Commit

Permalink
tests/core/thread_stack_alignment: also test for stack usage
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Jun 4, 2024
1 parent 02fe256 commit 5b73294
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/core/thread_stack_alignment/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 5b73294

Please sign in to comment.