1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Disable malloc tests when not compiled with SQLITE_DEBUG. (CVS 2608)

FossilOrigin-Name: f372682fa375c22213da0e4cd8413eab3c6ac85b
This commit is contained in:
drh
2005-08-21 18:21:50 +00:00
parent 130b9f4040
commit 788581d78a
4 changed files with 27 additions and 10 deletions

View File

@@ -12,12 +12,21 @@
# focus of this script is testing the ATTACH statement and
# specifically out-of-memory conditions within that command.
#
# $Id: attachmalloc.test,v 1.1 2005/08/20 03:03:04 drh Exp $
# $Id: attachmalloc.test,v 1.2 2005/08/21 18:21:50 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 malloc tests: not compiled with -DSQLITE_DEBUG..."
finish_test
return
}
# Usage: do_malloc_test <test name> <options...>
#
# The first argument, <test number>, is an integer used to name the