diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-14 19:14:20 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-14 19:14:20 +0200 |
commit | b3906e91dec32ee13258cee820781c8bf9bb9c1c (patch) | |
tree | 9b84efff77006b88767fcaf6b715fb3d20df6606 | |
parent | 4eec671ca6d6ebec95e542bd698e879fb642f8c9 (diff) |
Adjust other.test_preprocess to not include a path delimiter in the string that it tests for successfully preprocessed file. In linux, the output line would contain "tests/hello_world.c", but on Windows, the equivalent line is "tests\\hello_world.c". Fixes other.test_preprocess on Windows.
-rw-r--r-- | tests/test_other.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 18404fe7..beb6e5b2 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1913,7 +1913,8 @@ done. out, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-E'], stdout=PIPE).communicate() assert not os.path.exists('a.out.js') - assert '''tests/hello_world.c"''' in out + assert '''#line 1 ''' in out + assert '''hello_world.c"''' in out assert '''printf("hello, world!''' in out def test_demangle(self): |