Increases a little the code coverage in testing.

This commit is contained in:
Andrea Mazzoleni 2014-09-01 20:04:56 +02:00
parent 1cd6c1ddde
commit 6d4d75ad0b
3 changed files with 7 additions and 4 deletions

View file

@ -2150,11 +2150,13 @@ static void state_read_text(struct snapraid_state* state, const char* path, STRE
/* if no info is present */
if (!info) {
/* LCOV_EXCL_START */
/* set a fake info block */
info = info_make(save_time, 0, 0);
/* insert the info in the array */
info_set(&state->infoarr, b, info);
/* LCOV_EXCL_STOP */
}
}
}