From: Eric S. Raymond Date: Thu, 15 Nov 2018 17:40:04 +0000 (-0500) Subject: Another coverage tweak. X-Git-Tag: 1.7~24 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=5ce427b62b7f15c5629fecf5bd948ab89407882f;p=open-adventure.git Another coverage tweak. --- 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: