Skip to content

Commit 28185bb

Browse files
committed
tests/thread: Fix stack size test so tests run reliably on baremetal.
1 parent 9d3c0d4 commit 28185bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/thread/thread_stacksize1.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def thread_entry():
3838
for i in range(n_thread):
3939
_thread.start_new_thread(thread_entry, ())
4040

41+
# reset stack size to default (for subsequent scripts on baremetal)
42+
_thread.stack_size()
43+
4144
# busy wait for threads to finish
4245
while n_finished < n_thread:
4346
pass

0 commit comments

Comments
 (0)