Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version;
        bh=O78+TCMSW/s6RgtJ9lU1vJAgI77G7NnGi3AIswsesAg=;
        b=a/wigAVYznrQedcMjyjZzLUekqZZS1bGS1avbbifEpRPa4ioJlP2uV1WlbUq9Ff+FP
         u8Rimc4hNu7yBj9tcA0IH7W45du4H+aXtH3ArWPY1WmlQZHAZ52j+skdZiOSgUhqQsK0
         f4DzV8x36Rt8MHaj0bSeEXl5ZnbrlOpMRr1rJukrjFKU7k//SIlOiFX+cCB4OyX+l3Bt
         oMR4qiEnWFIsf40XAd0Z9nO7mswLmnXhjK21BkV5xDnjsdFh/Pg/UmzlZaFI6b7HGwXD
         2fKMh2ygQbGCkamUF6I3HN4fPRauNLnd4TMtwHg/SlQRr9upCLK2ochf70TvIxdv4vbR
         8pAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version;
        bh=O78+TCMSW/s6RgtJ9lU1vJAgI77G7NnGi3AIswsesAg=;
        b=jCm9hQ507qesaUc7Dqjd+KXj6No3c6gwzHI89Zb8keOA0ynhRIBnh4njk8io4A7StM
         0gtsKAi1JnHaPzfFh5IbXy/L45bovayvw86I9wUC+8CmuPreBkNJkRl3KudF3OsLFtC0
         rNKVkn4NQM6H6n36osEaIEh6JlPZiLkuTbqhOwJPda7jxTVondPlPKNFghdcSIVcWD4I
         sdfwDpdGLf2R6m7JCfd8EA/KyrqVq6HzSZEaokclwI6OY4RcAsTtcPbX3lbFx4FA62dz
         KAi90Phi5MXND7X6ebQBn+/3nT8+cf9nrIFn3fbKHtoDz3QG0cO61//TuRxpANC91Mkz
         siSQ==
X-Gm-Message-State: AOPr4FX8B9bWMStQXKmVX3Mmgr6bYA0JnF4KQlYi/q2lW7DxPs7Tcxl0OUihzy/3Bsd1Xw==
X-Received: by 10.66.26.225 with SMTP id o1mr55301609pag.79.1462851134630;
        Mon, 09 May 2016 20:32:14 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160509203304.ZM16713@torch.brasslantern.com>
Date: Mon, 9 May 2016 20:33:04 -0700
In-Reply-To: <9FAAD096-2119-4354-B437-4D9A0ABD2765@kba.biglobe.ne.jp>
Comments: In reply to "Jun T." <takimoto-j@kba.biglobe.ne.jp>
        "Re: Bug in C02cont.ztst's -N test" (May 10,  2:32am)
References: <ufa1t5pl0yg.fsf@epithumia.math.uh.edu> 
	<160429131027.ZM22749@torch.brasslantern.com> 
	<ufashy4ghvy.fsf@epithumia.math.uh.edu> 
	<20160430004639.GA1360@tarsus.local2> 
	<20160430010131.GA34472@CptOrmolo.darkstar> 
	<20160430012828.GA3334@tarsus.local2> 
	<CAH+w=7b9kKY1Xr5YHFHMS4YzSptJWwU_N6p+s3R=Q=QjYYSo3w@mail.gmail.com> 
	<160430105547.ZM10892@torch.brasslantern.com> 
	<160430111131.ZM11437@torch.brasslantern.com> 
	<FEE16E72-B6B1-4CDE-B32D-EB111C13240C@kba.biglobe.ne.jp> 
	<160509092158.ZM13643@torch.brasslantern.com> 
	<9FAAD096-2119-4354-B437-4D9A0ABD2765@kba.biglobe.ne.jp>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: Bug in C02cont.ztst's -N test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38456

On May 10,  2:32am, Jun T. wrote:
}
} On a system where the nanosecond timestamps are not supported
} in order for the test '$newnewnew -nt $zlnfs' to succeed,
} the mtime's of the two files should have at least 1 second
} difference.

Aha.  Now that you mention it, I recall that ...

} Why does the original code sleeps 2 sec (instead of 1 sec).

... in some cases "sleep 1" will only sleep to the next whole-number
of seconds on the system clock, rather than sleeping a full second.
So "sleep 2" is needed to always make it at least one full second.

I've committed your patch.

