Skip to content

Commit

Permalink
Improve createPath testing in test_fs_js_api. NFC
Browse files Browse the repository at this point in the history
This added test coverage for emscripten-core#23603.
  • Loading branch information
sbc100 committed Feb 10, 2025
1 parent 917568d commit e58a59b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/fs/test_fs_js_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ EM_JS(void, test_fs_open, (), {
// createPath should succeed when called on existing paths ( https://github.com/emscripten-core/emscripten/issues/23602 )
EM_JS(void, test_fs_createPath, (), {
FS.createPath('/', 'home', true, true);
FS.createPath('/', 'home', true, true); // Creating an already existing path
FS.createPath('/home', 'nested1', true, true);
FS.createPath('/home', 'nested2', true, true);
FS.writeFile('/home/nested1/test.txt', 'a=1\nb=2\n');
Expand Down

0 comments on commit e58a59b

Please sign in to comment.