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:
bors 2019-10-11 09:03:11 +00:00
commit e10d9d32d7

View File

@ -5,7 +5,7 @@
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();