diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-09-02 17:43:30 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2014-09-02 17:43:30 +0000 |
commit | 4552e977dde89ae0a314c36e7ad16f73d4b67107 (patch) | |
tree | 76e3367d3ed7ee0a56f897cd087cee2bd226d2d8 /regress/usr.sbin/syslogd/args-sighup-config.pl | |
parent | 5b2a45069ddcae89c762de426e50fd4438b8de9d (diff) |
To examine the operation of the signal handlers, the tests grep in
the ktrace output of syslogd. Also make the tests work without DNS
and without sudo.
Diffstat (limited to 'regress/usr.sbin/syslogd/args-sighup-config.pl')
-rw-r--r-- | regress/usr.sbin/syslogd/args-sighup-config.pl | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/regress/usr.sbin/syslogd/args-sighup-config.pl b/regress/usr.sbin/syslogd/args-sighup-config.pl index 4dd4723c3e6..9098824bc49 100644 --- a/regress/usr.sbin/syslogd/args-sighup-config.pl +++ b/regress/usr.sbin/syslogd/args-sighup-config.pl @@ -20,6 +20,11 @@ our %args = ( loggrep => { get_between2loggrep() }, }, syslogd => { + ktrace => 1, + kdump => { + qr/syslogd PSIG SIGHUP caught handler/ => 1, + qr/syslogd RET execve 0/ => 2, + }, loggrep => { qr/config file modified: restarting/ => 1, qr/config file changed: dying/ => 1, @@ -44,15 +49,6 @@ our %args = ( }, loggrep => { get_between2loggrep() }, }, - check => sub { - my $self = shift; - my $r = $self->{syslogd}; - foreach my $name (qw(file pipe)) { - my $file = $r->{"out$name"}.".0"; - my $pattern = (get_between2loggrep())[0]; - check_pattern($name, $file, $pattern, \&filegrep); - } - }, ); 1; |