X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F21.core-back-compat.t;h=7a01447f00679201d684ae24e04a1ba38fa825c0;hb=1474b8d3db6aeb45b37592dc823c468a5b3f3c73;hp=e5885a6aad0614deba52c6f7129355d06ca3265f;hpb=b3e71e62419c3530e8ff1de212ab5e139f056f8f;p=gitmo%2FMooseX-Daemonize.git diff --git a/t/21.core-back-compat.t b/t/21.core-back-compat.t index e5885a6..7a01447 100644 --- a/t/21.core-back-compat.t +++ b/t/21.core-back-compat.t @@ -88,7 +88,14 @@ if (DEBUG) { } kill INT => $p->pid; diag "killed $pid" if DEBUG; -sleep(2); + +# give the process time to be killed on slow/loaded systems +for (1..10) { + last unless kill 0 => $pid; + # sleep a little before retrying + sleep(2); +} + if (DEBUG) { diag `ps $pid`; diag "-------";