diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-15 12:46:55 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-15 12:46:55 +0200 |
commit | 0120a147fc15bd0247d37e2862bfda2fb242d73b (patch) | |
tree | 41708dc900129a9c03b5849fc9ca8f48c1d9eb6a /tests/test_other.py | |
parent | 149b9ea5747d610d2ebfb41bc87e8bb96f498359 (diff) |
Fix other.test_preprocess on Linux after regressing it in the previous commit b3906e91dec32ee13258cee820781c8bf9bb9c1c that fixed it for Windows.
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 11b2dcb3..ef3a69f5 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1913,7 +1913,11 @@ 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 '''#line 1 ''' in out + # Test explicitly that the output contains a line typically written by the preprocessor. + # Clang outputs on Windows lines like "#line 1", on Unix '# 1 '. + # TODO: This is one more of those platform-specific discrepancies, investigate more if this ever becomes an issue, + # ideally we would have emcc output identical data on all platforms. + assert '''#line 1 ''' in out or '''# 1 ''' in out assert '''hello_world.c"''' in out assert '''printf("hello, world!''' in out |