mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Update tests
This commit is contained in:
parent
a9424d978a
commit
82c834cec2
@ -570,7 +570,7 @@ fn cargo_compile_with_invalid_code() {
|
||||
.with_status(101)
|
||||
.with_stderr_contains(
|
||||
"\
|
||||
[ERROR] could not compile `foo`.
|
||||
[ERROR] could not compile `foo`
|
||||
|
||||
To learn more, run the command again with --verbose.\n",
|
||||
)
|
||||
@ -4669,7 +4669,7 @@ fn signal_display() {
|
||||
"\
|
||||
[COMPILING] pm [..]
|
||||
[COMPILING] foo [..]
|
||||
[ERROR] could not compile `foo`.
|
||||
[ERROR] could not compile `foo`
|
||||
|
||||
Caused by:
|
||||
process didn't exit successfully: `rustc [..]` (signal: 6, SIGABRT: process abort signal)
|
||||
|
@ -1069,7 +1069,7 @@ fn build_deps_not_for_normal() {
|
||||
.with_stderr_contains("[..]can't find crate for `aaaaa`[..]")
|
||||
.with_stderr_contains(
|
||||
"\
|
||||
[ERROR] could not compile `foo`.
|
||||
[ERROR] could not compile `foo`
|
||||
|
||||
Caused by:
|
||||
process didn't exit successfully: [..]
|
||||
|
@ -692,7 +692,7 @@ fn short_message_format() {
|
||||
"\
|
||||
src/lib.rs:1:27: error[E0308]: mismatched types
|
||||
error: aborting due to previous error
|
||||
error: could not compile `foo`.
|
||||
error: could not compile `foo`
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
@ -25,7 +25,7 @@ fn do_not_fix_broken_builds() {
|
||||
p.cargo("fix --allow-no-vcs")
|
||||
.env("__CARGO_FIX_YOLO", "1")
|
||||
.with_status(101)
|
||||
.with_stderr_contains("[ERROR] could not compile `foo`.")
|
||||
.with_stderr_contains("[ERROR] could not compile `foo`")
|
||||
.run();
|
||||
assert!(p.read_file("src/lib.rs").contains("let mut x = 3;"));
|
||||
}
|
||||
|
@ -661,7 +661,7 @@ fn compile_failure() {
|
||||
found at `[..]target`
|
||||
|
||||
Caused by:
|
||||
could not compile `foo`.
|
||||
could not compile `foo`
|
||||
|
||||
To learn more, run the command again with --verbose.
|
||||
",
|
||||
|
Loading…
x
Reference in New Issue
Block a user