Subject: | Use Config to find perl to run in FCGI/Engine/Manager/Server.pm |
Hello and thanks for FCGI::Engine,
I had to make a few changes to get tests to pass, here they are:
FCGI-Engine-0.18/lib/FCGI/Engine/Manager/Server.pm
65c65,69
< return ("perl",
---
Show quoted text
> use Config;
> my $perl = $Config{perlpath};
> $perl .= $Config{_exe} if $^O ne 'VMS' and $perl !~
/$Config{_exe}$/i;
Show quoted text>
> return ($perl,
FCGI-Engine-0.18/t/023_manager_w_plackup.t
21a22,33
Show quoted text> eval
> {
> require File::Which;
> File::Which->import();
> };
> my $plackup_which = 1;
> if(! $@){
> $plackup_which = File::Which::which('plackup');
> } else {
> $plackup_which = `which plackup`;
> }
> plan skip_all => "plackup must be available and executable for
this test" if(! $plackup_which);
FCGI-Engine-0.18/t/101_plack_server_fcgi_engine_client.t
12,13c12,13
< eval "use Plack; use FCGI::Client;";
< plan skip_all => "Plack and FCGI::Client are required for this
test" if $@;
---
Show quoted text> eval "use Plack; use FCGI::Client; use
Plack::App::FCGIDispatcher; ";
Show quoted text> plan skip_all => "Plack, FCGI::Client and
Plack::App::FCGIDispatcher are required for this test" if $@;
FCGI-Engine-0.18/Makefile.PL
36a37
Show quoted text> build_requires 'Plack::App::FCGIDispatcher';
As you probably tell my build/test environment is slightly unusual in
terms of what $PATH contains (or does not).
Hope this is of some use to you.