blob: 803d227cc65ff93cc7c450cdd73ae88e6c44911b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# The client writes a message to Sys::Syslog native method.
# The syslogd writes it into a file and through a pipe.
# The syslogd does not pass it via a too long host name.
# Find the message in client, file, pipe, syslogd log.
# Check that the syslogd logs the error.
use strict;
use warnings;
our %args = (
syslogd => {
loghost => '@'.('X'x256).':514',
loggrep => {
qr/syslogd\[\d+\]: host too long "\@X+/ => 1,
get_testgrep() => 1,
},
},
server => {
noserver => 1,
},
);
1;
|