Skip to content

Commit 5beff79

Browse files
committed
rewrite suspicious-library in rmake
1 parent d553d5b commit 5beff79

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ run-make/static-pie/Makefile
246246
run-make/staticlib-blank-lib/Makefile
247247
run-make/staticlib-dylib-linkage/Makefile
248248
run-make/std-core-cycle/Makefile
249-
run-make/suspicious-library/Makefile
250249
run-make/symbol-mangling-hashed/Makefile
251250
run-make/symbol-visibility/Makefile
252251
run-make/symbols-include-type-name/Makefile

tests/run-make/incr-prev-body-beyond-eof/rmake.rs

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
// was hashed by rustc in addition to the span length, and the fix still
88
// works.
99

10-
// FIXME: Ignore flags temporarily disabled for the test.
11-
// ignore-none
12-
// ignore-nvptx64-nvidia-cuda
13-
1410
use run_make_support::{rustc, target, tmp_dir};
1511
use std::fs;
1612

tests/run-make/suspicious-library/Makefile

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

0 commit comments

Comments
 (0)