Skip to content

Commit d12d122

Browse files
committed
rewrite and rename issue-14698 to rmake
1 parent a91f7d7 commit d12d122

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ run-make/incr-add-rust-src-component/Makefile
4444
run-make/incr-foreign-head-span/Makefile
4545
run-make/interdependent-c-libraries/Makefile
4646
run-make/issue-107094/Makefile
47-
run-make/issue-14698/Makefile
4847
run-make/issue-15460/Makefile
4948
run-make/issue-18943/Makefile
5049
run-make/issue-22131/Makefile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// When the TMP or TMPDIR variable is set to an invalid or non-existing directory,
2+
// this used to cause an internal compiler error (ICE). After the addition of proper
3+
// error handling in #28430, this test checks that the expected message is printed.
4+
// See https://github.com/rust-lang/rust/issues/14698
5+
6+
use run_make_support::rustc;
7+
8+
// NOTE: This is not a UI test despite its simplicity, as the error message contains a path
9+
// with some variability that is difficult to normalize
10+
11+
fn main() {
12+
rustc()
13+
.input("foo.rs")
14+
.env("TMP", "fake")
15+
.env("TMPDIR", "fake")
16+
.run_fail()
17+
.assert_stderr_contains("couldn't create a temp dir");
18+
}

tests/run-make/issue-14698/Makefile

-4
This file was deleted.

0 commit comments

Comments
 (0)