Skip to content

Commit 4d22a0d

Browse files
committed
clean up rmake test
1 parent e8f0d7a commit 4d22a0d

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ run-make/dump-ice-to-disk/Makefile
1616
run-make/emit-to-stdout/Makefile
1717
run-make/export-executable-symbols/Makefile
1818
run-make/extern-diff-internal-name/Makefile
19-
run-make/extern-flag-disambiguates/Makefile
19+
run-make/extern-fn-explicit-align/Makefile
20+
run-make/extern-fn-generic/Makefile
21+
run-make/extern-fn-mangle/Makefile
2022
run-make/extern-fn-reachable/Makefile
2123
run-make/extern-multiple-copies/Makefile
2224
run-make/extern-multiple-copies2/Makefile
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
//@ ignore-cross-compile
22

3-
use run_make_support::{cwd, run, run_in_tmpdir, rustc};
3+
use run_make_support::{cwd, run, rustc};
44

55
// Attempt to build this dependency tree:
66
//
7-
// A.1 A.2
8-
// |\ |
9-
// | \ |
10-
// B \ C
11-
// \ | /
12-
// \|/
13-
// D
7+
// A.1 A.2
8+
// |\ |
9+
// | \ |
10+
// B \ C
11+
// \ | /
12+
// \|/
13+
// D
1414
//
1515
// Note that A.1 and A.2 are crates with the same name.
1616

17+
// original Makefile at https://github.com/rust-lang/rust/commit/cc3c8bbfaf5af19caf3deb131a995a65ca4674f9#diff-23d3f6bcee0c974ae7c793ab6f87c454cffd1f5c9ec17ce86aaf2cf8bc6e5397
18+
1719
fn main() {
18-
run_in_tmpdir(|| {
19-
rustc().metadata("1").extra_filename("-1").input("a.rs").run();
20-
rustc().metadata("2").extra_filename("-2").input("a.rs").run();
21-
rustc().input("b.rs").extern_("a", "liba-1.rlib").run();
22-
rustc().input("c.rs").extern_("a", "liba-2.rlib").run();
23-
println!("before");
24-
rustc().cfg("before").input("d.rs").extern_("a", "liba-1.rlib").run();
25-
run("d");
26-
println!("after");
27-
rustc().cfg("after").input("d.rs").extern_("a", "liba-1.rlib").run();
28-
run("d");
29-
});
20+
rustc().metadata("1").extra_filename("-1").input("a.rs").run();
21+
rustc().metadata("2").extra_filename("-2").input("a.rs").run();
22+
rustc().input("b.rs").extern_("a", "liba-1.rlib").run();
23+
rustc().input("c.rs").extern_("a", "liba-2.rlib").run();
24+
println!("before");
25+
rustc().cfg("before").input("d.rs").extern_("a", "liba-1.rlib").run();
26+
run("d");
27+
println!("after");
28+
rustc().cfg("after").input("d.rs").extern_("a", "liba-1.rlib").run();
29+
run("d");
3030
}

0 commit comments

Comments
 (0)