From: Akim Demaille Date: Tue, 17 Jul 2012 12:25:26 +0000 (+0200) Subject: tests: be sure that backups are safe. X-Git-Tag: v2.6~10 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/1aa9fa823b452cfd76c0ca34d652f7562c94864a tests: be sure that backups are safe. * tests/local.at (at_save_special_files): here. --- diff --git a/tests/local.at b/tests/local.at index f2532809..2dbbfc71 100644 --- a/tests/local.at +++ b/tests/local.at @@ -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 }