]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/30-scope.t
Turn on CvCLONE for all anonymous subs passed as hooks
[perl/modules/indirect.git] / t / 30-scope.t
index fffaad9f5b8d7e17d30ff14fe20c595d5a9ff740..2b937f78fc63882e8df604ecef21626e1a0569d6 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 my $tests;
 BEGIN { $tests = 18 }
 
-use Test::More tests => 1 + $tests + 1 + 2 + 3 + 5;
+use Test::More tests => 1 + $tests + 1 + 2 + 3 + 5 + 1;
 
 use lib 't/lib';
 
@@ -104,6 +104,16 @@ sub expect {
  is_deeply \@w, [ ],           'second require test doesn\'t have more errors';
 }
 
+{
+ eval <<' SNIP';
+  return;
+  no indirect ':fatal';
+  use indirect::Test1::il1 ();
+  use indirect::Test1::il2 ();
+ SNIP
+ is $@, '', 'RT #47902';
+}
+
 __DATA__
 my $a = new P1;