`--force' always rewrites the output file.
+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
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
+
+
## ------------------ ##