GNU bug report logs - #11346
automake-1.12 - one test fails (due to truncated timestamp)

Previous Next

Package: automake;

Reported by: Peter Breitenlohner <peb <at> mppmu.mpg.de>

Date: Thu, 26 Apr 2012 08:28:01 UTC

Severity: normal

Tags: patch

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Peter Breitenlohner <peb <at> mppmu.mpg.de>
Cc: 11346 <at> debbugs.gnu.org
Subject: bug#11346: automake-1.12 - one test fails (due to truncated timestamp)
Date: Thu, 26 Apr 2012 10:59:50 +0200
[Message part 1 (text/plain, inline)]
On 04/26/2012 10:26 AM, Peter Breitenlohner wrote:
> Hi,
>
Hi Peter, thanks for the report (and the fix ;-)

> I just fetched automake-1.12, built it on our no-distro x86-linux-gnu
> system
> 
>   uname -r: 2.6.28.6-x86_64 (most binaries are 32-bit)
>   /lib/libc-2.3.6.so
>   /lib64/libc-2.3.6.so
> 
> and got one test suite failure.
> 
>   FAIL: t/self-check-is_newest.tap 19 - is_newest u x
> 
> It seems that 'touch -r x u' (on jfs) has truncated the timestamp, but I
> have also seen timestamps rounded upwards to the next second (I think).
> 
> Therefore I would suggest to replace
>   touch -r x u
> in self-check-is_newest.tap by
>   touch -r x x; touch -r x u
> such that x's time first gets rounded (up or down) to the next second and
> then transferred to u.
>
Good idea.  Can you confirm that the attached patch solves your problem?

Thanks,
  Stefano
[0001-tests-fix-a-spurious-failure-due-to-truncated-timest.patch (text/x-diff, attachment)]

This bug report was last modified 13 years and 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.