From 06cbc7d482c9dad8f22fe5439fd4f7277b2d756b Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 31 Oct 2015 16:29:08 +0100 Subject: [PATCH] Some missing coverage exclusions --- cmdline/state.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmdline/state.c b/cmdline/state.c index 8870266f..21ebed57 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -3111,7 +3111,9 @@ static void state_write_content(struct snapraid_state* state, uint32_t* out_crc) retval = context->retval; #endif if (retval) { + /* LCOV_EXCL_START */ fail = 1; + /* LCOV_EXCL_STOP */ } else { if (first) { first = 0; @@ -3425,8 +3427,11 @@ static void state_verify_content(struct snapraid_state* state, uint32_t crc) #else retval = context->retval; #endif - if (retval) + if (retval) { + /* LCOV_EXCL_START */ fail = 1; + /* LCOV_EXCL_STOP */ + } free(context);