aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-14 11:12:19 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-14 11:12:19 -0800
commit5322f208ad2126038456c90860970739c6e36556 (patch)
tree7f6ddd4f20d09de6e21faeee6504e08226c08f9a /tests/runner.py
parent6c2ee0edcff41748ac4bd771a3fdc7be03b1e084 (diff)
initial work to refactor emcc into emcc, emld, emar, emranlib
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index abb4660a..8154be8b 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4974,6 +4974,11 @@ Options that are modified or new in %s include:
clear()
output = Popen([compiler, path_from_root('tests', 'twopart_main.cpp'), path_from_root('tests', 'twopart_side.cpp'), '-c'],
stdout=PIPE, stderr=PIPE).communicate()
+ if '-o' in args:
+ # specifying -o and -c is an error
+ assert 'fatal error' in output[1], output[1]
+ continue
+
assert os.path.exists('twopart_main.bc'), '\n'.join(output)
assert os.path.exists('twopart_side.bc'), '\n'.join(output)
assert not os.path.exists(target), 'We should only have created bitcode here: ' + '\n'.join(output)