Better line diagnostics - runlint's caller rather than runlint itself.
Nicholas Clark [Wed, 5 Mar 2008 11:58:58 +0000 (11:58 +0000)]
p4raw-id: //depot/perl@33442

ext/B/t/lint.t

index f62adc2..b4cbf99 100644 (file)
@@ -29,6 +29,7 @@ sub runlint ($$$;$) {
         stderr   => 1,
     );
     $res =~ s/-e syntax OK\n$//;
+    local $Level = $Level + 1;
     is( $res, $result, $testname || $opts );
 }