]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - t/58-yield-misc.t
Skip 'yield to subst context' tests on perl 5.8 and below
[perl/modules/Scope-Upper.git] / t / 58-yield-misc.t
index ca6fda079334e27586e939bab85fb4259c7c39ac..3243272da8fcd30f8383803de941d568717ca0a4 100644 (file)
@@ -121,7 +121,9 @@ sub guard { VPIT::TestHelpers::Guard->new(sub { ++$destroyed }) }
  is "@res", '1 2 3 4', 'leave with arguments';
 }
 
-{
+SKIP: {
+ skip '"eval { $str =~ s/./die q[foo]/e }" breaks havoc on perl 5.8 and below'
+                                                           => 1 if "$]" < 5.010;
  my $s = 'a';
  local $@;
  eval {