]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/tools.at (autom4te --force): New test, verifies that
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 Oct 2006 18:31:02 +0000 (18:31 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 Oct 2006 18:31:02 +0000 (18:31 +0000)
`--force' always rewrites the output file.

ChangeLog
tests/tools.at

index 2705995ca09833688440eb0a40d066eb9e80e71a..66c47d188e99adecaaed4cd670a945b9a7771f09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-25  Stepan Kasal  <kasal@ucw.cz>
+
+       * tests/tools.at (autom4te --force): New test, verifies that
+       `--force' always rewrites the output file.
+
 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * doc/autoconf.texi (Limitations of Usual Tools): Document that rm
index b41a758006ccca4cb77d76ca93aa468177c5b85b..23548dfdbacee1d0a54023e838965948d327bbff 100644 (file)
@@ -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
+
+
 
 
 ## ------------------ ##