1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 05:51:08 +02:00

users/12307: Expand delay in [[ -N ... ]] test to 2 seconds

This commit is contained in:
Peter Stephenson 2007-12-11 15:24:46 +00:00
parent 04f42fdbdf
commit d00acd5ab4
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2007-12-11 Peter Stephenson <pws@csr.com> 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. * 24210: Src/builtin.c: "set -o" should abort on failure.
* unposted: Config/version.mk, Completion/Unix/Command/.distfiles: * unposted: Config/version.mk, Completion/Unix/Command/.distfiles:

View file

@ -125,9 +125,6 @@
# can't be bothered with -S # can't be bothered with -S
sleep 1
cat unmodified
touch newnewnew
if [[ $OSTYPE == "cygwin" ]]; then if [[ $OSTYPE == "cygwin" ]]; then
print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported on Cygwin)" print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported on Cygwin)"
true true
@ -135,6 +132,10 @@
print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)" print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)"
true true
else else
print -u $ZTST_fd 'This test takes two seconds...'
sleep 2
cat unmodified
touch newnewnew
[[ -N newnewnew && ! -N unmodified ]] [[ -N newnewnew && ! -N unmodified ]]
fi fi
0:-N cond 0:-N cond