Real test coverage dor SAVE_TAMPERING.

This commit is contained in:
Eric S. Raymond 2023-03-12 17:37:58 -04:00
parent 43af075fa9
commit 5929a68b88
5 changed files with 26 additions and 3 deletions

View file

@ -161,8 +161,8 @@ int restore(FILE* fp)
if (save.version != VRSION) {
rspeak(VERSION_SKEW, save.version / 10, MOD(save.version, 10), VRSION / 10, MOD(VRSION, 10));
} else if (!is_valid(save.game)) {
rspeak(SAVE_TAMPERING); // LCOV_EXCL_LINE
exit(EXIT_SUCCESS); // LCOV_EXCL_LINE
rspeak(SAVE_TAMPERING);
exit(EXIT_SUCCESS);
} else {
game = save.game;
}