This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
If only miniperl, no use re for you.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 2 Jul 2016 00:14:00 +0000 (20:14 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 2 Jul 2016 00:43:14 +0000 (20:43 -0400)
t/re/reg_eval_scope.t

index 2c176ef..25b90b6 100644 (file)
@@ -6,6 +6,10 @@ BEGIN {
     chdir 't' if -d 't';
     require './test.pl';
     set_up_inc(qw(lib ../lib));
+    if (is_miniperl()) {
+        eval 'require re';
+        if ($@) { skip_all("miniperl, no 're'") }
+    }
 }
 
 plan 48;