summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-client-unix.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.sbin/syslogd/args-client-unix.pl')
-rw-r--r--regress/usr.sbin/syslogd/args-client-unix.pl14
1 files changed, 12 insertions, 2 deletions
diff --git a/regress/usr.sbin/syslogd/args-client-unix.pl b/regress/usr.sbin/syslogd/args-client-unix.pl
index 142b59ccb5a..8327112965f 100644
--- a/regress/usr.sbin/syslogd/args-client-unix.pl
+++ b/regress/usr.sbin/syslogd/args-client-unix.pl
@@ -9,14 +9,24 @@ use strict;
use warnings;
use Sys::Hostname;
-(my $host = hostname()) =~ s/\..*//; # short name
+(my $host = hostname()) =~ s/\..*//;
our %args = (
client => {
logsock => { type => "unix" },
},
+ syslogd => {
+ loggrep => get_testlog(),
+ },
+ server => {
+ loggrep => get_testlog(),
+ },
+ pipe => {
+ loggrep => get_testlog(),
+ },
file => {
- loggrep => qr/ $host syslogd-regress\[\d+\]: /. get_testlog(),
+ # Sys::Syslog unix is broken, it appends a \n\0.
+ loggrep => qr/ $host syslogd-regress\[\d+\]: /.get_testlog().qr/ $/,
},
);