tests/thread: Fix stack size test so tests run reliably on baremetal.
This commit is contained in:
parent
9d3c0d423e
commit
28185bb81b
@ -38,6 +38,9 @@ _thread.stack_size(sz)
|
||||
for i in range(n_thread):
|
||||
_thread.start_new_thread(thread_entry, ())
|
||||
|
||||
# reset stack size to default (for subsequent scripts on baremetal)
|
||||
_thread.stack_size()
|
||||
|
||||
# busy wait for threads to finish
|
||||
while n_finished < n_thread:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user