Skip to content

Commit e97266a

Browse files
committed
Rewrite and rename issue-26006 to rmake
1 parent 6f24454 commit e97266a

File tree

5 files changed

+24
-18
lines changed

5 files changed

+24
-18
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ run-make/issue-14698/Makefile
5050
run-make/issue-15460/Makefile
5151
run-make/issue-18943/Makefile
5252
run-make/issue-25581/Makefile
53-
run-make/issue-26006/Makefile
5453
run-make/issue-28595/Makefile
5554
run-make/issue-33329/Makefile
5655
run-make/issue-35164/Makefile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// In this test, the symlink created is invalid (valid relative to the root, but not
2+
// relatively to where it is located), and used to cause an internal
3+
// compiler error (ICE) when passed as a library search path. This was fixed in #26044,
4+
// and this test checks that the invalid symlink is instead simply ignored.
5+
// See https://github.com/rust-lang/rust/issues/26006
6+
7+
//FIXME(Oneirical): try it on test-various and windows
8+
9+
use run_make_support::{create_symlink, fs_wrapper, rustc};
10+
11+
fn main() {
12+
fs_wrapper::create_dir("out");
13+
fs_wrapper::create_dir("out/libc");
14+
rustc()
15+
.input("in/libc/lib.rs")
16+
.crate_name("libc")
17+
.metadata("foo")
18+
.output("out/libc/liblibc.rlib")
19+
.run();
20+
fs_wrapper::create_dir("out/time");
21+
fs_wrapper::create_dir("out/time/deps");
22+
create_symlink("out/libc/liblibc.rlib", "out/time/deps");
23+
rustc().input("in/time/lib.rs").library_search_path("dependency=out/time/deps").run();
24+
}

tests/run-make/issue-26006/Makefile

-17
This file was deleted.

0 commit comments

Comments
 (0)