aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 0ac04314..72e90e26 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4948,6 +4948,7 @@ JavaScript in the final linking stage of building.
stdout=PIPE, stderr=PIPE).communicate(input)
assert len(output[0]) == 0, output[0]
assert os.path.exists('something.js'), '\n'.join(output)
+ assert ('Warning: The relooper optimization can be very slow.' in output[1]) == (opt_level >= 2), 'relooper warning should appear in opt >= 2'
self.assertContained('hello, world!', run_js('something.js'))
# Verify optimization level in the generated code