summaryrefslogtreecommitdiff
path: root/tests/thread
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glennbakke@gmail.com>2017-02-07 22:26:13 +0100
committerGlenn Ruben Bakke <glennbakke@gmail.com>2017-02-07 22:26:13 +0100
commit4cf7fd151e98a3d842eb5c9428545cb67ddd57ee (patch)
tree947f265a2d498f4879bab3c7d19591133c56c1a0 /tests/thread
parent9397583f6c99533fc4c0a2753126120a8552ba4c (diff)
parent21f08524baf11e62384814b7cb8fcd2b5a8998fb (diff)
Merge branch 'master' into nrf52
Diffstat (limited to 'tests/thread')
-rw-r--r--tests/thread/thread_exc2.py.exp2
-rw-r--r--tests/thread/thread_stacksize1.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/thread/thread_exc2.py.exp b/tests/thread/thread_exc2.py.exp
index 584bfab4d..cc7a20aa2 100644
--- a/tests/thread/thread_exc2.py.exp
+++ b/tests/thread/thread_exc2.py.exp
@@ -1,5 +1,5 @@
Unhandled exception in thread started by <function thread_entry at 0x\[0-9a-f\]\+>
Traceback (most recent call last):
- File "thread/thread_exc2.py", line 6, in thread_entry
+ File \.\+, line 6, in thread_entry
ValueError:
done
diff --git a/tests/thread/thread_stacksize1.py b/tests/thread/thread_stacksize1.py
index e62899631..62b6e5e40 100644
--- a/tests/thread/thread_stacksize1.py
+++ b/tests/thread/thread_stacksize1.py
@@ -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