Skip to content

Commit

Permalink
test: migrate error to snapbox
Browse files Browse the repository at this point in the history
  • Loading branch information
heisen-li committed Jul 1, 2024
1 parent 50e1e53 commit cb219d1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/testsuite/error.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
//! General error tests that don't belong anywhere else.
#![allow(deprecated)]

use cargo_test_support::cargo_process;

#[cargo_test]
fn internal_error() {
cargo_process("init")
.env("__CARGO_TEST_INTERNAL_ERROR", "1")
.with_status(101)
.with_stderr(
.with_stderr_data(format!(
"\
[ERROR] internal error test
[NOTE] this is an unexpected cargo internal error
[NOTE] we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
[NOTE] cargo [..]
[NOTE] cargo {}
",
)
cargo::version()
))
.run();
}

0 comments on commit cb219d1

Please sign in to comment.