Skip to content

Commit 9cf175f

Browse files
committed
clean up rmake test
1 parent 4babd6e commit 9cf175f

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ run-make/dump-ice-to-disk/Makefile
2323
run-make/emit-to-stdout/Makefile
2424
run-make/export-executable-symbols/Makefile
2525
run-make/extern-diff-internal-name/Makefile
26-
run-make/extern-flag-disambiguates/Makefile
2726
run-make/extern-fn-explicit-align/Makefile
2827
run-make/extern-fn-generic/Makefile
2928
run-make/extern-fn-mangle/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)