This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Eliminate t/re/ReTest.pl. require './test.pl' directly in its 3 (former) users.
authorNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 15:13:17 +0000 (15:13 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 20:26:11 +0000 (20:26 +0000)
MANIFEST
t/re/ReTest.pl [deleted file]
t/re/pat.t
t/re/pat_advanced.t
t/re/pat_rt_report.t

index ca45bc3..5e114a1 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -5051,7 +5051,6 @@ t/re/reg_pmod.t                   See if regexp /p modifier works as expected
 t/re/reg_posixcc.t             See if posix character classes behave consistently
 t/re/reg_unsafe.t              Check for unsafe match vars
 t/re/re.t                      See if exportable 're' funcs in universal.c work
-t/re/ReTest.pl                 Test utilities for the t/re/pat*.t tests (used by do)
 t/re/re_tests                  Regular expressions for regexp.t
 t/re/rxcode.t                  See if /(?{ code })/ works
 t/re/subst_amp.t               See if $&-related substitution works
diff --git a/t/re/ReTest.pl b/t/re/ReTest.pl
deleted file mode 100644 (file)
index 5f1e6f3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!./perl
-#
-# This is the test subs used for regex testing. 
-# This used to be part of re/pat.t
-use warnings;
-use strict;
-use 5.010;
-use base qw/Exporter/;
-use Carp;
-
-$| = 1;
-
-require './test.pl';
-
-1;
index 716e4fa..e453327 100644 (file)
@@ -18,7 +18,7 @@ $| = 1;
 BEGIN {
     chdir 't' if -d 't';
     @INC = ('../lib','.');
-    do "re/ReTest.pl" or die $@;
+    require './test.pl';
 }
 
 plan tests => 455;  # Update this when adding/deleting tests.
index 0cd93a2..4e8a0af 100644 (file)
@@ -21,7 +21,7 @@ BEGIN {
     }
     chdir 't' if -d 't';
     @INC = ('../lib','.');
-    do "re/ReTest.pl" or die $@;
+    require './test.pl';
 }
 
 run_tests() unless caller;
index 18005e6..5354b99 100644 (file)
@@ -21,7 +21,7 @@ BEGIN {
     }
     chdir 't' if -d 't';
     @INC = ('../lib','.');
-    do "re/ReTest.pl" or die $@;
+    require './test.pl';
 }