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

Add the ability to simulate out-of-memory errors when using the default

memory allocator, mem1.c.  Fix a bug that this enhancement revealed. (CVS 4875)

FossilOrigin-Name: d55a5e1c11ef90534abd2e5f18d06dd4739ade70
This commit is contained in:
drh
2008-03-18 00:07:10 +00:00
parent 0e8ebe5168
commit 5efaf07099
6 changed files with 38 additions and 33 deletions

View File

@ -12,15 +12,15 @@
# This file contains common code used by many different malloc tests
# within the test suite.
#
# $Id: malloc_common.tcl,v 1.13 2008/02/18 22:24:58 drh Exp $
# $Id: malloc_common.tcl,v 1.14 2008/03/18 00:07:11 drh Exp $
# If we did not compile with malloc testing enabled, then do nothing.
#
ifcapable !memdebug&&!mem5 {
ifcapable faultinjector {
set MEMDEBUG 1
} else {
set MEMDEBUG 0
return 0
} else {
set MEMDEBUG 1
}
# Usage: do_malloc_test <test number> <options...>