-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite incremental-session-fail to rmake
- Loading branch information
Showing
4 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// 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 | ||
|
||
use run_make_support::{fs_wrapper, rustc}; | ||
|
||
fn main() { | ||
fs_wrapper::create_file("session"); | ||
// 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"); | ||
} |