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

Tests cases automatically remove many of their temporary files. (CVS 3463)

FossilOrigin-Name: eef0ec0d7ae0743d29454567f539e46ad2d5008e
This commit is contained in:
drh
2006-10-04 11:55:49 +00:00
parent b1b6d4a929
commit d9910fe529
6 changed files with 26 additions and 15 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.34 2006/07/11 12:40:25 drh Exp $
# $Id: malloc.test,v 1.35 2006/10/04 11:55:50 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -443,7 +443,9 @@ do_malloc_test 17 -tclbody {
set STMT 0
# open database using sqlite3_open16()
set DB2 [sqlite3_open16 test.db -unused]
set filename [encoding convertto unicode test.db]
append filename "\x00\x00"
set DB2 [sqlite3_open16 $filename -unused]
if {0==$DB2} {
error "out of memory"
}