11b4e4993Sbluhm# The client writes a message to Sys::Syslog native method.
21b4e4993Sbluhm# The syslogd writes it into a file and through a pipe.
31b4e4993Sbluhm# The syslogd passes it via UDP to the loghost.
41b4e4993Sbluhm# The server receives the message on its UDP socket.
51b4e4993Sbluhm# Find the message in client, file, pipe, syslogd, server log.
61b4e4993Sbluhm# Check in log and ktrace that select has been used.
71b4e4993Sbluhm
81b4e4993Sbluhmuse strict;
91b4e4993Sbluhmuse warnings;
101b4e4993Sbluhm
111b4e4993Sbluhm$ENV{EVENT_NOKQUEUE} = 1;
121b4e4993Sbluhm$ENV{EVENT_NOPOLL} = 1;
131b4e4993Sbluhm$ENV{EVENT_NOSELECT} = 0;
141b4e4993Sbluhm
151b4e4993Sbluhmour %args = (
161b4e4993Sbluhm    syslogd => {
171b4e4993Sbluhm	loggrep => qr/libevent using: select/,
18*f48a84a7Sbluhm	ktrace => qr/CALL  select/,
191b4e4993Sbluhm    },
201b4e4993Sbluhm);
211b4e4993Sbluhm
221b4e4993Sbluhm1;
23