Browse Source

do a long wait if the lighttpd isn't starting up fast enough

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@647 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2 lighttpd-1.4.2
Jan Kneschke 17 years ago
parent
commit
b14d500a9e
  1. 8
      tests/LightyTest.pm

8
tests/LightyTest.pm

@ -84,14 +84,14 @@ sub start_proc {
unlink($self->{LIGHTTPD_PIDFILE});
if (1) {
system($self->{LIGHTTPD_PATH}." -f ".$self->{TESTDIR}."/tmp/cfg.file -m ".$self->{BASEDIR}."/src/.libs");
select(undef, undef, undef, 0.1);
} else {
system("valgrind --tool=memcheck --show-reachable=yes --leak-check=yes --logfile=foo ".$self->{LIGHTTPD_PATH}." -D -f ".$self->{TESTDIR}."/tmp/cfg.file -m ".$self->{BASEDIR}."/src/.libs &");
select(undef, undef, undef, 2);
}
# sleep(1);
select(undef, undef, undef, 0.1);
if (not -e $self->{LIGHTTPD_PIDFILE} or 0 == kill 0, `cat $self->{LIGHTTPD_PIDFILE}`) {
select(undef, undef, undef, 2);
}
unlink($self->{TESTDIR}."/tmp/cfg.file");

Loading…
Cancel
Save