rewrite and rename issue-14698 to rmake

This commit is contained in:
Oneirical 2024-07-16 13:05:12 -04:00
parent aee3dc4c6c
commit e870ab86dc
4 changed files with 18 additions and 5 deletions

View File

@ -28,7 +28,6 @@ run-make/incr-add-rust-src-component/Makefile
run-make/incr-foreign-head-span/Makefile run-make/incr-foreign-head-span/Makefile
run-make/interdependent-c-libraries/Makefile run-make/interdependent-c-libraries/Makefile
run-make/issue-107094/Makefile run-make/issue-107094/Makefile
run-make/issue-14698/Makefile
run-make/issue-15460/Makefile run-make/issue-15460/Makefile
run-make/issue-33329/Makefile run-make/issue-33329/Makefile
run-make/issue-35164/Makefile run-make/issue-35164/Makefile

View File

@ -0,0 +1,18 @@
// When the TMP or TMPDIR variable is set to an invalid or non-existing directory,
// this used to cause an internal compiler error (ICE). After the addition of proper
// error handling in #28430, this test checks that the expected message is printed.
// See https://github.com/rust-lang/rust/issues/14698
use run_make_support::rustc;
// NOTE: This is not a UI test despite its simplicity, as the error message contains a path
// with some variability that is difficult to normalize
fn main() {
rustc()
.input("foo.rs")
.env("TMP", "fake")
.env("TMPDIR", "fake")
.run_fail()
.assert_stderr_contains("couldn't create a temp dir");
}

View File

@ -1,4 +0,0 @@
include ../tools.mk
all:
TMP=fake TMPDIR=fake $(RUSTC) foo.rs 2>&1 | $(CGREP) "couldn't create a temp dir:"