1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix an assert() failure that can occur after an OOM error. (CVS 5939)

FossilOrigin-Name: 4c765758c18d7aeffe6e1cf658d2847f9460a956
This commit is contained in:
danielk1977
2008-11-21 09:43:20 +00:00
parent b247c21c15
commit 956f4319be
4 changed files with 13 additions and 11 deletions

View File

@ -16,7 +16,7 @@
# to see what happens in the library if a malloc were to really fail
# due to an out-of-memory situation.
#
# $Id: malloc.test,v 1.69 2008/11/03 09:39:45 danielk1977 Exp $
# $Id: malloc.test,v 1.70 2008/11/21 09:43:20 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -675,8 +675,10 @@ do_malloc_test 29 -sqlprep {
CREATE TABLE t1(a TEXT, b TEXT);
} -sqlbody {
INSERT INTO t1 VALUES(1, -234);
INSERT INTO t1 SELECT * FROM t1 UNION ALL SELECT * FROM t1;
}
# Ensure that no file descriptors were leaked.
do_test malloc-99.X {
catch {db close}