mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

While this is noisy and hides other deprecations, I figured deprecations would make it easier for people to discover what tasks remain and allow us to divide and conquer this work rather than doing a heroic PR. In theory, this will be short lived and we'll go back to seeing deprecations in our tests.
22 lines
506 B
Rust
22 lines
506 B
Rust
//! 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(
|
|
"\
|
|
[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 [..]
|
|
",
|
|
)
|
|
.run();
|
|
}
|