xref: /openbsd-src/regress/usr.sbin/syslogd/args-sendsyslog-native.pl (revision 8a6a3d0f3a751972357af7b2ffab335ca027be79)
1# The client writes a message to Sys::Syslog native method.
2# The syslogd writes it into a file and through a pipe.
3# The syslogd passes it via UDP to the loghost.
4# The server receives the message on its UDP socket.
5# Find the message in client, file, pipe, syslogd, server log.
6# Create a ktrace dump of the client and check that sendsyslog(2)
7# has been used.
8
9use strict;
10use warnings;
11
12our %args = (
13    client => {
14	ktrace => {
15	    qr/CALL  sendsyslog\(/ => 2,
16	    qr/GIO   fd -1 wrote \d+ bytes/ => 2,
17	    qr/RET   sendsyslog 0/ => 2,
18	},
19    },
20);
21
221;
23