diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-09 15:00:32 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-09 15:00:32 -0400 |
commit | ce14f4f22d4dbfa0feed2e22bb5ba9a6defaa823 (patch) | |
tree | 64cb1f7f72d7d1e21a007efd1d176be81442ad62 | |
parent | 0d989261dc74e81c317f4f4114c285cb57c1a01a (diff) |
update other.test_chunking
-rw-r--r-- | tests/test_other.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index d4a5bb3a..264e75e1 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1666,20 +1666,16 @@ f.close() try: os.environ['EMCC_DEBUG'] = '1' os.environ['EMCC_CORES'] = '2' # standardize over machines - for asm, linkable, chunks, js_chunks in [ - (0, 0, 2, 2), (0, 1, 2, 4), - (1, 0, 2, 2), (1, 1, 2, 4) + for asm, linkable, chunks in [ + (0, 0, 2), (0, 1, 2), + (1, 0, 2), (1, 1, 2) ]: - print asm, linkable, chunks, js_chunks + print asm, linkable, chunks output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable, '-s', 'ASM_JS=%d' % asm] + (['-O2'] if asm else []), stdout=PIPE, stderr=PIPE).communicate() 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'] del os.environ['EMCC_CORES'] |