diff options
author | drh <drh@noemail.net> | 2019-12-18 13:42:04 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-12-18 13:42:04 +0000 |
commit | 6e1c45ef2ee3aaea9e1f89e1cfa036c0f112e92c (patch) | |
tree | 5fd1e63aad4df1822c1af78f03fb9181d3ad4f5b /test/fuzzcheck.c | |
parent | a7648f02e02aa989ffb91227b8bb4466a76304bc (diff) | |
download | sqlite-6e1c45ef2ee3aaea9e1f89e1cfa036c0f112e92c.tar.gz sqlite-6e1c45ef2ee3aaea9e1f89e1cfa036c0f112e92c.zip |
Add the --vdbe-debug option to fuzzcheck.
FossilOrigin-Name: 289158aa24b066c453d2bce4bc2dead1c56fb0b23c3f7c4810b34b13627cef34
Diffstat (limited to 'test/fuzzcheck.c')
-rw-r--r-- | test/fuzzcheck.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fuzzcheck.c b/test/fuzzcheck.c index cdf21e700..4f3321f0a 100644 --- a/test/fuzzcheck.c +++ b/test/fuzzcheck.c @@ -1320,6 +1320,7 @@ static void showHelp(void){ " --sqlid N Use only SQL where sqlid=N\n" " --timeout N Abort if any single test needs more than N seconds\n" " -v|--verbose Increased output. Repeat for more output.\n" +" --vdbe-debug Activate VDBE debugging.\n" ); } @@ -1475,6 +1476,9 @@ int main(int argc, char **argv){ fatalError("timeout is not available on non-unix systems"); #endif }else + if( strcmp(z,"vdbe-debug")==0 ){ + bVdbeDebug = 1; + }else if( strcmp(z,"verbose")==0 ){ quietFlag = 0; verboseFlag++; @@ -1821,6 +1825,9 @@ int main(int argc, char **argv){ #ifdef SQLITE_TESTCTRL_PRNG_SEED sqlite3_test_control(SQLITE_TESTCTRL_PRNG_SEED, 1, db); #endif + if( bVdbeDebug ){ + sqlite3_exec(db, "PRAGMA vdbe_debug=ON", 0, 0, 0); + } do{ runSql(db, (char*)pSql->a, runFlags); }while( timeoutTest ); |