summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-server-tcp-close.pl
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-05-22 15:01:17 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-05-22 15:01:17 +0000
commit024d0751e9b1fcc40a90e2fc57ca424babeb5ee9 (patch)
tree6b5d8a207143fc7c41237e5d8a4bcc770045bd46 /regress/usr.sbin/syslogd/args-server-tcp-close.pl
parentecdc03979598bf9cb38b3576ff9f7ce6812c4a23 (diff)
In the sendsyslog-dropped test the client has to write a log message
before syslogd is running. To fix a race in regress, delay the syslogd startup until the message has been written. For debugging add the process class to all die messages.
Diffstat (limited to 'regress/usr.sbin/syslogd/args-server-tcp-close.pl')
-rw-r--r--regress/usr.sbin/syslogd/args-server-tcp-close.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.sbin/syslogd/args-server-tcp-close.pl b/regress/usr.sbin/syslogd/args-server-tcp-close.pl
index 8f5ca5f9ec6..34bca243232 100644
--- a/regress/usr.sbin/syslogd/args-server-tcp-close.pl
+++ b/regress/usr.sbin/syslogd/args-server-tcp-close.pl
@@ -15,7 +15,7 @@ our %args = (
func => sub {
my $self = shift;
${$self->{syslogd}}->loggrep("loghost .* connection close", 5)
- or die "no connection close in syslogd.log";
+ or die ref($self), " no connection close in syslogd.log";
write_log($self);
},
},
@@ -32,9 +32,9 @@ our %args = (
func => sub {
my $self = shift;
shutdown(\*STDOUT, 1)
- or die "shutdown write failed: $!";
+ or die ref($self), " shutdown write failed: $!";
${$self->{syslogd}}->loggrep("loghost .* connection close", 5)
- or die "no connection close in syslogd.log";
+ or die ref($self), " no connection close in syslogd.log";
},
loggrep => {},
},