aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-05-25 18:36:16 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-05-25 18:36:16 +0300
commitcd7b997cbb84f8b6fe9a0ad06b80ff50674bb028 (patch)
treeed81b94af538fe2a775f27905575ae326423b683 /tests/runner.py
parent540ad09dab13f9b5a2025e0994984b6a3402d559 (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.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py2
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()