Skip to content

Commit a0d43fc

Browse files
authored
Fix test_response_file to run correctly if invoked from an Emscripten directory cloned to a path that contains spaces in it. (#19220)
1 parent ae8d76b commit a0d43fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7326,7 +7326,7 @@ def test(expected, args=None, assert_returncode=0):
73267326
test('|1|', args=['-DDIRECT'])
73277327

73287328
def test_response_file(self):
7329-
response_data = '-o %s/response_file.js %s' % (self.get_dir(), test_file('hello_world.cpp'))
7329+
response_data = '-o "%s/response_file.js" "%s"' % (self.get_dir(), test_file('hello_world.cpp'))
73307330
create_file('rsp_file', response_data.replace('\\', '\\\\'))
73317331
self.run_process([EMCC, "@rsp_file"] + self.get_emcc_args())
73327332
self.do_run('response_file.js', 'hello, world', no_build=True)

0 commit comments

Comments
 (0)