X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_lighttpd-fastcgi-non-root.t;h=80600f9554fadc730c9cb6596a305caa207d7c95;hp=db191f352a9f216e192c68f9cb42c5348f6a761e;hb=53c7cc10e26c965f7502936609c5d1e6a35dc819;hpb=4853fb50e3c7138bbe513fed2b22574a2d988ed1 diff --git a/t/optional_lighttpd-fastcgi-non-root.t b/t/optional_lighttpd-fastcgi-non-root.t index db191f3..80600f9 100644 --- a/t/optional_lighttpd-fastcgi-non-root.t +++ b/t/optional_lighttpd-fastcgi-non-root.t @@ -1,5 +1,3 @@ -#!perl - use strict; use warnings; @@ -71,7 +69,7 @@ server.bind = "127.0.0.1" server.port = $port # Work around inability to hit http://localhost/deep/path -# without a trailing slash +# without a trailing slash url.rewrite = ( "deep/path\$" => "deep/path/" ) # catalyst app specific fcgi setup @@ -92,14 +90,14 @@ fastcgi.server = ( ) END -open(my $lightconf, '>', "$docroot/lighttpd.conf") +open(my $lightconf, '>', "$docroot/lighttpd.conf") or die "Can't open $docroot/lighttpd.conf: $!"; print {$lightconf} $conf or die "Write error: $!"; close $lightconf; -my $pid = open my $lighttpd, "$lighttpd_bin -D -f $docroot/lighttpd.conf 2>&1 |" +my $pid = open my $lighttpd, "$lighttpd_bin -D -f $docroot/lighttpd.conf 2>&1 |" or die "Unable to spawn lighttpd: $!"; - + # wait for it to start while ( check_port( 'localhost', $port ) != 1 ) { diag "Waiting for server to start...";