mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test: migrate member_errors to snapbox
This commit is contained in:
parent
e98f702d83
commit
0766437804
@ -1,7 +1,5 @@
|
||||
//! Tests for workspace member errors.
|
||||
|
||||
#![allow(deprecated)]
|
||||
|
||||
use cargo::core::resolver::ResolveError;
|
||||
use cargo::core::{compiler::CompileMode, Shell, Workspace};
|
||||
use cargo::ops::{self, CompileOptions};
|
||||
@ -10,6 +8,7 @@ use cargo::util::{context::GlobalContext, errors::ManifestError};
|
||||
use cargo_test_support::install::cargo_home;
|
||||
use cargo_test_support::project;
|
||||
use cargo_test_support::registry;
|
||||
use cargo_test_support::str;
|
||||
|
||||
/// Tests inclusion of a `ManifestError` pointing to a member manifest
|
||||
/// when that manifest fails to deserialize.
|
||||
@ -48,18 +47,17 @@ fn toml_deserialize_manifest_error() {
|
||||
|
||||
p.cargo("check")
|
||||
.with_status(101)
|
||||
.with_stderr(
|
||||
"\
|
||||
.with_stderr_data(str![[r#"
|
||||
[ERROR] invalid string
|
||||
expected `\"`, `'`
|
||||
expected `"`, `'`
|
||||
--> bar/Cargo.toml:8:25
|
||||
|
|
||||
8 | foobar == \"0.55\"
|
||||
8 | foobar == "0.55"
|
||||
| ^
|
||||
|
|
||||
[ERROR] failed to load manifest for dependency `bar`
|
||||
",
|
||||
)
|
||||
|
||||
"#]])
|
||||
.run();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user