aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-06 11:52:00 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-06 11:52:00 -0800
commit1979e5ccd8b0637f087a547f157769ff02cb7b48 (patch)
tree2a1d568a3148bbdeb6515efde0e2de6d9c525e97
parent29a6a88c72664b22af21741cc3bf138c02ee32dc (diff)
parent51892b5e7462658e077c27c1dab9aece793b6fe9 (diff)
Merge pull request #929 from waywardmonkeys/remove-test-Os
Remove test_Os now that emcc supports -Os.
-rwxr-xr-xtests/runner.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/runner.py b/tests/runner.py
index eec4872b..7e3c73b0 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8863,14 +8863,6 @@ f.close()
process.communicate()
assert process.returncode is 0, 'User should be able to specify custom -std= on the command line!'
- def test_Os(self):
- for opt in ['s', '0']:
- output = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-O' + opt], stdout=PIPE, stderr=PIPE).communicate()
- assert len(output[0]) == 0, output[0]
- assert ('emcc: warning: -Os is ignored (use -O0, -O1, -O2)' in output[1]) == (opt == 's'), 'warn on -Os when necessary'
- assert os.path.exists('a.out.js'), '\n'.join(output)
- self.assertContained('hello, world!', run_js('a.out.js'))
-
def test_catch_undef(self):
open(os.path.join(self.get_dir(), 'test.cpp'), 'w').write(r'''
#include <vector>