From: Graham Knop Date: Mon, 27 Jul 2020 19:47:57 +0000 (+0200) Subject: fix psgi_file test without Catalyst installed X-Git-Tag: v5.90128~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=e60dd0d7930fa5ee5edc23e6548da816f400f6d5 fix psgi_file test without Catalyst installed --- diff --git a/t/aggregate/psgi_file.t b/t/aggregate/psgi_file.t index f96bf92..1f8f0c5 100644 --- a/t/aggregate/psgi_file.t +++ b/t/aggregate/psgi_file.t @@ -22,8 +22,9 @@ TestApp->psgi_app; }; close($psgi); +my @command = ($^X, '-I', "$FindBin::Bin/../lib", '-I', "$FindBin::Bin/../../lib", '-c', $path); open my $stdin, '<', File::Spec->devnull; -my $pid = open3 $stdin, my $stdout, undef, $^X, '-I', "$FindBin::Bin/../lib", '-c', $path; +my $pid = open3 $stdin, my $stdout, undef, @command; my $output = do { local $/; <$stdout> }; waitpid $pid, 0;