Skip to content

Commit e2946ab

Browse files
committed
test(install): relax compiler panic assertions
1 parent d6ebb14 commit e2946ab

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/testsuite/install.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ fn do_not_rebuilds_on_local_install() {
13141314
#[cargo_test]
13151315
fn reports_unsuccessful_subcommand_result() {
13161316
Package::new("cargo-fail", "1.0.0")
1317-
.file("src/main.rs", "fn main() { panic!(); }")
1317+
.file("src/main.rs", r#"fn main() { panic!("EXPLICIT PANIC!"); }"#)
13181318
.publish();
13191319
cargo_process("install cargo-fail").run();
13201320
cargo_process("--list")
@@ -1326,13 +1326,7 @@ fn reports_unsuccessful_subcommand_result() {
13261326
.run();
13271327
cargo_process("fail")
13281328
.with_status(101)
1329-
.with_stderr_data(str![[r#"
1330-
...
1331-
thread 'main' panicked at [ROOT]/home/.cargo/registry/src/-[HASH]/cargo-fail-1.0.0/src/main.rs:1:13:
1332-
explicit panic
1333-
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1334-
1335-
"#]])
1329+
.with_stderr_data("...\n[..]EXPLICIT PANIC![..]\n...")
13361330
.run();
13371331
}
13381332

0 commit comments

Comments
 (0)