X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Foptional_lighttpd-fastcgi.t;fp=t%2Foptional_lighttpd-fastcgi.t;h=9e4daf1afccae39ba93f6d519fd8ef10aae44e17;hp=fefa06adca4d0e06c0719b06d706d5c4cc5da56c;hb=f3d2ec61cac867693834d3093c9dff7891e3e3f5;hpb=66dcda7ed8a56c6cdec0285aa1aab7af4c10616a diff --git a/t/optional_lighttpd-fastcgi.t b/t/optional_lighttpd-fastcgi.t index fefa06a..9e4daf1 100644 --- a/t/optional_lighttpd-fastcgi.t +++ b/t/optional_lighttpd-fastcgi.t @@ -10,6 +10,7 @@ BEGIN { use File::Path; use FindBin; use IO::Socket; +use Config (); eval "use FCGI"; plan skip_all => 'FCGI required' if $@; @@ -49,7 +50,9 @@ my $docroot = "$FindBin::Bin/../t/tmp"; my $port = 8529; # Clean up docroot path -$docroot =~ s{/t/..}{}; +$docroot =~ s{/t/\.\.}{}; + +my $perl5lib = join($Config::Config{path_sep}, "$docroot/../../lib", $ENV{PERL5LIB} || ()); my $conf = <<"END"; # basic lighttpd config file for testing fcgi+catalyst @@ -78,7 +81,7 @@ fastcgi.server = ( "max-procs" => 1, "idle-timeout" => 20, "bin-environment" => ( - "PERL5LIB" => "$docroot/../../lib" + "PERL5LIB" => "$perl5lib" ) ) )