This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Deparse inverted for(;;) condition correctly
[perl5.git] / lib / Config.t
index 922f826..ee2eaea 100644 (file)
@@ -256,14 +256,19 @@ my %orig_inc;
 @orig_inc{@orig_inc} = ();
 
 my $failed;
-# This is the order that directories are pushed onto @INC in perl.c:
+# This [used to be] the order that directories are pushed onto @INC in perl.c:
 foreach my $lib (qw(applibexp archlibexp privlibexp sitearchexp sitelibexp
-                    vendorarchexp vendorlibexp vendorlib_stem)) {
+                    vendorarchexp vendorlibexp)) {
   my $dir = $Config{$lib};
   SKIP: {
     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")