about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-12-11 15:24:46 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-12-11 15:24:46 +0000
commitd00acd5ab4b0f11e57af192a237dff0c06bcd2db (patch)
tree37d432f4e02527166ae8f60ed83bd7d8f72ab046
parent04f42fdbdf14924e2e2b8bce4c1d1b4537747676 (diff)
downloadzsh-d00acd5ab4b0f11e57af192a237dff0c06bcd2db.tar.gz
zsh-d00acd5ab4b0f11e57af192a237dff0c06bcd2db.tar.xz
zsh-d00acd5ab4b0f11e57af192a237dff0c06bcd2db.zip
users/12307: Expand delay in [[ -N ... ]] test to 2 seconds
-rw-r--r--ChangeLog3
-rw-r--r--Test/C02cond.ztst7
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f7bd2d995..c3fec8380 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-12-11  Peter Stephenson  <pws@csr.com>
 
+	* users/12307: Test/C02cond.ztst: the wretched -N test is
+	still problematic; expand the delay to 2 seconds.
+
 	* 24210: Src/builtin.c: "set -o" should abort on failure.
 
 	* unposted: Config/version.mk, Completion/Unix/Command/.distfiles:
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 53c1350a8..3ba5209d0 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -125,9 +125,6 @@
 
 # can't be bothered with -S
 
-  sleep 1
-  cat unmodified
-  touch newnewnew
   if [[ $OSTYPE == "cygwin" ]]; then
     print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
     true
@@ -135,6 +132,10 @@
     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