]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/05-words.t
Threads tests may not be able to spawn all the threads
[perl/modules/Scope-Upper.git] / t / 05-words.t
index 1598e46fd2b57dd31e507ad7057e24858e810f9b..bcb3ac9bcc806e5b986df0706cef95818c3e5f27 100644 (file)
@@ -3,13 +3,20 @@
 use strict;
 use warnings;
 
-use Test::More tests => 29 + 13 * 2;
+use Test::More;
 
-use Scope::Upper qw/:words/;
+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.
-# It is expected to fail when ran under the debugger.
 
 is HERE, 0, 'main : here';
 is TOP,  0, 'main : top';