Skip to content

Commit 8c556c8

Browse files
committed
Address review comment
1 parent b509358 commit 8c556c8

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

test/fs/test_stat_unnamed_file_descriptor.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,6 @@
44
#include <assert.h>
55
#include "stdio.h"
66

7-
#ifdef __EMSCRIPTEN__
8-
#include <emscripten.h>
9-
#endif
10-
11-
void makedir(const char *dir) {
12-
int rtn = mkdir(dir, 0777);
13-
assert(rtn == 0);
14-
}
15-
16-
void changedir(const char *dir) {
17-
int rtn = chdir(dir);
18-
assert(rtn == 0);
19-
}
20-
21-
void setup() {
22-
#if defined(__EMSCRIPTEN__) && defined(NODEFS)
23-
makedir("working");
24-
EM_ASM(FS.mount(NODEFS, { root: '.' }, 'working'));
25-
changedir("working");
26-
#endif
27-
}
28-
29-
307
int main() {
318
setup();
329
int fd = open("file.txt", O_RDWR | O_CREAT, 0666);

test/test_core.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5839,12 +5839,8 @@ def test_fs_64bit(self):
58395839
self.set_setting('FORCE_FILESYSTEM')
58405840
self.do_runf('fs/test_64bit.c', 'success')
58415841

5842-
@requires_node
5843-
@parameterized({
5844-
'': ([],),
5845-
'nodefs': (['-DNODEFS', '-lnodefs.js'],),
5846-
'noderawfs': (['-sNODERAWFS'],),
5847-
})
5842+
@crossplatform
5843+
@also_with_nodefs_both
58485844
def test_fs_stat_unnamed_file_descriptor(self, args):
58495845
nodefs = '-DNODEFS' in args or '-DNODERAWFS' in args
58505846
if self.get_setting('WASMFS'):

0 commit comments

Comments
 (0)