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

Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)

FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
This commit is contained in:
danielk1977
2007-08-29 12:31:25 +00:00
parent 1fee73e74a
commit a1644fd863
40 changed files with 519 additions and 308 deletions

View File

@ -13,7 +13,7 @@
# This is a copy of the capi3.test file that has been adapted to
# test the new sqlite3_prepare_v2 interface.
#
# $Id: capi3c.test,v 1.10 2007/08/25 13:37:49 danielk1977 Exp $
# $Id: capi3c.test,v 1.11 2007/08/29 12:31:29 danielk1977 Exp $
#
set testdir [file dirname $argv0]
@ -749,7 +749,7 @@ if {[info command sqlite3_memdebug_fail]!=""} {
do_test capi3c-10-1 {
sqlite3 db test.db
set DB [sqlite3_connection_pointer db]
sqlite3_memdebug_fail 0 0
sqlite3_memdebug_fail 0
catchsql {
select * from sqlite_master;
}
@ -763,7 +763,7 @@ if {[info command sqlite3_memdebug_fail]!=""} {
} {out of memory}
}
db close
sqlite3_memdebug_fail -1 0
sqlite3_memdebug_fail -1
}
# The following tests - capi3c-11.* - test that a COMMIT or ROLLBACK