aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-13 14:54:31 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-08 16:04:57 -0700
commit29a14a85978c7b09858f738db7c885907ef39797 (patch)
tree24c06dfb6ed123a71a8196f7446e4c095d536248
parentda97bd385f882508d17b4b7db946c9cf0d5ba4de (diff)
make dce check flexible
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 8196053d..e77efffb 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -15054,7 +15054,7 @@ fi
print os.stat(os.path.join(EMCC_CACHE, libname + '.bc')).st_size, os.stat(basebc_name).st_size, os.stat(dcebc_name).st_size
assert os.stat(os.path.join(EMCC_CACHE, libname + '.bc')).st_size > 1000000, 'libc++ is big'
assert os.stat(basebc_name).st_size > 1000000, 'libc++ is indeed big'
- assert os.stat(dcebc_name).st_size < 500000, 'Dead code elimination must remove most of libc++'
+ assert os.stat(dcebc_name).st_size < os.stat(basebc_name).st_size/2, 'Dead code elimination must remove most of libc++'
# should only have metadata in -O0, not 1 and 2
if i > 0:
for ll_name in ll_names: