]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass-fulldeps/stdio-from.rs
rustc: Load the `rustc_trans` crate at runtime
[rust.git] / src / test / run-pass-fulldeps / stdio-from.rs
index 535ab711f5bcf62ee8803cd4c229a5809ec6775d..5b28ce0f0c68da7ae13d20e28387493e5201f3d4 100644 (file)
 
 // ignore-cross-compile
 
-#![feature(rustc_private)]
-
-extern crate tempdir;
-
 use std::env;
 use std::fs::File;
 use std::io;
 use std::io::{Read, Write};
 use std::process::{Command, Stdio};
-
-use tempdir::TempDir;
+use std::path::PathBuf;
 
 fn main() {
     if env::args().len() > 1 {
@@ -31,9 +26,9 @@ fn main() {
 }
 
 fn parent() -> io::Result<()> {
-    let td = TempDir::new("foo").unwrap();
-    let input = td.path().join("input");
-    let output = td.path().join("output");
+    let td = PathBuf::from(env::var_os("RUST_TEST_TMPDIR").unwrap());
+    let input = td.join("stdio-from-input");
+    let output = td.join("stdio-from-output");
 
     File::create(&input)?.write_all(b"foo\n")?;