2006-10-25 Stepan Kasal * tests/tools.at (autom4te --force): New test, verifies that `--force' always rewrites the output file. Index: tests/tools.at =================================================================== RCS file: /cvsroot/autoconf/autoconf/tests/tools.at,v retrieving revision 1.94 diff -u -r1.94 tools.at --- tests/tools.at 24 Oct 2006 19:44:31 -0000 1.94 +++ tests/tools.at 25 Oct 2006 10:13:11 -0000 @@ -114,6 +114,26 @@ AT_CLEANUP +# autom4te --force +# ---------------- + +AT_SETUP([autom4te --force]) + +AT_DATA([file.m4], +[[right +]]) +AT_CHECK_AUTOM4TE([-o file file.m4]) +echo BAD >file +# This command fails with non-GNU hosts, but the test is still useful. +touch --date='1min' file +AT_CHECK_AUTOM4TE([--force -o file file.m4]) +AT_CHECK([cat file], 0, +[[right +]]) + +AT_CLEANUP + + ## ------------------ ##