Skip to content

Commit 7df1455

Browse files
authored
Fix test_em_config_filename on windows. NFC (#23988)
1 parent d9d8137 commit 7df1455

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_other.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,12 @@ def test_em_config_missing_arg(self):
845845
out = self.expect_fail([EMCC, '--em-config'])
846846
self.assertContained('error: --em-config must be followed by a filename', out)
847847

848+
@crossplatform
848849
def test_em_config_filename(self):
849850
create_file('myconfig.py', f'''
850-
LLVM_ROOT = '{config.LLVM_ROOT}'
851-
BINARYEN_ROOT = '{config.BINARYEN_ROOT}'
852-
CACHE = '{os.path.abspath("cache")}'
851+
LLVM_ROOT = r'{config.LLVM_ROOT}'
852+
BINARYEN_ROOT = r'{config.BINARYEN_ROOT}'
853+
CACHE = r'{os.path.abspath("cache")}'
853854
print("filename", __file__)
854855
''')
855856
proc = self.run_process([EMAR, '--em-config', 'myconfig.py', '--version'], stdout=PIPE, stderr=PIPE)

0 commit comments

Comments
 (0)