summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPaul Marquess <Paul.Marquess@ntlworld.com>2009-06-09 22:26:21 -0500
committerSteve Peters <steve@fisharerojo.org>2009-06-09 22:26:21 -0500
commitaf6a0f9e3d4aacb66f6fd0d20aa527ab7d9a9032 (patch)
treed44211c1a4fe86848cf841030c3e410f0c42bf83 /ext
parentdfed8d37710c8ee747a9c1375201396b85ccaed2 (diff)
downloadperl-af6a0f9e3d4aacb66f6fd0d20aa527ab7d9a9032.tar.gz
[PATCH] Filter-Util-Call (was RE: pmqs: dual life modules)
Diffstat (limited to 'ext')
-rw-r--r--ext/Filter-Util-Call/t/call.t22
1 files changed, 14 insertions, 8 deletions
diff --git a/ext/Filter-Util-Call/t/call.t b/ext/Filter-Util-Call/t/call.t
index c1a5685669..b1c7c05dad 100644
--- a/ext/Filter-Util-Call/t/call.t
+++ b/ext/Filter-Util-Call/t/call.t
@@ -1,13 +1,19 @@
BEGIN {
- chdir('t') if -d 't';
- @INC = '.';
- push @INC, '../lib';
- require Config; import Config;
- if ($Config{'extensions'} !~ m{\bFilter/Util/Call\b}) {
- print "1..0 # Skip: Filter::Util::Call was not built\n";
- exit 0;
+ if ($ENV{PERL_CORE}){
+ chdir('t') if -d 't';
+ @INC = ('.', '../lib');
+
+ require Config; import Config;
+ %Config=%Config if 0; # cease -w
+ if ($Config{'extensions'} !~ m{\bFilter/Util/Call\b}) {
+ print "1..0 # Skip: Filter::Util::Call was not built\n";
+ exit 0;
+ }
+ require 'lib/filter-util.pl';
+ }
+ else {
+ require 'filter-util.pl';
}
- require 'lib/filter-util.pl';
}
use strict;