]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/lei-import: account for more verbose error
authorEric Wong <e@80x24.org>
Wed, 15 Nov 2023 01:04:57 +0000 (01:04 +0000)
committerEric Wong <e@80x24.org>
Wed, 15 Nov 2023 04:25:01 +0000 (04:25 +0000)
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

index bd5626170eeb25c61b2444ab3c8f4d7621a9c74b..b4446b566a0cd72a684352e8e62cf757e4184f29 100644 (file)
@@ -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');
 }