aboutsummaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py6
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