Get io.test to work even if auto_vacuum is on by default and we are

running with a reduced maximum page size. (CVS 4463)

FossilOrigin-Name: 0d05f3fbaad44a0d3723cd543b865326acddf883
This commit is contained in:
drh
2007-10-03 21:18:19 +00:00
parent e0ea9bf4a4
commit c2ded2afe0
3 changed files with 17 additions and 8 deletions
+10 -1
View File
@@ -13,7 +13,7 @@
# IO traffic generated by SQLite (making sure SQLite is not writing out
# more database pages than it has to, stuff like that).
#
# $Id: io.test,v 1.10 2007/09/12 17:01:45 danielk1977 Exp $
# $Id: io.test,v 1.11 2007/10/03 21:18:20 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -57,6 +57,7 @@ proc nSync {} {
do_test io-1.1 {
execsql {
PRAGMA auto_vacuum = OFF;
PRAGMA page_size = 1024;
CREATE TABLE abc(a,b);
}
@@ -295,6 +296,7 @@ do_test io-2.9.2 {
file delete -force test.db test.db-journal
sqlite3 db test.db
execsql {
PRAGMA auto_vacuum = OFF;
PRAGMA page_size = 2048;
CREATE TABLE abc(a, b);
}
@@ -366,6 +368,9 @@ ifcapable pager_pragmas {
db close
file delete -force test.db test.db-journal
sqlite3 db test.db
db eval {
PRAGMA auto_vacuum=OFF;
}
file size test.db
} {0}
do_test io-3.2 {
@@ -521,10 +526,14 @@ foreach {char sectorsize pgsize} {
{atomic64K} 512 1024
} {
incr tn
if {$pgsize>$::SQLITE_MAX_PAGE_SIZE} continue
db close
file delete -force test.db test.db-journal
sqlite3_simulate_device -char $char -sectorsize $sectorsize
sqlite3 db test.db
db eval {
PRAGMA auto_vacuum=OFF;
}
ifcapable !atomicwrite {
if {[regexp {^atomic} $char]} continue
}