6 files changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -798,6 +798,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
798
798
"ignore-none" ,
799
799
"ignore-nto" ,
800
800
"ignore-nvptx64" ,
801
+ "ignore-nvptx64-nvidia-cuda" ,
801
802
"ignore-openbsd" ,
802
803
"ignore-pass" ,
803
804
"ignore-remote" ,
Original file line number Diff line number Diff line change @@ -246,7 +246,6 @@ run-make/static-pie/Makefile
246
246
run-make/staticlib-blank-lib/Makefile
247
247
run-make/staticlib-dylib-linkage/Makefile
248
248
run-make/std-core-cycle/Makefile
249
- run-make/suspicious-library/Makefile
250
249
run-make/symbol-mangling-hashed/Makefile
251
250
run-make/symbol-visibility/Makefile
252
251
run-make/symbols-include-type-name/Makefile
Original file line number Diff line number Diff line change 7
7
// was hashed by rustc in addition to the span length, and the fix still
8
8
// works.
9
9
10
- // FIXME: Ignore flags temporarily disabled for the test.
11
- // ignore-none
12
- // ignore-nvptx64-nvidia-cuda
10
+ //@ ignore-none
11
+ // reason: no-std is not supported
13
12
14
- use run_make_support:: { rustc, target, tmp_dir} ;
13
+ //@ ignore-nvptx64-nvidia-cuda
14
+ // FIXME: can't find crate for `std`
15
+
16
+ use run_make_support:: { rustc, tmp_dir} ;
15
17
use std:: fs;
16
18
17
19
fn main ( ) {
18
- fs:: create_dir ( tmp_dir ( ) . join ( "src" ) ) ;
19
- fs:: create_dir ( tmp_dir ( ) . join ( "incr" ) ) ;
20
- fs:: copy ( "a.rs" , tmp_dir ( ) . join ( "main.rs" ) ) ;
20
+ // FIXME(Oneirical): Use run_make_support::fs_wrapper here.
21
+ fs:: create_dir ( tmp_dir ( ) . join ( "src" ) ) . unwrap ( ) ;
22
+ fs:: create_dir ( tmp_dir ( ) . join ( "incr" ) ) . unwrap ( ) ;
23
+ fs:: copy ( "a.rs" , tmp_dir ( ) . join ( "src/main.rs" ) ) . unwrap ( ) ;
21
24
rustc ( )
22
25
. incremental ( tmp_dir ( ) . join ( "incr" ) )
23
26
. input ( tmp_dir ( ) . join ( "src/main.rs" ) )
24
- . target ( target ( ) )
25
27
. run ( ) ;
26
- fs:: copy ( "b.rs" , tmp_dir ( ) . join ( "main.rs" ) ) ;
28
+ fs:: copy ( "b.rs" , tmp_dir ( ) . join ( "src/ main.rs" ) ) . unwrap ( ) ;
27
29
rustc ( )
28
30
. incremental ( tmp_dir ( ) . join ( "incr" ) )
29
31
. input ( tmp_dir ( ) . join ( "src/main.rs" ) )
30
- . target ( target ( ) )
31
32
. run ( ) ;
32
33
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ use std::fs;
10
10
fn main ( ) {
11
11
rustc ( ) . extra_filename ( "-hash" ) . input ( "foo.rs" ) . run ( ) ;
12
12
rustc ( ) . input ( "bar.rs" ) . run ( ) ;
13
- fs:: rename ( tmp_dir ( ) . join ( "libfoo-hash.rlib" ) , tmp_dir ( ) . join ( "libfoo-another-hash.rlib" ) ) ;
13
+ fs:: rename ( tmp_dir ( ) . join ( "libfoo-hash.rlib" ) , tmp_dir ( ) . join ( "libfoo-another-hash.rlib" ) )
14
+ . unwrap ( ) ;
14
15
rustc ( ) . input ( "baz.rs" ) . run ( ) ;
15
16
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // This test creates some fake dynamic libraries with nothing inside,
2
+ // and checks if rustc avoids them and successfully compiles as a result.
3
+
4
+ //@ ignore-cross-compile
5
+
6
+ use run_make_support:: { dynamic_lib, rustc} ;
7
+ use std:: fs:: File ;
8
+
9
+ fn main ( ) {
10
+ rustc ( ) . input ( "foo.rs" ) . arg ( "-Cprefer-dynamic" ) . run ( ) ;
11
+ File :: create ( dynamic_lib ( "foo-something-special" ) ) . unwrap ( ) ;
12
+ File :: create ( dynamic_lib ( "foo-something-special2" ) ) . unwrap ( ) ;
13
+ rustc ( ) . input ( "bar.rs" ) . run ( ) ;
14
+ }
0 commit comments