Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 10990e2

Browse files
committedJun 23, 2024·
Migrate run-make/invalid-library to rmake.rs
1 parent 29113bf commit 10990e2

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
 

‎src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ run-make/incr-add-rust-src-component/Makefile
5454
run-make/incr-foreign-head-span/Makefile
5555
run-make/interdependent-c-libraries/Makefile
5656
run-make/intrinsic-unreachable/Makefile
57-
run-make/invalid-library/Makefile
5857
run-make/invalid-so/Makefile
5958
run-make/issue-107094/Makefile
6059
run-make/issue-109934-lto-debuginfo/Makefile

‎tests/run-make/invalid-library/Makefile

-6
This file was deleted.
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
}

0 commit comments

Comments
 (0)
Please sign in to comment.