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

Fix problem with tableapi.test on Windows.

FossilOrigin-Name: 69fe0c873d702ef1d781453ee6ac2b1fb77fce48
This commit is contained in:
shaneh
2011-03-24 17:37:24 +00:00
parent 22645842a4
commit d71245c2ad
3 changed files with 16 additions and 22 deletions

View File

@ -231,6 +231,14 @@ ifcapable schema_pragmas {
} {0 1 1 user_version 0}
}
# do_malloc_test closes and deletes the usual db connections and files on
# each iteration. $::dbx is a seperate connection, and on Windows, will
# cause the file deletion of test.db to fail, so we move the close of $::dbx
# up to here before the do_malloc_test.
do_test tableapi-99.0 {
sqlite3_close $::dbx
} {SQLITE_OK}
ifcapable memdebug {
do_malloc_test tableapi-7 -sqlprep {
DROP TABLE IF EXISTS t1;
@ -245,8 +253,4 @@ ifcapable memdebug {
}
}
do_test tableapi-99.0 {
sqlite3_close $::dbx
} {SQLITE_OK}
finish_test