Avoid using the tests folder for the file manipualtion test
This commit is contained in:
parent
3899dce3b6
commit
ae9f4e1e63
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ use std::fs::{File, remove_file};
|
|||
use std::io::{Read, Write};
|
||||
|
||||
fn main() {
|
||||
let path = "./tests/hello.txt";
|
||||
let path = "miri_test_fs.txt";
|
||||
let bytes = b"Hello, World!\n";
|
||||
// Test creating, writing and closing a file (closing is tested when `file` is dropped).
|
||||
let mut file = File::create(path).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue