Enhancements to the testing logic for malloc and mutex. Only permit one

of MEMSYS3/5 to be compiled-in at a time.  Omit the SQLITE_CONFIG_MEMSYS3/5
configuration options. (CVS 5389)

FossilOrigin-Name: ed8b2525006ae7f8cacd01b291760513fdbdff57
This commit is contained in:
drh
2008-07-10 18:13:42 +00:00
parent 80b3c54851
commit 8a42cbd3f0
10 changed files with 334 additions and 127 deletions
+11 -1
View File
@@ -11,7 +11,7 @@
#
# Test scripts for deliberate failures of mutex routines.
#
# $Id: mutex2.test,v 1.3 2008/07/08 02:12:37 drh Exp $
# $Id: mutex2.test,v 1.4 2008/07/10 18:13:43 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -84,4 +84,14 @@ do_test mutex2-2.10 {
install_mutex_counters 0
set disable_mutex_init 0
autoinstall_test_functions
# Mutex allocation works now.
#
do_test mutex2-3.1 {
set ptr [alloc_dealloc_mutex]
expr {$ptr!=0}
} {1}
finish_test