diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-16 18:06:12 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-11-17 22:05:13 +0200 |
commit | ae5212d9d4059de34aad570192e68d12d21f6308 (patch) | |
tree | 6c5dd08425b5204c8a5fb4e0f6243741bf716b90 /tests/test_browser.py | |
parent | 64bad3adcff869595041e7f51d05fa4b43e46b05 (diff) |
Adjust split.py tool logic for generating output filenames to not generate the full absolute path names to the splitted filenames. This fixes a Windows problem where invalid path concatenations like 'somethingC:/projects/emscripten/hello_world.js' would be generated, and shortens the path structure to not contain redundant directory names. Fixes test browser.test_split_in_source_filenames on Windows.
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r-- | tests/test_browser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index 65bccb38..1936bb39 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -185,7 +185,7 @@ If manually bisecting: self.reftest(path_from_root('tests', 'htmltest.png')) output = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world_sdl.cpp'), '-o', 'something.js', '-g', '--split', '100', '--pre-js', 'reftest.js']).communicate() assert os.path.exists(os.path.join(self.get_dir(), 'something.js')), 'must be main js file' - assert os.path.exists(self.get_dir() + '/something/' + path_from_root('tests', 'hello_world_sdl.cpp.js')), 'must be functions js file' + assert os.path.exists(os.path.join(self.get_dir(), 'something', 'hello_world_sdl.cpp.js')), 'must be functions js file' assert os.path.exists(os.path.join(self.get_dir(), 'something.include.html')), 'must be js include file' open(os.path.join(self.get_dir(), 'something.html'), 'w').write(''' |