tests/thread: Fix stack size test so tests run reliably on baremetal.

This commit is contained in:
Damien George 2017-02-01 17:21:35 +11:00
parent 9d3c0d423e
commit 28185bb81b
1 changed files with 3 additions and 0 deletions

View File

@ -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