From 9fe0079a19345fe8207f172a515de8af52081d3e Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 12 Oct 2021 22:44:48 +0000 Subject: [PATCH] Relax test regex, read or write error is possible. --- regress/usr.sbin/syslogd/args-server-tls-error.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.sbin/syslogd/args-server-tls-error.pl b/regress/usr.sbin/syslogd/args-server-tls-error.pl index dea75ea5fe5..dad75a53dd7 100644 --- a/regress/usr.sbin/syslogd/args-server-tls-error.pl +++ b/regress/usr.sbin/syslogd/args-server-tls-error.pl @@ -11,7 +11,7 @@ use warnings; use Socket; use Errno ':POSIX'; -my @errors = (ECONNRESET); +my @errors = (ECONNRESET, EPIPE); my $errors = "(". join("|", map { $! = $_ } @errors). ")"; our %args = ( @@ -43,7 +43,7 @@ our %args = ( file => { loggrep => { qr/syslogd\[\d+\]: loghost .* connection error: /. - qr/read failed: .*$errors/ => 1, + qr/(?:read|write) failed: .*$errors/ => 1, }, }, ); -- 2.20.1