GNU bug report logs - #11896
aclocal7.sh test fails sometimes with automake-1.12.2

Previous Next

Package: automake;

Reported by: Adam Sampson <ats <at> offog.org>

Date: Tue, 10 Jul 2012 11:25:01 UTC

Severity: minor

Tags: patch

Merged with 11924, 12178

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

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Adam Sampson <ats <at> offog.org>
To: bug-automake <at> gnu.org
Subject: aclocal7.sh test fails sometimes with automake-1.12.2
Date: Tue, 10 Jul 2012 12:18:44 +0100
[Message part 1 (text/plain, inline)]
Hi,

I've just built automake-1.12.2 and had the aclocal7.sh test fail. After
a bit of investigation, it's because the test:

- creates a .m4 file;
- calls aclocal;
- calls automake;
- sleeps for a bit;
- calls aclocal again;
- calls automake again;
- checks that those two calls didn't actually write any files.
  [then goes on to test some other stuff that works fine]

The problem is that aclocal decides whether to rewrite its output file
by checking that all of the input files it's read are older than the
existing output file. If aclocal takes less than a second to run in the
sequence above, it's possible for its output file to have the same
timestamp as the .m4 file -- and then the second call to aclocal will
decide the output file needs rewriting, and the test fails.

The attached patch adds a $sleep after creating the .m4 file, so it'll
definitely be older than the first aclocal's output.

Thanks,

-- 
Adam Sampson <ats <at> offog.org>                         <http://offog.org/>
[fasttest.diff (text/plain, attachment)]

This bug report was last modified 12 years and 344 days ago.

Previous Next


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