diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-14 17:56:03 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-14 17:56:03 -0800 |
commit | e1df9d851d657c2afff1350bd19a3781d7404de6 (patch) | |
tree | 12e82d68f5c7d15d18f37138b04f530cfdd5d66b /tests | |
parent | 3c91f0477956e4d44cdc0ff087c8399d0d0fb731 (diff) |
simplify other.test_emcc check for micro-opts, to not be so finicky
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_other.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index beb6e5b2..11b2dcb3 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -169,7 +169,7 @@ Options that are modified or new in %s include: if keep_debug: assert ('(label)' in generated or '(label | 0)' in generated) == (opt_level <= 0), 'relooping should be in opt >= 1' assert ('assert(STACKTOP < STACK_MAX' in generated) == (opt_level == 0), 'assertions should be in opt == 0' - assert 'var $i;' in generated or 'var $i_0' in generated or 'var $storemerge3;' in generated or 'var $storemerge4;' in generated or '$i_04' in generated or '$i_05' in generated or 'var $original = 0' in generated, 'micro opts should always be on' + assert '$i' in generated or '$storemerge' in generated or '$original' in generated, 'micro opts should always be on' if opt_level >= 2 and '-g' in params: assert re.search('HEAP8\[\$?\w+ ?\+ ?\(+\$?\w+ ?', generated) or re.search('HEAP8\[HEAP32\[', generated), 'eliminator should create compound expressions, and fewer one-time vars' # also in -O1, but easier to test in -O2 assert ('_puts(' in generated) == (opt_level >= 1), 'with opt >= 1, llvm opts are run and they should optimize printf to puts' |