Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf22b5af

Browse files
committed
rewrite error-writing-dependencies to rmake
1 parent75ee1d7 commitf22b5af

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

‎src/tools/tidy/src/allowed_run_make_makefiles.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ run-make/emit-shared-files/Makefile
3434
run-make/emit-stack-sizes/Makefile
3535
run-make/emit-to-stdout/Makefile
3636
run-make/env-dep-info/Makefile
37-
run-make/error-writing-dependencies/Makefile
3837
run-make/export-executable-symbols/Makefile
3938
run-make/extern-diff-internal-name/Makefile
4039
run-make/extern-flag-disambiguates/Makefile

‎tests/run-make/error-writing-dependencies/Makefile‎

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Invalid paths passed to rustc used to cause internal compilation errors
2+
// alongside an obscure error message. This was turned into a standard error,
3+
// and this test checks that the cleaner error message is printed instead.
4+
// See https://github.com/rust-lang/rust/issues/13517
5+
6+
use run_make_support::rustc;
7+
8+
// NOTE: This cannot be a UI test due to the --out-dir flag, which is
9+
// already present by default in UI testing.
10+
11+
fnmain(){
12+
let out =rustc().input("foo.rs").emit("dep-info").out_dir("foo/bar/baz").run_fail();
13+
// The error message should be informative.
14+
out.assert_stderr_contains("error writing dependencies");
15+
// The filename should appear.
16+
out.assert_stderr_contains("baz");
17+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp