Skip to content

Commit f540c49

Browse files
authored
Fix wasmfs.test_fs_nodefs_readdir on Windows. (#25039)
Windows does not support fifos, so the test expectation needs to look different.
1 parent f1a7d26 commit f540c49

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
listing contents of dir=/
2+
.
3+
..
4+
dev
5+
tmp
6+
listing contents of dir=/working
7+
.
8+
..
9+
existing
10+
stdout
11+
test_nodefs_readdir.js
12+
test_nodefs_readdir.wasm
13+
success

test/test_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5885,8 +5885,9 @@ def test_fs_nodefs_readdir(self):
58855885
os.makedirs('existing/a')
58865886
self.cflags += ['-lnodefs.js']
58875887
suffix = ''
5888+
# Windows does not add a name_pipe to test expectations.
58885889
if self.get_setting('WASMFS'):
5889-
suffix = '.wasmfs'
5890+
suffix = '.wasmfs_win' if WINDOWS else '.wasmfs'
58905891
elif self.is_wasm2js():
58915892
suffix = ".wasm2js"
58925893
self.do_run_in_out_file_test('fs/test_nodefs_readdir.c', out_suffix=suffix)

0 commit comments

Comments
 (0)