aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index f9a360c7b..1a191e0fd 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -3536,6 +3536,7 @@ static int do_meta_command(char *zLine, ShellState *p){
{ "scratchmalloc", SQLITE_TESTCTRL_SCRATCHMALLOC },
{ "byteorder", SQLITE_TESTCTRL_BYTEORDER },
{ "never_corrupt", SQLITE_TESTCTRL_NEVER_CORRUPT },
+ { "initmode", SQLITE_TESTCTRL_INITMODE },
};
int testctrl = -1;
int rc = 0;
@@ -3628,6 +3629,18 @@ static int do_meta_command(char *zLine, ShellState *p){
break;
#endif
+ case SQLITE_TESTCTRL_INITMODE:
+ if( nArg==5 ){
+ rc = sqlite3_test_control(testctrl, p->db,
+ integerValue(azArg[2]),
+ integerValue(azArg[3]),
+ integerValue(azArg[4]));
+ }else{
+ fprintf(stderr,"Usage: .testctrl initmode fBusy iDb newTnum\n");
+ rc = 1;
+ }
+ break;
+
case SQLITE_TESTCTRL_BITVEC_TEST:
case SQLITE_TESTCTRL_FAULT_INSTALL:
case SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: