From e99b3964d659c3718110047b10caae453a4aa1d0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 5 Jun 2008 00:06:51 +0000 Subject: [PATCH] compact output in warnings test --- t/50-cgi.t | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/t/50-cgi.t b/t/50-cgi.t index bf60143..fec88e3 100644 --- a/t/50-cgi.t +++ b/t/50-cgi.t @@ -120,32 +120,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 -- 2.30.0