Skip to content

Commit 0766437

Browse files
committed
test: migrate member_errors to snapbox
1 parent e98f702 commit 0766437

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/testsuite/member_errors.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Tests for workspace member errors.
22
3-
#![allow(deprecated)]
4-
53
use cargo::core::resolver::ResolveError;
64
use cargo::core::{compiler::CompileMode, Shell, Workspace};
75
use cargo::ops::{self, CompileOptions};
@@ -10,6 +8,7 @@ use cargo::util::{context::GlobalContext, errors::ManifestError};
108
use cargo_test_support::install::cargo_home;
119
use cargo_test_support::project;
1210
use cargo_test_support::registry;
11+
use cargo_test_support::str;
1312

1413
/// Tests inclusion of a `ManifestError` pointing to a member manifest
1514
/// when that manifest fails to deserialize.
@@ -48,18 +47,17 @@ fn toml_deserialize_manifest_error() {
4847

4948
p.cargo("check")
5049
.with_status(101)
51-
.with_stderr(
52-
"\
50+
.with_stderr_data(str![[r#"
5351
[ERROR] invalid string
54-
expected `\"`, `'`
52+
expected `"`, `'`
5553
--> bar/Cargo.toml:8:25
5654
|
57-
8 | foobar == \"0.55\"
55+
8 | foobar == "0.55"
5856
| ^
5957
|
6058
[ERROR] failed to load manifest for dependency `bar`
61-
",
62-
)
59+
60+
"#]])
6361
.run();
6462
}
6563

0 commit comments

Comments
 (0)