aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2012-11-09 19:14:49 +0200
committerJukka Jylänki <jujjyl@gmail.com>2012-11-09 19:14:49 +0200
commit99965bcd397b3bf5675e40b4d60a52900b5bee16 (patch)
treea1dd075e356a20f93c9133a343af9066ca0e4e2c
parent9682ed71fa4141da25ae14d3c4c51ceb311dc56d (diff)
Adjust an assert check in other.test_emcc to be more relaxed on the generated LLVM output. On Windows, the text outputted by LLVM varied somewhat, so testing for string containment instead works better.
-rwxr-xr-xtests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 3efb55b3..778da174 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -7251,7 +7251,7 @@ Options that are modified or new in %s include:
self.assertContained('error: invalid preprocessing directive', output[1])
self.assertContained("error: use of undeclared identifier 'cheez", output[1])
self.assertContained('2 errors generated', output[1])
- assert output[1].split('2 errors generated.')[1].replace('\r', '').replace('\n', '') == 'emcc: compiler frontend failed to generate LLVM bitcode, halting'
+ assert 'emcc: compiler frontend failed to generate LLVM bitcode, halting' in output[1].split('2 errors generated.')[1]
# emcc src.cpp -c and emcc src.cpp -o src.[o|bc] ==> should give a .bc file
# regression check: -o js should create "js", with bitcode content