From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <e@80x24.org>
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net
X-Spam-Level: 
X-Spam-ASN:  
X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
	T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no
	version=3.4.6
Received: from localhost (dcvr.yhbt.net [127.0.0.1])
	by dcvr.yhbt.net (Postfix) with ESMTP id 8AFA41F461
	for <meta@public-inbox.org>; Wed, 15 Nov 2023 01:04:58 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org;
	s=selector1; t=1700010298;
	bh=S69+sY7nhCiJ31aKcPuWSN8qIkbhL/wBqafJHrYWs/k=;
	h=From:To:Subject:Date:In-Reply-To:References:From;
	b=PEzxypWvmBd7bK14QXFVF/dXgH/jlRIX9eWz71XbSsXA3xK6ak/FkWstwNtxRHUxN
	 hXKdfdBvHoZO4aC/9JirTxNUBLa7/P1/BFqm0rDv67xzVANUR7O8XSRub4mKUk00Nr
	 31eNK0BHr92/3weKke90qUa+ihUCjp5uA8EQelDI=
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 2/2] t/lei-import: account for more verbose error
Date: Wed, 15 Nov 2023 01:04:57 +0000
Message-Id: <20231115010457.1047199-3-e@80x24.org>
In-Reply-To: <20231115010457.1047199-1-e@80x24.org>
References: <20231115010457.1047199-1-e@80x24.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
List-Id: <meta.public-inbox.org>

Perl 5.16.3 on CentOS seems more verbose in one of the EIO
tests.  Relax the regexp so we can account for extra errors
reported by Perl.
---
 t/lei-import.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/lei-import.t b/t/lei-import.t
index bd562617..b4446b56 100644
--- a/t/lei-import.t
+++ b/t/lei-import.t
@@ -172,12 +172,12 @@ SKIP: {
 	tick; # wait for strace to attach
 	ok(!lei(qw(import -F eml t/plack-qp.eml)),
 		'-F eml import fails on pathname error injection');
-	like($lei_err, qr!error reading t/plack-qp\.eml: Input/output error!,
+	like($lei_err, qr!error reading t/plack-qp\.eml: .*Input/output error!,
 		'EIO noted in stderr');
 	open $fh, '<', 't/plack-qp.eml';
 	ok(!lei(qw(import -F eml -), undef, { %$lei_opt, 0 => $fh }),
 		'-F eml import fails on stdin error injection');
-	like($lei_err, qr!error reading .*?: Input/output error!,
+	like($lei_err, qr!error reading .*?: .*Input/output error!,
 		'EIO noted in stderr');
 }