def test_response_file(self):
    response_data = ('-o %s/response_file.js %s' % (self.get_dir(), path_from_root('tests', 'hello_world.cpp')))
    create_test_file('rsp_file', response_data.replace('\\', '\\\\'))
    run_process(([EMCC, '@rsp_file'] + self.get_emcc_args()))
    self.do_run('response_file.js', 'hello, world', no_build=True)
    self.assertContained('response file not found: foo.txt', self.expect_fail([EMCC, '@foo.txt']))
def test_response_file(self):
    response_data = ('-o %s/response_file.js %s' % (self.get_dir(), path_from_root('tests', 'hello_world.cpp')))
    create_test_file('rsp_file', response_data.replace('\\', '\\\\'))
    run_process(([EMCC, '@rsp_file'] + self.get_emcc_args()))
    self.do_run('response_file.js', 'hello, world', no_build=True)
    self.assertContained('response file not found: foo.txt', self.expect_fail([EMCC, '@foo.txt']))