Skip to content

Commit dabd95d

Browse files
committed
update other.test_emcc_c_multi
1 parent 321d281 commit dabd95d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_other.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -4720,12 +4720,14 @@ def test(args, llvm_opts=None):
47204720
finally:
47214721
del os.environ['EMCC_DEBUG']
47224722

4723+
VECTORIZE = '-disable-loop-vectorization'
4724+
47234725
if args:
4724-
assert err.count('-disable-vectorize') == 2, err # specified twice, once per file
4726+
assert err.count(VECTORIZE) == 2, err # specified twice, once per file
47254727

4726-
assert err.count('emcc: LLVM opts: ' + llvm_opts + ' -disable-vectorize') == 2, err # exactly once per invocation of optimizer
4728+
assert err.count('emcc: LLVM opts: ' + llvm_opts + ' ' + VECTORIZE) == 2, err # exactly once per invocation of optimizer
47274729
else:
4728-
assert err.count('-disable-vectorize') == 0, err # no optimizations
4730+
assert err.count(VECTORIZE) == 0, err # no optimizations
47294731

47304732
Popen([PYTHON, EMCC, main_name.replace('.c', '.o'), lib_name.replace('.c', '.o')]).communicate()
47314733

0 commit comments

Comments
 (0)