diff options
-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 13bca457..0dd0bd12 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1915,7 +1915,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 |