aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 907e2c91..d3d483de 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -3674,9 +3674,11 @@ Child2:9
try:
def post(filename):
lines = open(filename, 'r').readlines()
- line = filter(lambda line: '___assert_fail(' in line, lines)[0]
- assert '//@line 7 "' in line, 'Must have debug info with the line number'
- assert 'src.cpp"\n' in line, 'Must have debug info with the filename'
+ lines = filter(lambda line: '___assert_fail(' in line, lines)
+ found_line_num = any(('//@line 7 "' in line) for line in lines)
+ found_filename = any(('src.cpp"\n' in line) for line in lines)
+ assert found_line_num, 'Must have debug info with the line number'
+ assert found_filename, 'Must have debug info with the filename'
self.do_test(src, '*nothingatall*', post_build=post)
except Exception, e:
# This test *should* fail