Skip to content

Commit 5db8552

Browse files
committed
rewrite bare-outfile test
1 parent 1e3e3df commit 5db8552

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

tests/run-make/bare-outfile/Makefile

-9
This file was deleted.

tests/run-make/bare-outfile/rmake.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This test checks that manually setting the output file as a bare file with no file extension
2+
// still results in successful compilation.
3+
4+
//@ ignore-cross-compile
5+
6+
use run_make_support::{run, rustc, tmp_dir};
7+
use std::fs;
8+
use std::env;
9+
10+
fn main(){
11+
fs::copy("foo.rs", tmp_dir()).unwrap();
12+
env::set_current_dir(tmp_dir());
13+
rustc().output("foo").input("foo.rs");
14+
run("foo");
15+
}

0 commit comments

Comments
 (0)