git.shiar.nl
/
perl
/
plp
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolve test directory
[perl/plp/.git]
/
t
/
50-cgi.t
diff --git
a/t/50-cgi.t
b/t/50-cgi.t
index bf60143f59edf38044528cefba344d8e80e27522..d30bff2411fb5128561bff228e0a6d619a654e1d 100644
(file)
--- a/
t/50-cgi.t
+++ b/
t/50-cgi.t
@@
-1,6
+1,7
@@
use strict;
use warnings;
use strict;
use warnings;
+use Cwd;
use File::Spec;
use Test::More;
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)
$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");
-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/, <<TEST, 2);
my $INCWARN = qq{Can't open "$INCFILE" ($!)};
plp_is('warnings', split /\n\n/, <<TEST, 2);
-1
-<: use warnings :>
-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
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
1
-
2
2
+3warning at $testfile line 3.
-3
-warning at $testfile line 6.
-
-4
-<table border=1 class="PLPerror"><tr><td><b>Debug information:</b><br>$INCWARN at $testfile line 8.
+4<table border=1 class="PLPerror"><tr><td><b>Debug information:</b><br>$INCWARN at $testfile line 4.
</td></tr></table>
</td></tr></table>
-5
-<table border=1 class="PLPerror"><tr><td><b>Debug information:</b><br>$INCWARN at $testfile line 10.
+5<table border=1 class="PLPerror"><tr><td><b>Debug information:</b><br>$INCWARN at $testfile line 5.
</td></tr></table>
TEST
</td></tr></table>
TEST