Skip to content

Commit cb219d1

Browse files
committed
test: migrate error to snapbox
1 parent 50e1e53 commit cb219d1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/testsuite/error.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
//! General error tests that don't belong anywhere else.
22
3-
#![allow(deprecated)]
4-
53
use cargo_test_support::cargo_process;
64

75
#[cargo_test]
86
fn internal_error() {
97
cargo_process("init")
108
.env("__CARGO_TEST_INTERNAL_ERROR", "1")
119
.with_status(101)
12-
.with_stderr(
10+
.with_stderr_data(format!(
1311
"\
1412
[ERROR] internal error test
1513
[NOTE] this is an unexpected cargo internal error
1614
[NOTE] we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
17-
[NOTE] cargo [..]
15+
[NOTE] cargo {}
1816
",
19-
)
17+
cargo::version()
18+
))
2019
.run();
2120
}

0 commit comments

Comments
 (0)