diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-27 16:29:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-27 16:29:35 -0700 |
commit | e3cb6733af44ad8e2536fd3493b547cb5b123ee2 (patch) | |
tree | b21ec9001f89d3103d75a28702df8b7fd3c3377c /tests | |
parent | 14d6b2cdab8e48deddb2b114c47406bcb1796b3a (diff) |
fix test_files_m on latest spidermonkey, which shows more warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_core.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index a954e312..33e0b99f 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -3988,7 +3988,9 @@ def process(filename): return 0; } ''' - self.do_run(src, ('got: 35\ngot: 45\ngot: 25\ngot: 15\nisatty? 0,0,1\n', 'isatty? 0,0,1\ngot: 35\ngot: 45\ngot: 25\ngot: 15\n'), post_build=post) + def clean(out, err): + return '\n'.join(filter(lambda line: 'warning' not in line, (out + err).split('\n'))) + self.do_run(src, ('got: 35\ngot: 45\ngot: 25\ngot: 15\nisatty? 0,0,1\n', 'isatty? 0,0,1\ngot: 35\ngot: 45\ngot: 25\ngot: 15\n'), post_build=post, output_nicerizer=clean) def test_mount(self): src = open(path_from_root('tests', 'fs', 'test_mount.c'), 'r').read() |