We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba8bbc commit 3252082Copy full SHA for 3252082
tests/run-pass/fs.rs
@@ -188,7 +188,7 @@ fn test_file_sync() {
188
let path = prepare_with_content("miri_test_fs_sync.txt", bytes);
189
190
// Test that we can call sync_data and sync_all (can't readily test effects of this operation)
191
- let file = File::open(&path).unwrap();
+ let file = OpenOptions::new().write(true).open(&path).unwrap();
192
file.sync_data().unwrap();
193
file.sync_all().unwrap();
194
0 commit comments