aboutsummaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-14 19:43:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-03-14 19:43:18 -0700
commitccbfbc922a42302973ef523c36fafcc4bbce0d88 (patch)
tree2114508d6cdf0f3583cee88e178523e051765d49 /tests/test_other.py
parent5c03805d684cb541ba5a40138457bb598642de20 (diff)
test for bad triple warning
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index fcf7e49d..553a3d83 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2568,3 +2568,9 @@ int main()
output = run_js('a.out.js', stderr=PIPE, full_output=True, engine=SPIDERMONKEY_ENGINE)
assert 'asm.js' in output, 'spidermonkey should mention asm.js compilation: ' + output
+ def test_bad_triple(self):
+ Popen([CLANG, path_from_root('tests', 'hello_world.c'), '-c', '-emit-llvm', '-o', 'a.bc'], stdout=PIPE, stderr=PIPE).communicate()
+ out, err = Popen([PYTHON, EMCC, 'a.bc'], stdout=PIPE, stderr=PIPE).communicate()
+ assert 'warning' in err, err
+ assert 'incorrect target triple' in err, err
+