Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC



Dagobert Michelsen wrote:
> If this is on NFS (which it is in my build environment) the
> file 'newnewnew' is not generated and the following tests fail
> instead of being skipped on NFS.

I can see how that might be problematic.  Here's the simple way out.

Index: Test/C02cond.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/C02cond.ztst,v
retrieving revision 1.21
diff -u -r1.21 C02cond.ztst
--- Test/C02cond.ztst	10 Jan 2008 18:53:50 -0000	1.21
+++ Test/C02cond.ztst	26 Feb 2008 20:42:20 -0000
@@ -125,6 +125,10 @@
 
 # can't be bothered with -S
 
+  print -u $ZTST_fd 'This test takes two seconds...'
+  sleep 2
+  cat unmodified
+  touch newnewnew
   if [[ $OSTYPE == "cygwin" ]]; then
     print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
     true
@@ -132,10 +136,6 @@
     print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)"
     true
   else
-    print -u $ZTST_fd 'This test takes two seconds...'
-    sleep 2
-    cat unmodified
-    touch newnewnew
     [[ -N newnewnew && ! -N unmodified ]]
   fi
 0:-N cond



-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author