Update tests

This commit is contained in:
Camelid 2020-09-07 10:57:00 -07:00
parent a9424d978a
commit 82c834cec2
5 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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: [..]

View File

@ -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();

View File

@ -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;"));
}

View File

@ -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.
",