diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-12-30 13:15:53 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-12-30 13:15:53 +0000 |
commit | f73e3758610c84857f0590e7695e823a0e4103bc (patch) | |
tree | 8279aff56fd875d75d1c20fca9cea4d3c1984f5a /regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl | |
parent | 40c872ba8b50d97cd89d6e637a95cf1895ccbdce (diff) |
Test logging to console by redirecting the system's console into a
file. All subtests get an additional /dev/console entry in
syslog.conf, then check that messages appear in the console file.
Add a test that stops syslogd, calls sendsyslog2() with LOG_CONS
and checks that the message appears in the console file.
Diffstat (limited to 'regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl')
-rw-r--r-- | regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl b/regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl index 754bad0bd88..cf5c0d669a4 100644 --- a/regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl +++ b/regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl @@ -22,8 +22,8 @@ our %args = ( or die "syslogd started not in syslogd.log"; })}, ktrace => { - qr/CALL sendsyslog/ => '>=2', - qr/RET sendsyslog -1 errno $errno / => '>=1', + qr/CALL sendsyslog2\(/ => '>=2', + qr/RET sendsyslog2 -1 errno $errno / => '>=1', }, }, syslogd => { |