Skip to content

Commit ca54ac5

Browse files
committed
Move all of setup function into ifdef
1 parent d446dc2 commit ca54ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fs/test_fs_rename_on_existing renamed to test/fs/test_fs_rename_on_existing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ static void create_file(const char *path, const char *buffer) {
3737

3838

3939
void setup() {
40-
makedir("working");
4140
#if defined(__EMSCRIPTEN__) && defined(NODEFS)
41+
makedir("working");
4242
EM_ASM(FS.mount(NODEFS, { root: '.' }, 'working'));
43-
#endif
4443
changedir("working");
44+
#endif
4545
}
4646

4747
int main() {

0 commit comments

Comments
 (0)