]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/05-words.t
Invalidate the method cache when localizing subroutines
[perl/modules/Scope-Upper.git] / t / 05-words.t
index 2405d6ba47d54b1fc2ee6e5540bd1a2f47b2b95f..1141a582821f84c8d187ea20e61d05774287504a 100644 (file)
@@ -3,10 +3,21 @@
 use strict;
 use warnings;
 
-use Test::More tests => 29 + 13 * 2;
+use Test::More;
+
+BEGIN {
+ if ($^P) {
+  plan skip_all => 'hardcoded values are wrong under the debugger';
+ } else {
+  plan tests    => 29 + 13 * 2;
+ }
+}
 
 use Scope::Upper qw/:words/;
 
+# This test is for internal use only and doesn't imply any kind of future
+# compatibility on what the words should actually return.
+
 is HERE, 0, 'main : here';
 is TOP,  0, 'main : top';
 is UP,   0, 'main : up';