diff --git a/.circleci/config.yml b/.circleci/config.yml index b9e9664de9f39..ccac6da135ef7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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. diff --git a/test/fs/test_write.cpp b/test/fs/test_write.cpp index c0467fcfa8089..613886c5c372a 100644 --- a/test/fs/test_write.cpp +++ b/test/fs/test_write.cpp @@ -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); diff --git a/test/test_core.py b/test/test_core.py index 7eda33e4c5187..7ba98ebe21337 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -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")