aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-10 15:13:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-10 15:13:12 -0700
commit4ca9427e30dbd00b3ee80e6ae4a5b4b65f9e8ddb (patch)
treed561ae2c0355a467264937091bb1b20603c84ee8
parent9e57de76df9ccb49527806febf5ab03dc81804c7 (diff)
fix test_relooper
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 5c5e3152..5e101024 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -13984,7 +13984,7 @@ fi
assert os.path.exists(RELOOPER) == (i >= 2), 'have relooper on O2: ' + output
src = open('a.out.js').read()
main = src.split('function _main()')[1].split('\n}\n')[0]
- assert ('while (1) {' in main or 'while(1){' in main) == (i >= 2), 'reloop code on O2: ' + main
+ assert ('while (1) {' in main or 'while(1){' in main or '} while ($' in main or '}while($' in main) == (i >= 2), 'reloop code on O2: ' + main
assert ('switch' not in main) == (i >= 2), 'reloop code on O2: ' + main
def test_jcache(self):