Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Apr 30, 2024
1 parent 65a6ff3 commit 99b0518
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,8 @@ jobs:
other.test_js_optimizer_verbose
other.test_node_unhandled_rejection
other.test_full_js_library*
core2.test_hello_world"
core2.test_hello_world
core2.test_fs_write_rawfs"
# Run a few test with the most recent version of node
# In particular we have some tests that require node flags on older
# versions of node but not with the most recent version.
Expand Down
2 changes: 1 addition & 1 deletion test/fs/test_write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main()
var pos = lengthBytesUTF8(str);

str = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890';
data = new Uint8Array(100);
data = new Uint8Array(101);
stringToUTF8Array(str, data, 0, lengthBytesUTF8(str)+1);
FS.write(stream, data, 0, lengthBytesUTF8(str)+1, pos, /*canOwn=*/false);

Expand Down
1 change: 1 addition & 0 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5822,6 +5822,7 @@ def test_fs_js_api(self):
self.set_setting("FORCE_FILESYSTEM")
self.do_runf('fs/test_fs_js_api.c', 'success')

@also_with_noderawfs
def test_fs_write(self):
if self.get_setting('WASMFS'):
self.set_setting("FORCE_FILESYSTEM")
Expand Down

0 comments on commit 99b0518

Please sign in to comment.