]> git.lizzy.rs Git - rust.git/commitdiff
Avoid using the tests folder for the file manipualtion test
authorChristian Poveda <christianpoveda@protonmail.com>
Fri, 11 Oct 2019 08:31:11 +0000 (03:31 -0500)
committerChristian Poveda <christianpoveda@protonmail.com>
Fri, 11 Oct 2019 09:00:12 +0000 (04:00 -0500)
tests/run-pass/file_manipulation.rs

index fa17efd7e179966e9f155706ea4a7f6fd9909735..98f3c1089bb77e0184799877ab7c2da30e1501f1 100644 (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();