diff options
author | max99x <max99x@gmail.com> | 2011-08-26 01:31:20 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-26 01:32:36 +0300 |
commit | b7fcc0e14805f1ef5d0cd70d8d237a005379c73d (patch) | |
tree | 3e6e2bc3d54a0ddac924cc32a06b47bfddc6a85e /tests | |
parent | 1d3e667d6b06402e33c20c93d044a8694790435e (diff) |
Switched from "var x = function x() {}" to plain "function x() {}" for lib functions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 8 |
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 |