Changes to wal3.test to support small default cache size settings. And builds that create autovacuum databases by default.

FossilOrigin-Name: ac4cc2574bafce30390a34f13228380d017791cb
This commit is contained in:
dan
2010-06-08 15:16:10 +00:00
parent 7df6c2c04b
commit c60f10a27f
3 changed files with 11 additions and 10 deletions
+4 -3
View File
@@ -36,6 +36,7 @@ db func a_string a_string
#
do_test wal3-1.0 {
execsql {
PRAGMA cache_size = 2000;
PRAGMA page_size = 1024;
PRAGMA auto_vacuum = off;
PRAGMA synchronous = normal;
@@ -185,21 +186,21 @@ foreach code [list {
PRAGMA wal_checkpoint;
}
file size test.db
} [expr 3*1024]
} [expr $AUTOVACUUM ? 4*1024 : 3*1024]
do_test wal3-2.$tn.5 {
sql2 {
COMMIT;
PRAGMA wal_checkpoint;
}
file size test.db
} [expr 4*1024]
} [expr $AUTOVACUUM ? 5*1024 : 4*1024]
do_test wal3-2.$tn.6 {
sql3 {
COMMIT;
PRAGMA wal_checkpoint;
}
file size test.db
} [expr 4*1024]
} [expr $AUTOVACUUM ? 5*1024 : 4*1024]
catch { db close }
catch { code2 { db2 close } }