diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-31 17:36:06 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-06-28 11:28:52 +0100 |
commit | 8b9ddf403119100d6bbd4c6d77bd4a334032b893 (patch) | |
tree | 68b05c53e303a69fe052271ea390a8395ce07cb8 /tests/thread/thread_qstr1.py | |
parent | 63d05228a3173f079ea0a8f4fb11baa442351065 (diff) |
tests/thread: Allow some tests to run on ports with not much heap.
Diffstat (limited to 'tests/thread/thread_qstr1.py')
-rw-r--r-- | tests/thread/thread_qstr1.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/thread/thread_qstr1.py b/tests/thread/thread_qstr1.py index 0c9c2bcf0..c0256316e 100644 --- a/tests/thread/thread_qstr1.py +++ b/tests/thread/thread_qstr1.py @@ -22,10 +22,11 @@ def th(base, n): lock = _thread.allocate_lock() n_thread = 4 n_finished = 0 +n_qstr_per_thread = 100 # make 1000 for a more stressful test (uses more heap) # spawn threads for i in range(n_thread): - _thread.start_new_thread(th, (i * 1000, 1000)) + _thread.start_new_thread(th, (i * n_qstr_per_thread, n_qstr_per_thread)) # busy wait for threads to finish while n_finished < n_thread: |