Skip to content

Commit

Permalink
Update tests to contain location information for patch error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Gomes <antoniospg100@gmail.com>
  • Loading branch information
antoniospg committed Aug 31, 2024
1 parent 871c3be commit 2730b80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testsuite/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ fn replace_with_crates_io() {
.with_status(101)
.with_stderr_data(str![[r#"
[UPDATING] `dummy-registry` index
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index` specified in `[ROOT]/foo/Cargo.toml`
Caused by:
patch for `bar` in `https://github.com/rust-lang/crates.io-index` points to the same source, but patches must point to different sources
Expand Down Expand Up @@ -2139,7 +2139,7 @@ fn too_many_matches() {
.with_status(101)
.with_stderr_data(str![[r#"
[UPDATING] `alternative` index
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index` specified in `[ROOT]/foo/Cargo.toml`
Caused by:
patch for `bar` in `https://github.com/rust-lang/crates.io-index` failed to resolve
Expand Down Expand Up @@ -2181,7 +2181,7 @@ fn no_matches() {
p.cargo("check")
.with_status(101)
.with_stderr_data(str![[r#"
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index` specified in `[ROOT]/foo/Cargo.toml`
Caused by:
patch for `bar` in `https://github.com/rust-lang/crates.io-index` failed to resolve
Expand Down Expand Up @@ -2220,7 +2220,7 @@ fn mismatched_version() {
p.cargo("check")
.with_status(101)
.with_stderr_data(str![[r#"
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index` specified in `[ROOT]/foo/Cargo.toml`
Caused by:
patch for `bar` in `https://github.com/rust-lang/crates.io-index` failed to resolve
Expand Down Expand Up @@ -2330,7 +2330,7 @@ fn patch_walks_backwards_restricted() {
p.cargo("check")
.with_status(101)
.with_stderr_data(str![[r#"
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[ERROR] failed to resolve patches for `https://github.com/rust-lang/crates.io-index` specified in `[ROOT]/foo/Cargo.toml`
Caused by:
patch for `bar` in `https://github.com/rust-lang/crates.io-index` failed to resolve
Expand Down

0 comments on commit 2730b80

Please sign in to comment.