Skip to content

Commit

Permalink
tests: relax bad_crate_type to only match error message prefix
Browse files Browse the repository at this point in the history
So that the cargo test isn't sensitive to suggestions for known crate
types that a rustc PR <rust-lang/rust#134720> is
trying to add.
  • Loading branch information
jieyouxu committed Dec 29, 2024
1 parent 0276088 commit 17aaafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/bad_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ fn bad_crate_type() {
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --crate-type bad_type` ([EXIT_STATUS]: 1)
--- stderr
[ERROR] unknown crate type: `bad_type`
[ERROR] unknown crate type: `bad_type`[..]
"#]])
Expand Down

0 comments on commit 17aaafd

Please sign in to comment.