Ensures to test also the progress update.

This commit is contained in:
Andrea Mazzoleni 2014-11-04 23:51:45 +01:00
parent 61ce847d6a
commit 7054256c62
4 changed files with 16 additions and 3 deletions

View file

@ -236,6 +236,7 @@ void config(char* conf, size_t conf_size, const char* argv0)
#define OPT_TEST_RUN 278
#define OPT_TEST_FORCE_SCAN_WINFIND 279
#define OPT_TEST_IMPORT_CONTENT 280
#define OPT_TEST_FORCE_PROGRESS 281
#if HAVE_GETOPT_LONG
struct option long_options[] = {
@ -337,6 +338,9 @@ struct option long_options[] = {
/* Alternative import working by data */
{ "test-import-content", 1, 0, OPT_TEST_IMPORT_CONTENT },
/* Force immediate progress state update */
{ "test-force-progress", 0, 0, OPT_TEST_FORCE_PROGRESS },
{ 0, 0, 0, 0 }
};
#endif
@ -644,6 +648,9 @@ int main(int argc, char* argv[])
case OPT_TEST_FORCE_SCAN_WINFIND :
opt.force_scan_winfind = 1;
break;
case OPT_TEST_FORCE_PROGRESS :
opt.force_progress = 1;
break;
default :
/* LCOV_EXCL_START */
fprintf(stderr, "Unknown option '%c'\n", (char)c);