Excludes handling of error condition from the coverage test.

This commit is contained in:
Andrea Mazzoleni 2014-02-03 22:40:51 +01:00
parent f0cecf55c8
commit 24fd5ab318
17 changed files with 841 additions and 5 deletions

View file

@ -428,9 +428,10 @@ struct snapraid_handle* handle_map(struct snapraid_state* state, unsigned* handl
break;
}
if (k==0) {
fprintf(stderr, "Inconsistent disk mapping.\n");
/* LCOV_EXCL_START */
fprintf(stderr, "Internal error for inconsistent disk mapping.\n");
exit(EXIT_FAILURE);
continue;
/* LCOV_EXCL_STOP */
}
handle[map->position].disk = disk;