mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Reproduce #14076
The `with_stderr_contains()` (as well as the new `with_stderr_data()` too, see #14060) has no effect when using with `run_expect_error()`.
This commit is contained in:
parent
ea16f96033
commit
afe9d17258
@ -632,7 +632,9 @@ fn config_invalid_empty() {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
p.cargo("check")
|
p.cargo("check")
|
||||||
.with_stderr_contains("[..]missing field `level`[..]")
|
.with_stderr_contains(
|
||||||
|
"[..]missing field `level`[..] THIS RANDOM SENTENCE SHOULD FAIL THIS TEST BUT DIDN'T",
|
||||||
|
)
|
||||||
.run_expect_error();
|
.run_expect_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2936,6 +2936,9 @@ fn use_mtime_cache_in_cargo_home() {
|
|||||||
.with_stderr(
|
.with_stderr(
|
||||||
"\
|
"\
|
||||||
[DIRTY] foo v0.5.0 ([CWD]): [..]
|
[DIRTY] foo v0.5.0 ([CWD]): [..]
|
||||||
|
|
||||||
|
THIS RANDOM SENTENCE SHOULD FAIL THIS TEST BUT DIDN'T
|
||||||
|
|
||||||
[CHECKING] foo v0.5.0 ([CWD])
|
[CHECKING] foo v0.5.0 ([CWD])
|
||||||
[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]",
|
[RUNNING] `rustc --crate-name foo --edition=2015 src/lib.rs [..]",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user