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

Add a couple of test cases to improve coverage testing. (CVS 3747)

FossilOrigin-Name: 0b22ce3637f87c453084c5bd994b6b19a0b014c0
This commit is contained in:
danielk1977
2007-03-29 17:07:52 +00:00
parent 194f8972d5
commit 69b637b56b
4 changed files with 88 additions and 11 deletions

View File

@ -14,7 +14,7 @@
# special feature is used 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.38 2007/03/26 12:26:27 danielk1977 Exp $
# $Id: malloc.test,v 1.39 2007/03/29 17:07:53 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -546,6 +546,12 @@ do_malloc_test 20 -tclprep {
DETACH DATABASE t2;
}
# Test malloc failure whilst installing a foriegn key.
#
do_malloc_test 21 -sqlbody {
CREATE TABLE abc(a, b, c, FOREIGN KEY(a) REFERENCES abc(b))
}
# Ensure that no file descriptors were leaked.
do_test malloc-99.X {