1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Enable threadsafe builds by default in configure. Ticket #2606.

Changes to test scripts to do better testing under all configurations. (CVS 4379)

FossilOrigin-Name: d66e08fd4f12407e565dc9fc53a5802216808378
This commit is contained in:
drh
2007-09-03 16:12:09 +00:00
parent 4753889c55
commit 5a3032b3e2
18 changed files with 88 additions and 68 deletions

View File

@ -1,7 +1,22 @@
# 2007 May 05
#
# 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 contains common code used by many different malloc tests
# within the test suite.
#
# $Id: malloc_common.tcl,v 1.8 2007/09/03 16:12:10 drh Exp $
# If we did not compile with malloc testing enabled, then do nothing.
#
ifcapable !memdebug {
puts "Skipping malloc tests: not compiled with -DSQLITE_MEMDEBUG..."
finish_test
return 0
}
@ -99,7 +114,6 @@ proc do_malloc_test {tn args} {
#
set isFail [catch $::mallocbody msg]
set nFail [sqlite3_memdebug_fail -1 -benigncnt nBenign]
#puts "isFail=$isFail nFail=$nFail nBenign=$nBenign msg=$msg"
# If one or more mallocs failed, run this loop body again.
#
@ -131,5 +145,3 @@ proc do_malloc_test {tn args} {
unset ::mallocopts
sqlite3_memdebug_fail -1
}
return 1