From: bluhm Date: Tue, 12 Oct 2021 22:44:48 +0000 (+0000) Subject: Relax test regex, read or write error is possible. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9fe0079a19345fe8207f172a515de8af52081d3e;p=openbsd Relax test regex, read or write error is possible. --- 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, }, }, );