]> git.saurik.com Git - bison.git/commitdiff
tests: be sure that backups are safe.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 17 Jul 2012 12:25:26 +0000 (14:25 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 17 Jul 2012 12:47:35 +0000 (14:47 +0200)
* tests/local.at (at_save_special_files): here.

tests/local.at

index f2532809a2dd8a0236cda33a05d7fc812883dc4d..2dbbfc712fdce9cae6008df1e9c668b0c0cdfc24 100644 (file)
@@ -53,6 +53,8 @@ m4_divert_text([PREPARE_TESTS],
 {
   for at_save_file in stderr experr expout
   do
+    test ! -f at-bison-check-$at_save_file.bak ||
+      as_fn_error 1 "fatal error: back-up on top of a back-up"
     test ! -f $at_save_file || mv $at_save_file at-bison-check-$at_save_file.bak
   done
 }