Skip to content

Commit 7b2a320

Browse files
committed
Fix test again
1 parent 8186ce5 commit 7b2a320

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

test/test_core.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5769,21 +5769,10 @@ def test_fs_nodefs_readdir(self):
57695769
os.mkfifo(os.path.join(self.working_dir, 'named_pipe'))
57705770
os.makedirs(os.path.join(self.working_dir, 'existing', 'a'))
57715771
self.emcc_args += ['-lnodefs.js']
5772-
result = self.do_runf('fs/test_nodefs_readdir.c')
5773-
assert result.endswith("success\n")
5774-
5775-
result = result.removesuffix("success\n")
5776-
split = result.split("listing contents of ")
5777-
root_result = split[1].splitlines()
5778-
working_result = split[2].splitlines()
5779-
if self.get_setting('WASMFS'):
5780-
self.assertEqual(root_result, ['dir=/', '.', '..', 'dev', 'tmp'])
5781-
else:
5782-
self.assertEqual(root_result, ['dir=/', '.', '..', 'tmp', 'home', 'dev', 'proc'])
5772+
suffix = ""
57835773
if self.get_setting('WASMFS'):
5784-
self.assertEqual(working_result, ['dir=/working', '.', '..', 'existing', 'named_pipe', 'stdout', 'test_nodefs_readdir.js', 'test_nodefs_readdir.wasm'])
5785-
else:
5786-
self.assertEqual(working_result, ['dir=/working', 'existing', 'stdout', 'test_nodefs_readdir.js', 'test_nodefs_readdir.wasm'])
5774+
suffix = ".wasm"
5775+
self.do_run_in_out_file_test('fs/test_nodefs_readdir.c', out_suffix=suffix)
57875776

57885777
@no_windows('no symlink support on windows')
57895778
@requires_node

0 commit comments

Comments
 (0)