From ccbfbc922a42302973ef523c36fafcc4bbce0d88 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 14 Mar 2014 19:43:18 -0700 Subject: test for bad triple warning --- tests/test_other.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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 + -- cgit v1.2.3-18-g5258