X-Git-Url: http://git.shiar.nl/perl/plp/.git/blobdiff_plain/c02d469e2646a669ed7d14588b828abfc9dbe40e..0f7b5b7aeb4d224aa1de019d5c8815669f5b0dec:/t/50-cgi.t diff --git a/t/50-cgi.t b/t/50-cgi.t index 09ebd0b..ed39da5 100644 --- a/t/50-cgi.t +++ b/t/50-cgi.t @@ -1,7 +1,6 @@ use strict; use warnings; -use Cwd; use File::Basename qw( dirname ); use File::Spec; use Test::More tests => 25; @@ -13,7 +12,6 @@ $PLP::use_cache = 0 if $PLP::use_cache; chdir File::Spec->catdir(dirname($0), '50-cgi') or BAIL_OUT('cannot change to test directory ./50-cgi/'); -my $ORGDIR = '.'; # Cwd::getcwd(); # 0*: permission checks using generated dummy files SKIP: @@ -47,7 +45,7 @@ plp_ok($_) for glob '[12]*.html'; SKIP: { my @inctests = glob '3*.html'; - my $INCFILE = File::Spec->rel2abs("$ORGDIR/missinginclude"); + my $INCFILE = File::Spec->rel2abs("./missinginclude"); if (open my $dummy, "<", $INCFILE) { # like PLP::source will fail("file missinginclude shouldn't exist"); skip("missinginclude tests (3*)", @inctests - 1); @@ -80,7 +78,7 @@ plp_ok($_, -env => { GATEWAY_INTERFACE => 'CGI/1.1', SCRIPT_NAME => "/$_", #XXX: .plp? - SCRIPT_FILENAME => "$ORGDIR/$_", + SCRIPT_FILENAME => "./$_", PATH_INFO => '/test/123', PATH_TRANSLATED => undef, DOCUMENT_ROOT => undef,