[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: acloca20 test intermittent failure
From: |
Paul Eggert |
Subject: |
Re: acloca20 test intermittent failure |
Date: |
Wed, 25 Oct 2006 11:33:02 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Stepan Kasal <address@hidden> writes:
> +# This command fails with non-GNU hosts, but the test is still useful.
> +touch --date='1min' file
Better yet, we can use the POSIX-standard "touch -t".
Thanks; I installed this.
2006-10-25 Stepan Kasal <address@hidden>
* tests/tools.at (autom4te --force): New test, verifies that
`--force' always rewrites the output file.
--- tests/tools.at 24 Oct 2006 19:44:31 -0000 1.94
+++ tests/tools.at 25 Oct 2006 18:30:04 -0000
@@ -114,6 +114,31 @@ AT_CHECK_M4SUGAR
AT_CLEANUP
+# autom4te --force
+# ----------------
+
+AT_SETUP([autom4te --force])
+
+AT_DATA([file.m4],
+[[right
+]])
+AT_CHECK_AUTOM4TE([-o file file.m4])
+
+# Create a file whose time stamp is in the future.
+# (next year)-01-01 00:01 UTC should always be in the future,
+# even on slow machines.
+echo BAD >file
+this_year=`TZ=UTC0 date +%Y`
+TZ=UTC0 touch -t `expr $this_year + 1`01010001 file
+
+AT_CHECK_AUTOM4TE([--force -o file file.m4])
+AT_CHECK([cat file], 0,
+[[right
+]])
+
+AT_CLEANUP
+
+
## ------------------ ##