summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2023-04-15 12:01:07 -0500
committerCraig A. Berry <craigberry@mac.com>2023-04-15 15:04:28 -0500
commitcc365faa27400f1cbe128133b0ef491a6dd7e913 (patch)
tree04bd6be3029d451d803ad61d75526f11ec9eaa6f /t
parent56d8acf499fe4bc71a4248d6c778f12e4ba091a0 (diff)
downloadperl-cc365faa27400f1cbe128133b0ef491a6dd7e913.tar.gz
t/TEST: trim .DIR extension on VMS
Otherwise the test suite dies with: Can't read op/hook.DIR/require.t. The problem never arose until 93f6f9654a81b66c4 added another directory one level down from those immediately under t/.
Diffstat (limited to 't')
-rwxr-xr-xt/TEST2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/TEST b/t/TEST
index a5f56404b3..10397b201d 100755
--- a/t/TEST
+++ b/t/TEST
@@ -207,7 +207,7 @@ sub _find_files {
opendir DIR, $dir or die "Trouble opening $dir: $!";
foreach my $f (sort { $a cmp $b } readdir DIR) {
next if $skip{$f};
-
+ $dir =~ s/(?<!\^)\.dir(;1)?$//i if $is_vms; # trim .DIR extension
my $fullpath = "$dir/$f";
if (-d $fullpath) {
_find_files($patt, $fullpath);