Avoid using the tests folder for the file manipualtion test

This commit is contained in:
Christian Poveda
2019-10-11 03:31:11 -05:00
parent 3899dce3b6
commit ae9f4e1e63
+1 -1
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();