diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-19 16:00:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-19 16:00:35 -0700 |
commit | 9a019d78fc2abb05496f4f39a2da9d628cd244c7 (patch) | |
tree | 17263c14115a816bf1798d2e6d8c0fb11727364f | |
parent | 5a09572550870a5304b0a5d2e425e3f579cd1ed2 (diff) |
update other.test_toobig
-rw-r--r-- | tests/test_other.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 135fa414..e251da5d 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1473,6 +1473,8 @@ f.close() assert os.path.exists('a.out.js') def test_toobig(self): + # very large [N x i8], we should not oom in the compiler + self.clear() open(os.path.join(self.get_dir(), 'main.cpp'), 'w').write(r''' #include <stdio.h> @@ -1496,8 +1498,8 @@ f.close() } ''') output = Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp')], stderr=PIPE).communicate()[1] - assert 'Emscripten failed' in output, output - assert 'warning: very large fixed-size structural type' in output, output + print output + assert os.path.exists('a.out.js') def test_prepost(self): open(os.path.join(self.get_dir(), 'main.cpp'), 'w').write(''' |