summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-02-18 14:18:01 +0000
committerNicholas Clark <nick@ccl4.org>2007-02-18 14:18:01 +0000
commit5693d826577600a198e0f93a41f0ca319f85a889 (patch)
treecbd9e1667d9c841ccdb3d7ade6c80f4e3bf7fa5f /t
parentb8df70f45ca97dc1aea9a3654d73acda2dcba123 (diff)
downloadperl-5693d826577600a198e0f93a41f0ca319f85a889.tar.gz
test.pl should locally increase $Level, rather than setting it to a
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
Diffstat (limited to 't')
-rw-r--r--t/test.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index 7b1568523a..558466967b 100644
--- 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);
}