From 2730b80751193010beb72e5f82f3f4ecdbdb950d Mon Sep 17 00:00:00 2001 From: Antonio Gomes Date: Sat, 31 Aug 2024 09:44:09 -0300 Subject: [PATCH] Update tests to contain location information for patch error messages Signed-off-by: Antonio Gomes --- tests/testsuite/patch.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testsuite/patch.rs b/tests/testsuite/patch.rs index 67e795a53765..0dabd7b23f58 100644 --- a/tests/testsuite/patch.rs +++ b/tests/testsuite/patch.rs @@ -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 @@ -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 @@ -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 @@ -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 @@ -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