This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Now that pat_{advanced,rt_report}.t use test.pl, use skip_all_if_miniperl().
authorNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 15:23:42 +0000 (15:23 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 20:26:11 +0000 (20:26 +0000)
Neither can run during minitest as miniperl can't load support code for %+ and
%-. If your build is so unwell that it's fallen back to minitest, your problems
are bigger than "advanced" regular expression features not working.

t/re/pat_advanced.t
t/re/pat_rt_report.t

index 4e8a0af..3e7390d 100644 (file)
@@ -15,13 +15,10 @@ $| = 1;
 
 
 BEGIN {
-    if (!defined &DynaLoader::boot_DynaLoader) {
-       print "1..0 # Skip miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-\n";
-       exit 0;
-    }
     chdir 't' if -d 't';
     @INC = ('../lib','.');
     require './test.pl';
+    skip_all_if_miniperl("miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-");
 }
 
 run_tests() unless caller;
index 5354b99..ea4e6bc 100644 (file)
@@ -15,13 +15,10 @@ $| = 1;
 
 
 BEGIN {
-    if (!defined &DynaLoader::boot_DynaLoader) {
-       print "1..0 # Skip miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-\n";
-       exit 0;
-    }
     chdir 't' if -d 't';
     @INC = ('../lib','.');
     require './test.pl';
+    skip_all_if_miniperl("miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-");
 }