]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Coverage testing for a few lines in pager.c. (CVS 3770)
authordanielk1977 <danielk1977@noemail.net>
Fri, 30 Mar 2007 18:21:52 +0000 (18:21 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Fri, 30 Mar 2007 18:21:52 +0000 (18:21 +0000)
FossilOrigin-Name: c1aca18fad35be60066a08f5bd09772d24375af6

manifest
manifest.uuid
test/misc7.test

index ab9ff392196e205913fc826febecb38200802b14..b115ed8680e420620614a90831cfe6e26ed527f1 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Remove\sasserts\son\sthe\sexisting\sof\sjournal\sfiles\sin\spager\s-\sasserts\sthat\nare\snot\svalid\sfor\scertain\skinds\sof\ssimulated\sI/O\serrors\sor\sfor\sasync\sI/O.\s(CVS\s3769)
-D 2007-03-30T17:18:51
+C Coverage\stesting\sfor\sa\sfew\slines\sin\spager.c.\s(CVS\s3770)
+D 2007-03-30T18:21:53
 F Makefile.in 2f2c3bf69faf0ae7b8e8af4f94f1986849034530
 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -274,7 +274,7 @@ F test/misc3.test 7bd937e2c62bcc6be71939faf068d506467b1e03
 F test/misc4.test b043a05dea037cca5989f3ae09552fa16119bc80
 F test/misc5.test c7d2d2a5a20dc37d3605a8067f0df5af2240122e
 F test/misc6.test 3de55ec5cadf466ada587173faa5d6a4790a8bb7
-F test/misc7.test 92c5d9ea7f860ec1ecd0a18c343c7f684db6b04a
+F test/misc7.test 6f59801b47e042e353a71d282f697782baac2f9d
 F test/misuse.test 30b3a458e5a70c31e74c291937b6c82204c59f33
 F test/notnull.test 44d600f916b770def8b095a9962dbe3be5a70d82
 F test/null.test 9503e1f63e959544c006d9f01709c5b5eab67d54
@@ -447,7 +447,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
-P cd6ca078e3402f06836b6b510a4a431f576f7219
-R a1829a1a4c7480d97a0c0b316a97e2e2
-U drh
-Z 8885ea3dc8b09d44dda50207da9f7451
+P f5fad52a97a16faddc2701ea0e05a301974eda1a
+R d7b8a8d5ad13f6c53ffa624952731df2
+U danielk1977
+Z 82a1f92ad94ed1831ca10d2592c97005
index 9a07ff8012c17a6cd5fcd9315dbfdf8c9ee49045..0a2f053d9b9ecbd097cfd22ee95f3cfa225faf37 100644 (file)
@@ -1 +1 @@
-f5fad52a97a16faddc2701ea0e05a301974eda1a
\ No newline at end of file
+c1aca18fad35be60066a08f5bd09772d24375af6
\ No newline at end of file
index e323f6947a9dbeec84e13eff7990d2fab30a9f78..c7f8f5b32c59ef51580e45d851539be58777fabd 100644 (file)
@@ -10,7 +10,7 @@
 #***********************************************************************
 # This file implements regression tests for SQLite library.
 #
-# $Id: misc7.test,v 1.7 2007/03/30 17:11:13 danielk1977 Exp $
+# $Id: misc7.test,v 1.8 2007/03/30 18:21:53 danielk1977 Exp $
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
@@ -248,4 +248,52 @@ ifcapable explain {
   } {0 0 {TABLE abc AS t2 WITH INDEX sqlite_autoindex_abc_1}}
 }
 
+db close
+file delete -force test.db
+file delete -force test.db-journal
+sqlite3 db test.db
+
+#--------------------------------------------------------------------
+# This is all to force the pager_remove_from_stmt_list() function
+# (inside pager.c) to remove a pager from the middle of the
+# statement-list.
+#
+do_test misc7-15.1 {
+  execsql {
+    PRAGMA cache_size = 10;
+    BEGIN;
+    CREATE TABLE abc(a PRIMARY KEY, b, c);
+    INSERT INTO abc 
+    VALUES(randstr(100,100), randstr(100,100), randstr(100,100));
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+    COMMIT;
+  }
+  expr {[file size test.db]>10240}
+} {1}
+do_test misc7-15.2 {
+  execsql {
+    DELETE FROM abc WHERE rowid > 12;
+    INSERT INTO abc SELECT 
+            randstr(100,100), randstr(100,100), randstr(100,100) FROM abc;
+  }
+} {}
+
+
+
+
 finish_test