Apache-Logmonster
view release on metacpan or search on metacpan
t/Utility.t view on Meta::CPAN
or $log->dump_audit();
# will fail because the file is a directory
ok( !$util->check_pidfile( $tmp, fatal => 0,debug=>0 ), 'check_pidfile' )
or $log->dump_audit();
# proper invocation
ok( $util->check_pidfile( "${rwtest}.pid", fatal => 0 ), 'check_pidfile')
or $log->error();
# verify the contents of the file contains our PID
my ($pid) = $util->file_read( "${rwtest}.pid", fatal => 0 );
ok( $PROCESS_ID == $pid, 'check_pidfile' );
# regext_test
ok( $util->regexp_test(
exp => 'toast',
string => 'mailtoaster rocks',
debug => 0,
),
'regexp_test'
( run in 0.414 second using v1.01-cache-2.11-cpan-5467b0d2c73 )