This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed
tests/run-make/invalid-so Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ run-make/incr-foreign-head-span/Makefile
5555run-make/interdependent-c-libraries/Makefile
5656run-make/intrinsic-unreachable/Makefile
5757run-make/invalid-library/Makefile
58- run-make/invalid-so/Makefile
5958run-make/issue-107094/Makefile
6059run-make/issue-109934-lto-debuginfo/Makefile
6160run-make/issue-14698/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // When a fake library was given to the compiler, it would
2+ // result in an obscure and unhelpful error message. This test
3+ // creates a false "foo" dylib, and checks that the standard error
4+ // explains that the file exists, but that its metadata is incorrect.
5+ // See https://github.com/rust-lang/rust/pull/88368
6+
7+ use run_make_support:: { dynamic_lib_name, fs_wrapper, rustc} ;
8+
9+ fn main ( ) {
10+ fs_wrapper:: create_file ( dynamic_lib_name ( "foo" ) ) ;
11+ rustc ( )
12+ . crate_type ( "lib" )
13+ . extern_ ( "foo" , dynamic_lib_name ( "foo" ) )
14+ . input ( "bar.rs" )
15+ . run_fail ( )
16+ . assert_stderr_contains ( "invalid metadata files for crate `foo`" ) ;
17+ }
You can’t perform that action at this time.
0 commit comments