summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSawyer X <xsawyerx@cpan.org>2020-05-24 02:08:22 +0300
committerSawyer X <xsawyerx@cpan.org>2020-05-24 02:08:22 +0300
commitb5ef43fcda35123a3efd89e824340f8d2fe4c721 (patch)
treedeed00a671dc15568c6056d60163524aca5aa658 /ext
parentbbadd5d31911f71894e89148d3381ad18a1dc8ac (diff)
downloadperl-b5ef43fcda35123a3efd89e824340f8d2fe4c721.tar.gz
Fix File::Glob test:
glob() should not exist. We check this with `->can('glob')`.
Diffstat (limited to 'ext')
-rw-r--r--ext/File-Glob/t/basic.t15
1 files changed, 7 insertions, 8 deletions
diff --git a/ext/File-Glob/t/basic.t b/ext/File-Glob/t/basic.t
index 174e91a674..d23ec7499b 100644
--- a/ext/File-Glob/t/basic.t
+++ b/ext/File-Glob/t/basic.t
@@ -44,14 +44,13 @@ if (opendir(D, ".")) {
@correct = grep { !/^\./ } sort readdir(D);
closedir D;
}
-{
- local $@;
- my $expect =
- qr/File::Glob::glob\(\) was removed in perl 5\.30\. Use File::Glob::bsd_glob\(\) instead/;
- eval { File::Glob::glob("*", 0); };
- like $@, $expect,
- "Got expected error message for removal of File::Glob::glob()";
-}
+
+is(
+ File::Glob->can('glob'),
+ undef,
+ 'Did not find glob() function in File::Glob',
+);
+
chdir '..' or die "chdir .. $!";
# look up the user's home directory