test.pl should locally increase $Level, rather than setting it to a
Nicholas Clark [Sun, 18 Feb 2007 14:18:01 +0000 (14:18 +0000)]
hard value, so that callers of like and unlike can present diagnostics
with the line number of their own caller.

p4raw-id: //depot/perl@30344

t/test.pl

index 7b15685..5584669 100644 (file)
--- a/t/test.pl
+++ b/t/test.pl
@@ -276,7 +276,7 @@ sub like_yn ($$$@) {
        unshift(@mess, "#      got '$got'\n",
                "# expected /$expected/\n");
     }
-    local $Level = 2;
+    local $Level = $Level + 1;
     _ok($pass, _where(), $name, @mess);
 }