Auto merge of #985 - christianpoveda:fix-fs-path, r=RalfJung
Avoid using the tests folder for the file manipualtion test https://github.com/rust-lang/rust/pull/65278 r? @RalfJung
This commit is contained in:
commit
e10d9d32d7
@ -5,7 +5,7 @@ use std::fs::{File, remove_file};
|
|||||||
use std::io::{Read, Write};
|
use std::io::{Read, Write};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let path = "./tests/hello.txt";
|
let path = "miri_test_fs.txt";
|
||||||
let bytes = b"Hello, World!\n";
|
let bytes = b"Hello, World!\n";
|
||||||
// Test creating, writing and closing a file (closing is tested when `file` is dropped).
|
// Test creating, writing and closing a file (closing is tested when `file` is dropped).
|
||||||
let mut file = File::create(path).unwrap();
|
let mut file = File::create(path).unwrap();
|
Loading…
x
Reference in New Issue
Block a user