From 17aaafd92fe5e471f5210b3b75534ed23fddfed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= <39484203+jieyouxu@users.noreply.github.com> Date: Mon, 30 Dec 2024 04:16:02 +0800 Subject: [PATCH] tests: relax `bad_crate_type` to only match error message prefix So that the cargo test isn't sensitive to suggestions for known crate types that a rustc PR is trying to add. --- tests/testsuite/bad_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/bad_config.rs b/tests/testsuite/bad_config.rs index bf1b0da2a34..0fb00f8e8fa 100644 --- a/tests/testsuite/bad_config.rs +++ b/tests/testsuite/bad_config.rs @@ -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`[..] "#]])