]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Run some malloc() tests with exclusive-access mode. (CVS 3720)
authordanielk1977 <danielk1977@noemail.net>
Mon, 26 Mar 2007 16:13:58 +0000 (16:13 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Mon, 26 Mar 2007 16:13:58 +0000 (16:13 +0000)
FossilOrigin-Name: 9ebba469023723652c4dbba3d9982a64a1fb144f

manifest
manifest.uuid
test/exclusive3.test [new file with mode: 0644]

index a5e49f37217e5a0df973e76483e9c0f10dd4ad54..9a850f1a7bf07d6dc7288caf5d6d88e63fbc2865 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Discard\sthe\spager-cache\swhen\sthe\spage-size\sis\schanged.\s(CVS\s3719)
-D 2007-03-26T15:46:01
+C Run\ssome\smalloc()\stests\swith\sexclusive-access\smode.\s(CVS\s3720)
+D 2007-03-26T16:13:59
 F Makefile.in 1fe3d0b46e40fd684e1e61f8e8056cefed16de9f
 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -201,6 +201,7 @@ F test/enc2.test 45710bacfa9df29720bc84c067dfdf8c8ddfb797
 F test/enc3.test 890508efff6677345e93bf2a8adb0489b30df030
 F test/exclusive.test 83871f52ab1015dc1bfbf86b96e2ece29094d129
 F test/exclusive2.test 187993598a83257f4a1126a40d89144c01965500
+F test/exclusive3.test 278bc5107b2f64c2594b2109e4edbfd4458e5851
 F test/expr.test c78843f730ccbe973d0c2ad1c99978f936893131
 F test/fkey1.test 153004438d51e6769fb1ce165f6313972d6263ce
 F test/format4.test bf3bed3b13c63abfb3cfec232597a319a31d0bcc
@@ -440,7 +441,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
-P ab53f5086334ea2f6c20c8f9d043baff39fae8d7
-R ab0471b994821d6f6d3d3075747999b9
+P e4209f7193d160709b0d8b5cd358df5649a97dc0
+R d6089bae50157e190b0888bc4ee1e4a7
 U danielk1977
-Z 1aa32bb75b01dd94bb830b6ed37ad984
+Z 0b13e768ea28ec8d66c37ace7677a338
index d524de6ce2e9c2627bd36a3183c37a9f42ce0738..79b7af3074bdf9f5c7da5be61161adee1a0fbc58 100644 (file)
@@ -1 +1 @@
-e4209f7193d160709b0d8b5cd358df5649a97dc0
\ No newline at end of file
+9ebba469023723652c4dbba3d9982a64a1fb144f
\ No newline at end of file
diff --git a/test/exclusive3.test b/test/exclusive3.test
new file mode 100644 (file)
index 0000000..3e15f8c
--- /dev/null
@@ -0,0 +1,60 @@
+# 2001 September 15
+#
+# The author disclaims copyright to this source code.  In place of
+# a legal notice, here is a blessing:
+#
+#    May you do good and not evil.
+#    May you find forgiveness for yourself and forgive others.
+#    May you share freely, never taking more than you give.
+#
+#***********************************************************************
+#
+# This file runs the tests in the file ioerr.test with auto-vacuum enabled
+# databases.
+#
+# $Id: exclusive3.test,v 1.1 2007/03/26 16:13:59 danielk1977 Exp $
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+ifcapable {!pager_pragmas} {
+  finish_test
+  return
+}
+
+rename finish_test really_finish_test2
+proc finish_test {} {}
+set ISQUICK 1
+
+rename sqlite3 real_sqlite3
+proc sqlite3 {args} {
+  set r [eval "real_sqlite3 $args"]
+  if { [llength $args] == 2 } {
+    [lindex $args 0] eval {pragma locking_mode = exclusive}
+  }
+  set r
+}
+
+rename do_test really_do_test
+proc do_test {args} {
+  set sc [concat really_do_test "exclusive-[lindex $args 0]" \
+      [lrange $args 1 end]]
+  eval $sc
+}
+
+#source $testdir/rollback.test
+#source $testdir/select1.test
+#source $testdir/select2.test
+
+source $testdir/malloc.test
+#source $testdir/ioerr.test
+
+
+rename sqlite3 ""
+rename real_sqlite3 sqlite3
+rename finish_test ""
+rename really_finish_test2 finish_test
+rename do_test ""
+rename really_do_test do_test
+finish_test
+