diff options
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index 58a79a9c..2fcd4063 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -9144,9 +9144,11 @@ f.close() if multiprocessing.cpu_count() < 2: return self.skip('need multiple cores') try: os.environ['EMCC_DEBUG'] = '1' - output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1'], stdout=PIPE, stderr=PIPE).communicate() - assert 'phase 2 working on 3 chunks' in err, err - assert 'splitting up js optimization into 2 chunks' in err, err + for linkable, chunks, js_chunks in [(0, 3, 2), (1, 7, 4)]: + print linkable, chunks, js_chunks + output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable], stdout=PIPE, stderr=PIPE).communicate() + assert 'phase 2 working on %d chunks' %chunks in err, err + assert 'splitting up js optimization into %d chunks' % js_chunks in err, err finally: del os.environ['EMCC_DEBUG'] |