4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ pub fn htmldocck() -> Command {
76
76
python
77
77
}
78
78
79
+ /// Returns the path for a local test file.
80
+ pub fn path < P : AsRef < Path > > ( p : P ) -> PathBuf {
81
+ cwd ( ) . join ( p. as_ref ( ) )
82
+ }
83
+
79
84
/// Path to the root rust-lang/rust source checkout.
80
85
pub fn source_root ( ) -> PathBuf {
81
86
env_var ( "SOURCE_ROOT" ) . into ( )
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ run-make/mismatching-target-triples/Makefile
144
144
run-make/missing-crate-dependency/Makefile
145
145
run-make/mixing-libs/Makefile
146
146
run-make/msvc-opt-minsize/Makefile
147
- run-make/multiple-emits/Makefile
148
147
run-make/native-link-modifier-bundle/Makefile
149
148
run-make/native-link-modifier-verbatim-linker/Makefile
150
149
run-make/native-link-modifier-verbatim-rustc/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ use run_make_support:: { cwd, path, rustc} ;
2
+
3
+ fn main ( ) {
4
+ rustc ( ) . input ( "foo.rs" ) . emit ( "asm,llvm-ir" ) . output ( "out" ) . run ( ) ;
5
+
6
+ assert ! ( path( "out.ll" ) . is_file( ) ) ;
7
+ assert ! ( path( "out.s" ) . is_file( ) ) ;
8
+
9
+ rustc ( ) . input ( "foo.rs" ) . emit ( "asm,llvm-ir" ) . output ( "out2.ext" ) . run ( ) ;
10
+
11
+ assert ! ( path( "out2.ll" ) . is_file( ) ) ;
12
+ assert ! ( path( "out2.s" ) . is_file( ) ) ;
13
+ }
0 commit comments