We now (after
816005240f1a3b9989c940e630e829048597537c) will store
them in @INC in Unix format, but either format is legal. We can't
change the values in %Config to be Unix format, though, because
MakeMaker and other utilities may use those to construct paths
for native software that needs them in native format.
skip "lib $lib not in \@INC on Win32" if $^O eq 'MSWin32';
skip "lib $lib not defined" unless defined $dir;
skip "lib $lib not set" unless length $dir;
+ # May be in @INC in either Unix or VMS format on VMS.
+ if ($^O eq 'VMS' && !exists($orig_inc{$dir})) {
+ $dir = VMS::Filespec::unixify($dir);
+ $dir =~ s|/$||;
+ }
# So we expect to find it in @INC
ok (exists $orig_inc{$dir}, "Expect $lib '$dir' to be in \@INC")