Skip to content

Commit 5ef962d

Browse files
authored
Remove unnecessary use of wasmfs_create_file. NFC (emscripten-core#23844)
This file will be created in the JS backend by virtue of its location.
1 parent ec117b4 commit 5ef962d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/stdio/test_rename.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ void test() {
207207
// Create a directory and a file.
208208
err = wasmfs_create_directory("/js-dir", 0777, js_backend);
209209
assert(err == 0);
210-
int fd = wasmfs_create_file("/js-dir/js-file", 0777, js_backend);
211-
assert(fd >= 0);
210+
create_file("/js-dir/js-file", "foo", 0777);
212211

213212
// Try to move it.
214213
err = rename("/js-dir/js-file", "/moved-js-file");

0 commit comments

Comments
 (0)