Skip to content

Commit 01604df

Browse files
committed
Port dual-life.t to VMS.
The utils have a .com extension and filename case may not be preserved.
1 parent 0705767 commit 01604df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

t/porting/dual-life.t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ find(
3737
);
3838

3939
for my $f ( @programs ) {
40-
next if $f ~~ @exceptions;
41-
ok( -f catfile('..', 'utils', basename($f)), "$f" );
40+
$f =~ s/\.\z// if $^O eq 'VMS';
41+
next if qr/(?i:$f)/ ~~ @exceptions;
42+
$f = basename($f);
43+
$f .= '.com' if $^O eq 'VMS';
44+
ok( -f catfile('..', 'utils', $f), "$f" );
4245
}
4346

0 commit comments

Comments
 (0)