This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e6780
)
Fix VMS-specific case nit in File::Glob's basic.t.
author
Craig A. Berry
<craigberry@mac.com>
Sun, 11 Nov 2012 14:09:28 +0000
(08:09 -0600)
committer
Craig A. Berry
<craigberry@mac.com>
Sun, 11 Nov 2012 14:09:28 +0000
(08:09 -0600)
t/TEST may appear in upper or lower case and with or without a
trailing dot depending on various Unix compatibility settings.
ext/File-Glob/t/basic.t
patch
|
blob
|
blame
|
history
diff --git
a/ext/File-Glob/t/basic.t
b/ext/File-Glob/t/basic.t
index
497241f
..
59faffd
100644
(file)
--- a/
ext/File-Glob/t/basic.t
+++ b/
ext/File-Glob/t/basic.t
@@
-159,9
+159,10
@@
is_deeply(\@a, ['a', 'b']);
@a = grep !/(,v$|~$|\.(pm|ori?g|rej)$)/, @a;
@a = (grep !/test.pl/, @a) if $^O eq 'VMS';
+map { $_ =~ s/test\.?/TEST/i } @a if $^O eq 'VMS';
print "# @a\n";
-is_deeply(\@a, [
($vms_mode ? 'test.' : 'TEST')
, 'a', 'b']);
+is_deeply(\@a, [
'TEST'
, 'a', 'b']);
# "~" should expand to $ENV{HOME}
{