summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-07-13 22:32:02 -0600
committerKarl Williamson <khw@cpan.org>2017-07-13 22:42:52 -0600
commit5a993d81c4b1abf13cd3ae4cbc04f26c7516bc37 (patch)
tree6d804c10a99add24985d6b281550fd31e7dbcbc8
parentb7d798d66e9bbbf5a60d21864d3d5b10cb4adb29 (diff)
downloadperl-5a993d81c4b1abf13cd3ae4cbc04f26c7516bc37.tar.gz
File-Glob/t/rt131211.t: skip when File::Glob not used
File::Glob can be turned off at Configure time, and is on certain platforms. Thus this .t is not testing File::Glob, but what the platform's local sort-of-equivalent is. Thus the tests aren't valid
-rw-r--r--ext/File-Glob/Glob.pm2
-rw-r--r--ext/File-Glob/t/rt131211.t3
2 files changed, 4 insertions, 1 deletions
diff --git a/ext/File-Glob/Glob.pm b/ext/File-Glob/Glob.pm
index c619749fa0..4f740235fb 100644
--- a/ext/File-Glob/Glob.pm
+++ b/ext/File-Glob/Glob.pm
@@ -37,7 +37,7 @@ pop @{$EXPORT_TAGS{bsd_glob}}; # no "glob"
@EXPORT_OK = (@{$EXPORT_TAGS{'glob'}}, 'csh_glob');
-$VERSION = '1.28';
+$VERSION = '1.29';
sub import {
require Exporter;
diff --git a/ext/File-Glob/t/rt131211.t b/ext/File-Glob/t/rt131211.t
index b29cd043ed..d78556b3dd 100644
--- a/ext/File-Glob/t/rt131211.t
+++ b/ext/File-Glob/t/rt131211.t
@@ -5,7 +5,10 @@ use File::Temp 'tempdir';
use File::Spec::Functions;
use Test::More;
use Time::HiRes qw(time);
+use Config;
+plan skip_all => 'This platform doesn\'t use File::Glob'
+ if $Config{ccflags} =~ /\b-DPERL_EXTERNAL_GLOB\b/;
plan tests => 13;
my $path = tempdir uc cleanup => 1;