Fix bare-outfile test

This commit is contained in:
Jakub Beránek 2024-06-06 20:40:08 +02:00
parent 3f20c721ce
commit 7ebcc37d65
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B

View File

@ -3,13 +3,9 @@
//@ ignore-cross-compile //@ ignore-cross-compile
use run_make_support::{run, rustc, tmp_dir}; use run_make_support::{run, rustc};
use std::env;
use std::fs;
fn main() { fn main() {
fs::copy("foo.rs", tmp_dir().join("foo.rs")).unwrap();
env::set_current_dir(tmp_dir());
rustc().output("foo").input("foo.rs").run(); rustc().output("foo").input("foo.rs").run();
run("foo"); run("foo");
} }