File tree 4 files changed +16
-7
lines changed
tests/run-make/invalid-library
4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ pub fn target() -> String {
61
61
env_var ( "TARGET" )
62
62
}
63
63
64
+ /// `AR`
65
+ #[ track_caller]
66
+ #[ must_use]
67
+ pub fn ar_command ( ) -> Command {
68
+ let ar_path = env_var ( "AR" ) ;
69
+ Command :: new ( ar_path)
70
+ }
71
+
64
72
/// Check if target is windows-like.
65
73
#[ must_use]
66
74
pub fn is_windows ( ) -> bool {
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ run-make/incr-add-rust-src-component/Makefile
54
54
run-make/incr-foreign-head-span/Makefile
55
55
run-make/interdependent-c-libraries/Makefile
56
56
run-make/intrinsic-unreachable/Makefile
57
- run-make/invalid-library/Makefile
58
57
run-make/invalid-so/Makefile
59
58
run-make/issue-107094/Makefile
60
59
run-make/issue-109934-lto-debuginfo/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ use run_make_support:: fs_wrapper:: create_file;
2
+ use run_make_support:: { ar_command, rustc} ;
3
+
4
+ fn main ( ) {
5
+ create_file ( "lib.rmeta" ) ;
6
+ ar_command ( ) . arg ( "crus" ) . arg ( "libfoo-ffffffff-1.0.rlib" ) . arg ( "lib.rmeta" ) . run ( ) ;
7
+ rustc ( ) . input ( "foo.rs" ) . run_fail ( ) . assert_stderr_contains ( "found invalid metadata" ) ;
8
+ }
You can’t perform that action at this time.
0 commit comments