Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: stop "make test" from sometimes failing
- X-seq: zsh-workers 11675
- From: Wayne Davison <wayne@xxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: stop "make test" from sometimes failing
- Date: Tue, 30 May 2000 22:13:43 -0700 (PDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I noticed that "make test" could sometimes fail in the 07cond.ztst
file if the creation of the unmodified file happened in the same
second as the "cat" of its (empty) contents. To work around this,
I just added a "sleep 1" to the file, and now it always succeeds.
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Test/07cond.ztst
@@ -99,6 +99,7 @@
# can't be bothered with -S
+ sleep 1
cat unmodified
touch newnewnew
[[ -N newnewnew && ! -N unmodified ]]
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Messages sorted by:
Reverse Date,
Date,
Thread,
Author