diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-19 20:12:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-19 20:12:11 -0700 |
commit | 9be42fe2bca09bc209269b4e0f3a41c5aea46fb7 (patch) | |
tree | cd35cc38c88719f16eeb479e4603d6e167dc2834 /tests | |
parent | bcbce4709178f424c26564f44a9ae499173d74fa (diff) |
make test_chunking a little more lenient
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py index fa90a01e..b4a2ea77 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10075,13 +10075,19 @@ f.close() try: os.environ['EMCC_DEBUG'] = '1' for asm, linkable, chunks, js_chunks in [ - (0, 0, 3, 2), (0, 1, 4, 4), - (1, 0, 3, 2), (1, 1, 4, 5) + (0, 0, 3, 2), (0, 1, 3, 4), + (1, 0, 3, 2), (1, 1, 3, 4) ]: print asm, linkable, chunks, js_chunks output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable, '-s', 'ASM_JS=%d' % asm, '-s', 'UNRESOLVED_AS_DEAD=1'], 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 + ok = False + for c in range(chunks, chunks+2): + ok = ok or ('phase 2 working on %d chunks' % c in err) + assert ok, err + ok = False + for c in range(js_chunks, js_chunks+2): + ok = ok or ('splitting up js optimization into %d chunks' % c in err) + assert ok, err finally: del os.environ['EMCC_DEBUG'] |