1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Changes to get tests to pass with OMIT_VIRTUALTABLE. Ticket #1877. (CVS 3318)

FossilOrigin-Name: 60616496b7d97fdda99262e2bab25e625151e857
This commit is contained in:
drh
2006-06-28 18:18:09 +00:00
parent 2cc55698cd
commit 3765df48c3
7 changed files with 51 additions and 23 deletions

View File

@ -22,6 +22,17 @@ ifcapable legacyformat {
return
}
# The size of the database depends on whether or not autovacuum
# is enabled.
#
if {[db one {PRAGMA auto_vacuum}]} {
set small 3072
set large 5120
} else {
set small 2048
set large 4096
}
do_test format4-1.1 {
execsql {
CREATE TABLE t1(x0,x1,x2,x3,x4,x5,x6,x7,x8,x9);
@ -34,19 +45,19 @@ do_test format4-1.1 {
INSERT INTO t1 SELECT * FROM t1;
}
file size test.db
} {2048}
} $small
do_test format4-1.2 {
execsql {
UPDATE t1 SET x0=1, x1=1, x2=1, x3=1, x4=1, x5=1, x6=1, x7=1, x8=1, x9=1
}
file size test.db
} {2048}
} $small
do_test format4-1.3 {
execsql {
UPDATE t1 SET x0=2, x1=2, x2=2, x3=2, x4=2, x5=2, x6=2, x7=2, x8=2, x9=2
}
file size test.db
} {4096}
} $large
finish_test

View File

@ -21,6 +21,10 @@ ifcapable !vacuum {
finish_test
return
}
if {[db one {PRAGMA auto_vacuum}]} {
finish_test
return
}
do_test tkt1512-1.1 {
execsql {

View File

@ -14,11 +14,16 @@
# virtual tables. The test cases in this file are copied from the file
# join.test, and some of the comments still reflect that.
#
# $Id: vtab6.test,v 1.1 2006/06/21 07:02:34 danielk1977 Exp $
# $Id: vtab6.test,v 1.2 2006/06/28 18:18:10 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
ifcapable !vtab {
finish_test
return
}
register_echo_module [sqlite3_connection_pointer db]
execsql {