aboutsummaryrefslogtreecommitdiff
path: root/test/malloc.test
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-08-27 19:01:57 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-08-27 19:01:57 +0000
commit59633aeec2ba9190b966b74ccdb0b7c524eb6bf7 (patch)
treece9c2308400bbe1b369d849a9335d6761dc69cfc /test/malloc.test
parent255538e947f55a3c7a8aeb520a258653dbbd4810 (diff)
downloadsqlite-59633aeec2ba9190b966b74ccdb0b7c524eb6bf7.tar.gz
sqlite-59633aeec2ba9190b966b74ccdb0b7c524eb6bf7.zip
If any error occurs during sqlite3_open(), move the database handle into "sick" state. When in the sick state the user can use sqlite3_errcode() and sqlite3_errmsg(), but not much else. (CVS 5628)
FossilOrigin-Name: ce9c74eaab459ddde213c828e821940f5d6cb354
Diffstat (limited to 'test/malloc.test')
-rw-r--r--test/malloc.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/malloc.test b/test/malloc.test
index d902a5018..542c56463 100644
--- a/test/malloc.test
+++ b/test/malloc.test
@@ -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.63 2008/07/07 14:56:57 danielk1977 Exp $
+# $Id: malloc.test,v 1.64 2008/08/27 19:01:58 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -409,6 +409,9 @@ ifcapable utf16 {
if {[sqlite3_errcode $DB2] eq "SQLITE_IOERR+12"} {
error "out of memory"
}
+ if {[regexp ".*automatic extension loading.*" [sqlite3_errmsg $DB2]]} {
+ error "out of memory"
+ }
if {$rc} {
error [string range $msg 4 end]
}