X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Fpsgi_file.t;h=1f8f0c5aa443102e410ff35002ca3bd7f818c007;hp=f96bf927df5296ec9fd3610a4a62e2c000be19b9;hb=e60dd0d7930fa5ee5edc23e6548da816f400f6d5;hpb=7991d6fc21b6827110266ea18a2e302a609190e2 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;