This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Final perldelta change for 5.21.3
[perl5.git] / runtests.SH
index 481a237..78c879b 100755 (executable)
@@ -61,6 +61,15 @@ fi
 
 cd t
 
+# If this is run under an old shell that doesn't automatically 
+# update PWD, then we must update it.  Otherwise, t/io/fs.t gets 
+# mixed up about what directory we are in.
+case "$PWD" in
+    '')  ;; # Do nothing if it isn't set at all.
+    */t) ;; # Leave it alone if it's properly updated.
+    *) PWD=${PWD}/t; export PWD ;;  # Otherwise, fix it.
+esac
+
 !NO!SUBS!
 
 ## In the following, dollars and backticks do need the extra backslash.