diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-05-25 18:36:16 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-05-25 18:36:16 +0300 |
commit | cd7b997cbb84f8b6fe9a0ad06b80ff50674bb028 (patch) | |
tree | ed81b94af538fe2a775f27905575ae326423b683 | |
parent | 540ad09dab13f9b5a2025e0994984b6a3402d559 (diff) |
Fix browser.test_preload_file absolute paths on windows. The test would create a string "c:\path\file.txt", where clang would regard path separators as escape characters.
-rwxr-xr-x | tests/runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 335d7d4b..342b0590 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -11491,7 +11491,7 @@ elif 'browser' in str(sys.argv): REPORT_RESULT(); return 0; } - ''' % path)) + ''' % path.replace(os.path.sep, '/'))) make_main('somefile.txt') Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp'), '--preload-file', 'somefile.txt', '-o', 'page.html']).communicate() |