]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Minor additions to vacuum.test.
authordan <dan@noemail.net>
Mon, 15 Nov 2010 11:35:50 +0000 (11:35 +0000)
committerdan <dan@noemail.net>
Mon, 15 Nov 2010 11:35:50 +0000 (11:35 +0000)
FossilOrigin-Name: a397ed162246fef32b8c5db36d995bf9a8005a2e

manifest
manifest.uuid
test/vacuum.test

index 8cd6c13a8c6a663480eaa0d89f2d7525812b382f..d0983373627d0c0107cbdb6700a59cd15e33f255 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Change\sthe\stest_multiplex.c\scode\sto\suse\swrapper\sfunctions\sfor\sall\ssqlite3_vfs\smethods\s(instead\sof\scopying\sfunction\spointers\sfrom\sthe\sunderlying\svfs\sinto\sthe\smultiplex\svfs).\sThis\sis\srequired\sto\swork\swith\stest_osinst.c.
-D 2010-11-12T15:49:05
+C Minor\sadditions\sto\svacuum.test.
+D 2010-11-15T11:35:50
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in e7a59672eaeb04408d1fa8501618d7501a3c5e39
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -798,7 +798,7 @@ F test/types3.test a0f66bf12f80fad89493535474f7a6d16fa58150
 F test/unique.test 083c7fff74695bcc27a71d75699deba3595bc9c2
 F test/update.test 8bc86fd7ef1a00014f76dc6a6a7c974df4aef172
 F test/utf16align.test 54cd35a27c005a9b6e7815d887718780b6a462ae
-F test/vacuum.test 15ae6784e70428b8db64e95c92d84b19e507b719
+F test/vacuum.test 29b60e8cc9e573b39676df6c4a75fe9e02d04a09
 F test/vacuum2.test 2165164ed2463816e8c4648d0a779a863ce1a76c
 F test/vacuum3.test f39ad1428347c5808cd2da7578c470f186a4d0ce
 F test/vacuum4.test d3f8ecff345f166911568f397d2432c16d2867d9
@@ -885,7 +885,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
-P e068758222bcd3f2367e9346f7154780cd395ddd
-R d56c467c4d95b6e0405ebbf0c7ac2142
+P 1244ef9f7ef813d86dca6f8e01681fa55ee9eec8
+R 54b348dd27f49361cd996798a2ab23b2
 U dan
-Z a50b8c1ba84e37038e8c0688be6f08be
+Z 9290fe54b110c5363ef458359a63af8a
index fdd1eb9320e6d21d7478cbd901bc5b4eda94d843..f63a03e803738fea2488dc450805158d9756bd8f 100644 (file)
@@ -1 +1 @@
-1244ef9f7ef813d86dca6f8e01681fa55ee9eec8
\ No newline at end of file
+a397ed162246fef32b8c5db36d995bf9a8005a2e
\ No newline at end of file
index 256730b3cf6114853104119be57f5c0cfb6b68e8..34be57ce7c8c3261c52c8f565c13127698304630 100644 (file)
@@ -300,14 +300,38 @@ do_test vacuum-7.0 {
     CREATE TABLE t1(t);
     VACUUM;
   } db2
+} {}
+do_test vacuum-7.1 {
   execsql {
     CREATE TABLE t2(t);
     CREATE TABLE t3(t);
     DROP TABLE t2;
+    PRAGMA freelist_count;
+  }
+} {1}
+do_test vacuum-7.2 {
+  execsql {
     VACUUM;
     pragma integrity_check;
   } db2
 } {ok}
+do_test vacuum-7.3 {
+  execsql { PRAGMA freelist_count; } db2
+} {0}
+ifcapable autovacuum {
+  do_test vacuum-7.4 {
+    execsql { PRAGMA auto_vacuum } db2
+  } {0}
+  do_test vacuum-7.5 {
+    execsql { PRAGMA auto_vacuum = 1} db2
+    execsql { PRAGMA auto_vacuum } db2
+  } {0}
+  do_test vacuum-7.6 {
+    execsql { PRAGMA auto_vacuum = 1} db2
+    execsql { VACUUM } db2
+    execsql { PRAGMA auto_vacuum } db2
+  } {1}
+}
 db2 close
 
 # Ticket #873.  VACUUM a database that has ' in its name.