1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Do not try to run the fuzz_malloc tests if SQLITE_MEMDEBUG is not enabled. (CVS 4066)

FossilOrigin-Name: 452115959f1bd22bfe64ed10724d6d08d4cbe3f5
This commit is contained in:
drh
2007-06-15 13:57:19 +00:00
parent 1a3a188ac7
commit 9142a83dd4
3 changed files with 18 additions and 9 deletions

View File

@ -12,10 +12,20 @@
#
# This file tests malloc failures in concert with fuzzy SQL generation.
#
# $Id: fuzz_malloc.test,v 1.2 2007/05/31 08:20:44 danielk1977 Exp $
# $Id: fuzz_malloc.test,v 1.3 2007/06/15 13:57:20 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
# Only run these tests if memory debugging is turned on.
#
if {[info command sqlite_malloc_stat]==""} {
puts "Skipping fuzz_malloc tests: not compiled with -DSQLITE_MEMDEBUG=1"
finish_test
return
}
source $testdir/fuzz_common.tcl
source $testdir/malloc_common.tcl
@ -78,4 +88,3 @@ do_fuzzy_malloc_test fuzzy_malloc-3 \
sqlite_malloc_fail 0
finish_test