aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 14:51:21 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 14:51:21 -0500
commitfff86540c3c5147e745a038bffad034ea1058d22 (patch)
tree7e719c5a8523eb9d0cc7b6ce7e3186df4822f101
parentb75ee5317f7365d43b405e31ac7c1925b7a80f6e (diff)
Remove the unneeded assertions
-rwxr-xr-xtests/runner.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 9cc03890..da57e401 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5389,9 +5389,7 @@ Options that are modified or new in %s include:
for args in [['-c'], ['-o', 'src.o'], ['-o', 'src.bc'], ['-o', 'js']]:
target = args[1] if len(args) == 2 else 'hello_world.o'
clear()
- output = Popen([compiler, path_from_root('tests', 'hello_world' + suffix)] + args, stdout=PIPE, stderr=PIPE).communicate()
- assert len(output[0]) == 0, output[0]
- assert os.path.exists(target), 'Expected %s to exist since args are %s : %s' % (target, str(args), '\n'.join(output))
+ Popen([compiler, path_from_root('tests', 'hello_world' + suffix)] + args, stdout=PIPE, stderr=PIPE).communicate()
syms = Building.llvm_nm(target)
assert len(syms.defs) == 1 and 'main' in syms.defs, 'Failed to generate valid bitcode'
if target == 'js': # make sure emcc can recognize the target as a bitcode file
@@ -5545,7 +5543,6 @@ Options that are modified or new in %s include:
try_delete(target)
assert not os.path.exists(target)
output = Popen([compiler, 'twopart_main.o', 'twopart_side.o', '-o', 'combined.bc'] + args, stdout=PIPE, stderr=PIPE).communicate()
- assert os.path.exists('combined.bc'), '\n'.join(output)
syms = Building.llvm_nm('combined.bc')
assert len(syms.defs) == 2 and 'main' in syms.defs, 'Failed to generate valid bitcode'
output = Popen([compiler, 'combined.bc', '-o', 'combined.bc.js'], stdout = PIPE, stderr = PIPE).communicate()