-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite error-writing-dependencies to rmake
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 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 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,17 @@ | ||
// Invalid paths passed to rustc used to cause internal compilation errors | ||
// alongside an obscure error message. This was turned into a standard error, | ||
// and this test checks that the cleaner error message is printed instead. | ||
// See https://github.com/rust-lang/rust/issues/13517 | ||
|
||
use run_make_support::rustc; | ||
|
||
// NOTE: This cannot be a UI test due to the --out-dir flag, which is | ||
// already present by default in UI testing. | ||
|
||
fn main() { | ||
let out = rustc().input("foo.rs").emit("dep-info").out_dir("foo/bar/baz").run_fail(); | ||
// The error message should be informative. | ||
out.assert_stderr_contains("error writing dependencies"); | ||
// The filename should appear. | ||
out.assert_stderr_contains("baz"); | ||
} |