]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Get io.test to work even if auto_vacuum is on by default and we are
authordrh <drh@noemail.net>
Wed, 3 Oct 2007 21:18:19 +0000 (21:18 +0000)
committerdrh <drh@noemail.net>
Wed, 3 Oct 2007 21:18:19 +0000 (21:18 +0000)
running with a reduced maximum page size. (CVS 4463)

FossilOrigin-Name: 0d05f3fbaad44a0d3723cd543b865326acddf883

manifest
manifest.uuid
test/io.test

index f671fb783d456b4e8b5124abd9b8a889c58d5fc6..070f4fefcfbed619f45f4a6e2bce7afb9d571fa9 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\ssyntax\serror\sthat\scomes\sup\swhen\smemory\sdebugging\sis\sdisabled.\s(CVS\s4462)
-D 2007-10-03T21:10:58
+C Get\sio.test\sto\swork\seven\sif\sauto_vacuum\sis\son\sby\sdefault\sand\swe\sare\nrunning\swith\sa\sreduced\smaximum\spage\ssize.\s(CVS\s4463)
+D 2007-10-03T21:18:20
 F Makefile.in cbfb898945536a8f9ea8b897e1586dd1fdbcc5db
 F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -329,7 +329,7 @@ F test/insert3.test 9a4ef3526fd3cca8b05278020ec3100448b4c677
 F test/insert4.test d7d256791e549de24e0a27a213405e1204e7a4dd
 F test/interrupt.test 81555fb0f8179bb2d0dc7151fd75428223f93cf2
 F test/intpkey.test af4fd826c4784ec5c93b444de07adea0254d0d30
-F test/io.test d497d43f4704e88e64c9e55c7e5edd8b5bcc6f5b
+F test/io.test a5923f1c45144d167e4faa8b16dc83348038eed0
 F test/ioerr.test 4b175825ed42b04f935e00f57cfb2a9f0c13de7d
 F test/ioerr2.test e3d52c40f43f9b61da9b38951a737e7b84ebae96
 F test/join.test af0443185378b64878750aa1cf4b83c216f246b4
@@ -581,7 +581,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
-P a57b25a2e4127bb3d9dc83031db117664c10d4ea
-R 2814415d8c5ceda1568f0acd70d4d5fc
+P 96dd3c336b5bbf9da6ba9ace85dbe7c4b1ff2bcb
+R 97f2e979b587833fee0776ca26556089
 U drh
-Z 9551c2ee3c05c71709fa89fc90beaf8d
+Z 328ee6d4a8d802d30813c6252c44ec65
index 65c99e91a94493a43025ff3b584000fd26dba6b2..f59d9e28952c052fdfc135d725bad400fbd5a04f 100644 (file)
@@ -1 +1 @@
-96dd3c336b5bbf9da6ba9ace85dbe7c4b1ff2bcb
\ No newline at end of file
+0d05f3fbaad44a0d3723cd543b865326acddf883
\ No newline at end of file
index e883c90ae9f62914ab52a8713037e6e875b4d361..74fb0e8999b2b1a59f997b2e6375add33b79a1f6 100644 (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
   }