From 5ce427b62b7f15c5629fecf5bd948ab89407882f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 15 Nov 2018 12:40:04 -0500 Subject: [PATCH] Another coverage tweak. --- saveresume.c | 2 +- tests/README | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/saveresume.c b/saveresume.c index 8fe9309..f021321 100644 --- a/saveresume.c +++ b/saveresume.c @@ -186,7 +186,7 @@ bool is_valid(struct game_t valgame) /* Validate that we didn't die too many times in save */ if (valgame.numdie >= NDEATHS) { - return false; + return false; // LCOV_EXCL_LINE } /* Recalculate tally, throw the towel if in disagreement */ diff --git a/tests/README b/tests/README index 5666e77..1118056 100644 --- a/tests/README +++ b/tests/README @@ -26,11 +26,8 @@ To remake the check files, "make buildregress". The simplest way to make a test is to simply play a game with the -l option giving a log path. Commands will be captured to that log. -To re-use a command sequence from an existing log, run advent -s and -paste it to the advent command log from the clipboard. If you don't -use -s to disable advanced ediiting, the code used for that will consume -the first line of the paste and discare the rest. This is almost -certainly not what you want. +To re-use a command sequence from an existing log, run advent and +paste it to the advent command log from the clipboard. To see where we can use more tests, have a look at our test coverage report: -- 2.31.1