2024-06-14 14:28:15 -05:00
|
|
|
// Failing to create the directory where output incremental
|
|
|
|
// files would be stored used to cause an ICE (Internal Compiler
|
|
|
|
// Error). This was patched in #85698, and this test checks that
|
|
|
|
// the ensuing compilation failure is not an ICE.
|
|
|
|
// See https://github.com/rust-lang/rust/pull/85698
|
|
|
|
|
2024-07-17 08:31:38 -05:00
|
|
|
use run_make_support::{rfs, rustc};
|
2024-06-14 14:28:15 -05:00
|
|
|
|
|
|
|
fn main() {
|
2024-07-17 07:42:06 -05:00
|
|
|
rfs::create_file("session");
|
2024-06-14 14:28:15 -05:00
|
|
|
// rustc should fail to create the session directory here.
|
|
|
|
let out = rustc().input("foo.rs").crate_type("rlib").incremental("session").run_fail();
|
|
|
|
out.assert_stderr_contains("could not create incremental compilation crate directory");
|
|
|
|
out.assert_stderr_not_contains("internal compiler error");
|
|
|
|
}
|