Index: test/bc_test1.c ================================================================== --- test/bc_test1.c +++ test/bc_test1.c @@ -486,23 +486,24 @@ Threadset threads = {0}; /* Test threads */ Config conf = {5, 3, 5}; int i; CmdlineArg apArg[] = { - { "--seconds", CMDLINE_INT, offsetof(Config, nSecond) }, - { "--inserts", CMDLINE_INT, offsetof(Config, nIPT) }, - { "--threads", CMDLINE_INT, offsetof(Config, nThread) }, - { "--mutex", CMDLINE_BOOL, offsetof(Config, bMutex) }, - { "--rm", CMDLINE_BOOL, offsetof(Config, bRm) }, - { "--autockpt",CMDLINE_INT, offsetof(Config, nAutoCkpt) }, - { "--mmap", CMDLINE_INT, offsetof(Config, nMmap) }, - { "--clear-cache", CMDLINE_BOOL, offsetof(Config, bClearCache) }, - { "--file", CMDLINE_STRING, offsetof(Config, zFile) }, - { "--osinst", CMDLINE_BOOL, offsetof(Config, bOsinst) }, + { "-seconds", CMDLINE_INT, offsetof(Config, nSecond) }, + { "-inserts", CMDLINE_INT, offsetof(Config, nIPT) }, + { "-threads", CMDLINE_INT, offsetof(Config, nThread) }, + { "-mutex", CMDLINE_BOOL, offsetof(Config, bMutex) }, + { "-rm", CMDLINE_BOOL, offsetof(Config, bRm) }, + { "-autockpt",CMDLINE_INT, offsetof(Config, nAutoCkpt) }, + { "-mmap", CMDLINE_INT, offsetof(Config, nMmap) }, + { "-clear-cache", CMDLINE_BOOL, offsetof(Config, bClearCache) }, + { "-file", CMDLINE_STRING, offsetof(Config, zFile) }, + { "-osinst", CMDLINE_BOOL, offsetof(Config, bOsinst) }, { 0, 0, 0 } }; + conf.nAutoCkpt = 1000; cmdline_process(apArg, argc, argv, (void*)&conf); if( err.rc==SQLITE_OK ){ char *z = cmdline_construct(apArg, (void*)&conf); printf("With: %s\n", z); sqlite3_free(z); Index: test/tt3_core.c ================================================================== --- test/tt3_core.c +++ test/tt3_core.c @@ -163,10 +163,15 @@ for(i=1; i=0 ){ cmdline_error("ambiguous switch: %s", z);