* [PATCH 2/2] t/lei-import: account for more verbose error
2023-11-15 1:04 5% [PATCH 0/2] some CentOS fixes Eric Wong
@ 2023-11-15 1:04 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-11-15 1:04 UTC (permalink / raw)
To: meta
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');
}
^ permalink raw reply related [relevance 7%]
* [PATCH 0/2] some CentOS fixes
@ 2023-11-15 1:04 5% Eric Wong
2023-11-15 1:04 7% ` [PATCH 2/2] t/lei-import: account for more verbose error Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-11-15 1:04 UTC (permalink / raw)
To: meta
Neither of these fix the t/cindex.t stuck problem Konstantin is
encountering, though...
Eric Wong (2):
lei: use -signal numbers for old Perl
t/lei-import: account for more verbose error
lib/PublicInbox/LEI.pm | 2 +-
lib/PublicInbox/LeiXSearch.pm | 2 +-
t/lei-import.t | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-11-15 1:04 5% [PATCH 0/2] some CentOS fixes Eric Wong
2023-11-15 1:04 7% ` [PATCH 2/2] t/lei-import: account for more verbose error Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).