Skip to content

Commit e870ab8

Browse files
committed
rewrite and rename issue-14698 to rmake
1 parent aee3dc4 commit e870ab8

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
@@ -28,7 +28,6 @@ run-make/incr-add-rust-src-component/Makefile
2828
run-make/incr-foreign-head-span/Makefile
2929
run-make/interdependent-c-libraries/Makefile
3030
run-make/issue-107094/Makefile
31-
run-make/issue-14698/Makefile
3231
run-make/issue-15460/Makefile
3332
run-make/issue-33329/Makefile
3433
run-make/issue-35164/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)