Additional tests added to capi3.test. (CVS 5285)

FossilOrigin-Name: 1fdab2c65b966f74bdf130c640ae56a0e811fb71
This commit is contained in:
drh
2008-06-23 17:56:47 +00:00
parent 27a430cc84
commit 52fd7beaba
3 changed files with 27 additions and 9 deletions
+19 -1
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script testing the callback-free C/C++ API.
#
# $Id: capi3.test,v 1.64 2008/05/23 14:49:49 drh Exp $
# $Id: capi3.test,v 1.65 2008/06/23 17:56:47 drh Exp $
#
set testdir [file dirname $argv0]
@@ -783,6 +783,24 @@ ifcapable memdebug {
}
db close
sqlite3_memdebug_fail -1
do_test capi3-10-4 {
sqlite3 db test.db
set DB [sqlite3_connection_pointer db]
sqlite3_memdebug_fail 1
catchsql {
select * from sqlite_master where rowid>5;
}
} {1 {out of memory}}
do_test capi3-10-5 {
sqlite3_errmsg $::DB
} {out of memory}
ifcapable {utf16} {
do_test capi3-10-6 {
utf8 [sqlite3_errmsg16 $::DB]
} {out of memory}
}
db close
sqlite3_memdebug_fail -1
}
# The following tests - capi3-11.* - test that a COMMIT or ROLLBACK