From f73e3758610c84857f0590e7695e823a0e4103bc Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Wed, 30 Dec 2015 13:15:53 +0000 Subject: 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. --- regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/usr.sbin/syslogd/args-sendsyslog-dropped.pl') 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 => { -- cgit v1.2.3