]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Update thread tests to clear the sqlite_open_file_count counter at the
authordrh <drh@noemail.net>
Thu, 12 Feb 2009 17:06:41 +0000 (17:06 +0000)
committerdrh <drh@noemail.net>
Thu, 12 Feb 2009 17:06:41 +0000 (17:06 +0000)
end.  This counter is not threadsafe and can end up with an invalid value
at the end of the thread tests. (CVS 6289)

FossilOrigin-Name: 8c4d71a169e529964d2d0cfba82bbad66a0bcd12

manifest
manifest.uuid
test/thread001.test
test/thread002.test
test/thread003.test

index 5ac1c404b5d166d9a82d4fe57c4b23b73f0a4cc9..8f02824d38601f8e3304747eccd2a811a94c8968 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\ssome\sedge\scases\swith\sbacking\sup\sdatabases\sthat\sare\sexactly\sPENDING_BYTE\sbytes\sin\ssize,\sor\sjust\sslightly\slarger.\s(CVS\s6288)
-D 2009-02-12T17:01:50
+C Update\sthread\stests\sto\sclear\sthe\ssqlite_open_file_count\scounter\sat\sthe\nend.\s\sThis\scounter\sis\snot\sthreadsafe\sand\scan\send\sup\swith\san\sinvalid\svalue\nat\sthe\send\sof\sthe\sthread\stests.\s(CVS\s6289)
+D 2009-02-12T17:06:41
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in c7a5a30fb6852bd7839b1024e1661da8549878ee
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -553,9 +553,9 @@ F test/tclsqlite.test 413a8a887d89ea8fa7055e8d118ffb03b0a4c91a
 F test/tempdb.test b88ac8a19823cf771d742bf61eef93ef337c06b1
 F test/temptable.test 5d8ca46be28cc06c887c5a77df650843b7edbae1
 F test/tester.tcl b28d5eb97e95b19eacdb5afb38db2c8558f398b0
-F test/thread001.test 7595e58213eda498794860f608e0ea7e499d18d0
-F test/thread002.test 0258a50c55f2371de2e4c7e02bec2576c1eef359
-F test/thread003.test e17754799649c2b732c295620dca041c32f01e16
+F test/thread001.test 06c45ed9597d478e7bbdc2a8937e1ebea2a20a32
+F test/thread002.test 3c03900f03fd2fe8e2fbb1bbdef7fa8206fdb7ad
+F test/thread003.test 6d360c15afe7f6ef6186801d2cb8407bccbe3aa3
 F test/thread1.test 862dd006d189e8b0946935db17399dcac2f8ef91
 F test/thread2.test 91f105374f18a66e73a3254c28fe7c77af69bdea
 F test/thread_common.tcl 047f80288b5e1e86bed181097d67e640f1a54a74
@@ -701,7 +701,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 9a6e558ba6fe0b38376a85a6c1e2cea5570ea283
-R c29b76c7d0882570dd5d4b31c9bb2e6f
-U danielk1977
-Z a3d6d2ad2218627e8108430b2434ce04
+P 2fc450e8e60248d6111d0b0d2b8f2344f5b89bca
+R 1ec65da20ad4eb6fcba7aaeef585ffb3
+U drh
+Z 425f528858755190dcb043c332a7460a
index 0d2174c75fe8346c641d68e45b7de6d0228b3e3d..dd068db9c676e76944445e5b07fe0eecd7d6335d 100644 (file)
@@ -1 +1 @@
-2fc450e8e60248d6111d0b0d2b8f2344f5b89bca
\ No newline at end of file
+8c4d71a169e529964d2d0cfba82bbad66a0bcd12
\ No newline at end of file
index 6391db1fede3de4b9c565a843eafb17eda16a0e2..5236bbe4416223f84572550b7616a007e3c24045 100644 (file)
@@ -9,7 +9,7 @@
 #
 #***********************************************************************
 #
-# $Id: thread001.test,v 1.8 2009/02/04 11:57:46 danielk1977 Exp $
+# $Id: thread001.test,v 1.9 2009/02/12 17:06:41 drh Exp $
 
 set testdir [file dirname $argv0]
 
@@ -147,4 +147,5 @@ foreach {tn same_db shared_cache} [list \
 }
 
 sqlite3_enable_shared_cache $::enable_shared_cache
+set sqlite_open_file_count 0
 finish_test
index a2900d27cfcce5f315f03a0083cb84675d846254..7c5e6b3b0008b467ef7da668dbbed1ce1ea346ad 100644 (file)
@@ -12,7 +12,7 @@
 #   This test attempts to deadlock SQLite in shared-cache mode.
 #     
 #
-# $Id: thread002.test,v 1.5 2009/02/04 11:57:46 danielk1977 Exp $
+# $Id: thread002.test,v 1.6 2009/02/12 17:06:41 drh Exp $
 
 set testdir [file dirname $argv0]
 
@@ -107,4 +107,5 @@ for {set ii 0} {$ii < 3} {incr ii} {
 }
 
 sqlite3_enable_shared_cache $::enable_shared_cache
+set sqlite_open_file_count 0
 finish_test
index 0db27c13516fa7b4469639c3afd7f889f19e293d..916fc7e06db9ea97cebc009533c37637c156d0af 100644 (file)
@@ -12,7 +12,7 @@
 #   This file contains tests that attempt to break the pcache module
 #   by bombarding it with simultaneous requests from multiple threads.
 #     
-# $Id: thread003.test,v 1.5 2008/10/07 15:25:49 drh Exp $
+# $Id: thread003.test,v 1.6 2009/02/12 17:06:41 drh Exp $
 
 set testdir [file dirname $argv0]
 
@@ -193,4 +193,5 @@ do_test thread003.4 {
   expr 0
 } {0}
 
+set sqlite_open_file_count 0
 finish_test