xref: /openbsd-src/regress/usr.sbin/syslogd/args-libevent-select.pl (revision f48a84a70c8ced255fc68039eca171a1ec9c86b2)
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# Check in log and ktrace that select has been used.
7
8use strict;
9use warnings;
10
11$ENV{EVENT_NOKQUEUE} = 1;
12$ENV{EVENT_NOPOLL} = 1;
13$ENV{EVENT_NOSELECT} = 0;
14
15our %args = (
16    syslogd => {
17	loggrep => qr/libevent using: select/,
18	ktrace => qr/CALL  select/,
19    },
20);
21
221;
23