X-Git-Url: http://git.shiar.net/perl/plp/.git/blobdiff_plain/58ad0f73721365480cd2c2bc844af04146ba1941..b6ecc856f9ee83de1465613f74e6eb585d38cf21:/t/50-cgi.t diff --git a/t/50-cgi.t b/t/50-cgi.t index bf60143..d30bff2 100644 --- a/t/50-cgi.t +++ b/t/50-cgi.t @@ -1,6 +1,7 @@ use strict; use warnings; +use Cwd; use File::Spec; use Test::More; @@ -14,7 +15,7 @@ require_ok('PLP::Backend::CGI') or BAIL_OUT(); $PLP::use_cache = 0 if $PLP::use_cache; #TODO: caching on (change file names) -my $base = File::Spec->tmpdir || File::Spec->curdir; +my $base = Cwd::abs_path(File::Spec->tmpdir || File::Spec->curdir); -w $base or BAIL_OUT("$base not writable"); my $testfile = 'testfile.plp'; not -f "$base/$testfile" or BAIL_OUT("$testfile exists"); @@ -120,32 +121,22 @@ if (open my $dummy, "<", $INCFILE) { # like PLP::source will my $INCWARN = qq{Can't open "$INCFILE" ($!)}; plp_is('warnings', split /\n\n/, < -2 -<: 42 :> -3 -<: warn "warning" :> -4 -<: include "missinginclude" :> -5 -<(missinginclude)> +1<: use warnings :> +2<: 42 :> +3<: warn "warning" :> +4<: include "missinginclude" :> +5<(missinginclude)> 6 $HEAD -Useless use of a constant in void context at $testfile line 4. +Useless use of a constant in void context at $testfile line 2. 1 - 2 +3warning at $testfile line 3. -3 -warning at $testfile line 6. - -4 -
Debug information:
$INCWARN at $testfile line 8. +4
Debug information:
$INCWARN at $testfile line 4.
-5 -
Debug information:
$INCWARN at $testfile line 10. +5
Debug information:
$INCWARN at $testfile line 5.
TEST