Skip to content

Commit 530e646

Browse files
committed
tweak caching test sizes
1 parent 70f2d8a commit 530e646

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/runner.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8113,9 +8113,10 @@ def test_emcc_caching(self):
81138113
assert os.path.exists(EMCC_CACHE)
81148114
assert os.path.exists(os.path.join(EMCC_CACHE, libname + '.bc'))
81158115
if libname == 'libcxx':
8116-
assert os.stat(os.path.join(EMCC_CACHE, libname + '.bc')).st_size > 3500000, 'libc++ is big'
8117-
assert os.stat(basebc_name).st_size > 3500000, 'libc++ is indeed big'
8118-
assert os.stat(dcebc_name).st_size < 2000000, 'Dead code elimination must remove most of libc++'
8116+
print os.stat(os.path.join(EMCC_CACHE, libname + '.bc')).st_size, os.stat(basebc_name).st_size, os.stat(dcebc_name).st_size
8117+
assert os.stat(os.path.join(EMCC_CACHE, libname + '.bc')).st_size > 2000000, 'libc++ is big'
8118+
assert os.stat(basebc_name).st_size > 2000000, 'libc++ is indeed big'
8119+
assert os.stat(dcebc_name).st_size < 1000000, 'Dead code elimination must remove most of libc++'
81198120
finally:
81208121
if emcc_debug:
81218122
os.environ['EMCC_DEBUG'] = emcc_debug

0 commit comments

Comments
 (0)