From fb8f3148f59cffcb739ee478ec8fe2c69d4ef9a0 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Wed, 24 Aug 2011 11:26:18 -0600 Subject: [PATCH] The last Daemon.t stabilizer? --- t/lib/Daemon.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/lib/Daemon.t b/t/lib/Daemon.t index 61350069..a2798681 100644 --- a/t/lib/Daemon.t +++ b/t/lib/Daemon.t @@ -34,6 +34,8 @@ my $ret_val = system("$cmd 2 --daemonize --pid $pid_file"); die 'Cannot test Daemon.pm because t/daemonizes.pl is not working' unless $ret_val == 0; +PerconaTest::wait_for_files($pid_file); + my $output = `ps wx | grep '$cmd 2' | grep -v grep`; like($output, qr/$cmd/, 'Daemonizes'); ok(-f $pid_file, 'Creates PID file');