1# The syslogd has a non existing log file in its config. 2# The client writes a message to Sys::Syslog native method. 3# The syslogd writes it into a file and through a pipe and to tty. 4# The syslogd passes it via UDP to the loghost. 5# The server receives the message on its UDP socket. 6# Find the message in client, file, pipe, console, user, syslogd, server log. 7# Check that the error message during config read is in the console log. 8 9use strict; 10use warnings; 11 12our %args = ( 13 syslogd => { 14 conf => "*.*\t\$objdir/file-noexist.log\n", 15 loggrep => { 16 qr{syslogd\[\d+\]: priv_open_log ".*/file-noexist.log": }. 17 qr{No such file or directory} => 1, 18 }, 19 }, 20 console => { 21 loggrep => { 22 qr{".*/file-noexist.log": No such file or directory} => 1, 23 get_testgrep() => 1, 24 }, 25 }, 26 file => { 27 loggrep => { 28 qr{".*/file-noexist.log": No such file or directory} => 0, 29 get_testgrep() => 1, 30 }, 31 }, 32); 33 341; 35