zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: stop "make test" from sometimes failing
@ 2000-05-31  5:13 Wayne Davison
  2000-05-31  9:00 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Wayne Davison @ 2000-05-31  5:13 UTC (permalink / raw)
  To: Zsh Workers

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---


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: stop "make test" from sometimes failing
  2000-05-31  5:13 PATCH: stop "make test" from sometimes failing Wayne Davison
@ 2000-05-31  9:00 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2000-05-31  9:00 UTC (permalink / raw)
  To: Zsh hackers list

> 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.

This would seem to be quite a serious bug, although it could be e.g. NFS
which is known not always to respect time ordering.  I've added the patch
but it deserves watching.

I've also committed the array patches.  There's no point releasing a
bug-fix version until we know what's going on with Irix, and I have no
ideas whatsoever at the moment.  We might as well try these out in the
meanwhile.

Wayne, if you want to be added to the developers' list at sourceforge, let
me know a user name.

-- 
Peter Stephenson <pws@cambridgesiliconradio.com>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-31  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-31  5:13 PATCH: stop "make test" from sometimes failing Wayne Davison
2000-05-31  9:00 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).