Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Hash-Normalize.git] / t / lib / VPIT / TestHelpers.pm
index 10550ee..f47bee1 100644 (file)
@@ -97,7 +97,9 @@ my $test_sub = sub {
  }
 
  my $glob = $stash->{$sub};
- return $glob ? *$glob{CODE} : undef;
+ return ref \$glob eq 'GLOB' ? *$glob{CODE}
+      : ref  $glob eq 'CODE' ?  $glob
+      :                          undef;
 };
 
 sub skip { $test_sub->('skip')->(@_) }