tests: be sure that backups are safe.

* tests/local.at (at_save_special_files): here.
This commit is contained in:
Akim Demaille
2012-07-17 14:25:26 +02:00
parent 321b8117a6
commit 1aa9fa823b

View 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
}