mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0
option always removes all mutex code. For application-defined mutexes only, use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1. Ticket #3421. (CVS 5779) FossilOrigin-Name: 02a12eb1cfe9307c66556105a1a99d657cc01ab5
This commit is contained in:
@ -9,11 +9,15 @@
|
||||
#
|
||||
#***********************************************************************
|
||||
#
|
||||
# $Id: mutex1.test,v 1.14 2008/09/03 01:08:02 drh Exp $
|
||||
# $Id: mutex1.test,v 1.15 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
|
||||
ifcapable !mutex {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
if {[info exists tester_do_binarylog]} {
|
||||
finish_test
|
||||
return
|
||||
|
@ -11,10 +11,14 @@
|
||||
#
|
||||
# Test scripts for deliberate failures of mutex routines.
|
||||
#
|
||||
# $Id: mutex2.test,v 1.8 2008/07/19 13:43:24 danielk1977 Exp $
|
||||
# $Id: mutex2.test,v 1.9 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
ifcapable !mutex {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
|
||||
# deinitialize
|
||||
#
|
||||
|
@ -9,11 +9,14 @@
|
||||
#
|
||||
#***********************************************************************
|
||||
#
|
||||
# $Id: thread001.test,v 1.5 2008/07/12 14:52:20 drh Exp $
|
||||
# $Id: thread001.test,v 1.6 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
|
||||
source $testdir/tester.tcl
|
||||
ifcapable !mutex {
|
||||
return
|
||||
}
|
||||
source $testdir/thread_common.tcl
|
||||
if {[info commands sqlthread] eq ""} {
|
||||
return
|
||||
|
@ -12,7 +12,7 @@
|
||||
# This test attempts to deadlock SQLite in shared-cache mode.
|
||||
#
|
||||
#
|
||||
# $Id: thread002.test,v 1.3 2008/07/12 14:52:20 drh Exp $
|
||||
# $Id: thread002.test,v 1.4 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
|
||||
@ -22,7 +22,7 @@ if {[info commands sqlthread] eq ""} {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
ifcapable !attach {
|
||||
ifcapable !attach||!mutex {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
|
@ -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.4 2008/08/30 09:10:17 danielk1977 Exp $
|
||||
# $Id: thread003.test,v 1.5 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
|
||||
@ -22,6 +22,10 @@ if {[info commands sqlthread] eq ""} {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
ifcapable !mutex {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
|
||||
# Set up a couple of different databases full of pseudo-randomly
|
||||
# generated data.
|
||||
@ -190,5 +194,3 @@ do_test thread003.4 {
|
||||
} {0}
|
||||
|
||||
finish_test
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is multithreading behavior
|
||||
#
|
||||
# $Id: thread1.test,v 1.7 2004/06/19 00:16:31 drh Exp $
|
||||
# $Id: thread1.test,v 1.8 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -19,6 +19,10 @@ source $testdir/tester.tcl
|
||||
|
||||
# Skip this whole file if the thread testing code is not enabled
|
||||
#
|
||||
ifcapable !mutex {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
if {[llength [info command thread_step]]==0 || [sqlite3 -has-codec]} {
|
||||
finish_test
|
||||
return
|
||||
|
@ -11,16 +11,13 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this script is multithreading behavior
|
||||
#
|
||||
# $Id: thread2.test,v 1.2 2006/01/18 18:33:42 danielk1977 Exp $
|
||||
# $Id: thread2.test,v 1.3 2008/10/07 15:25:49 drh Exp $
|
||||
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
|
||||
# This file swaps database connections between threads. This
|
||||
# is illegal if memory-management is enabled, so skip this file
|
||||
# in that case.
|
||||
ifcapable memorymanage {
|
||||
ifcapable !mutex {
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user