aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-08 19:58:54 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-08 19:58:54 -0700
commitfaebd713187b473fa7090c15169618a7af5cbcc8 (patch)
treebce94417976ff0a3ed8c4f639f528e698dca783b /tests/runner.py
parent282c638020457818f324dfc539338a886a3f464b (diff)
update test_emcc for -O3 doing inlining
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 8fd9bd2e..b23cc9f9 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6664,7 +6664,7 @@ Options that are modified or new in %s include:
assert ('_puts(' in generated) == (opt_level >= 1), 'with opt >= 1, llvm opts are run and they should optimize printf to puts'
assert ('function _malloc(bytes) {' in generated) == (not has_malloc), 'If malloc is needed, it should be there, if not not'
assert 'function _main() {' in generated, 'Should be unminified, including whitespace'
- assert 'function _dump' in generated, 'No inlining by default'
+ assert ('-O3' in (params+(bc_params or []))) or'function _dump' in generated, 'No inlining by default'
# emcc -s RELOOP=1 src.cpp ==> should pass -s to emscripten.py. --typed-arrays is a convenient alias for -s USE_TYPED_ARRAYS
for params, test, text in [