aboutsummaryrefslogtreecommitdiff
path: root/test/tableapi.test
diff options
context:
space:
mode:
authorshaneh <shaneh@noemail.net>2011-03-24 17:37:24 +0000
committershaneh <shaneh@noemail.net>2011-03-24 17:37:24 +0000
commitd71245c2adba6548fb7cd8c6af3c4bccdecb72fa (patch)
treeb1112ee22b08153dcd7606c6620b47e634c9d14f /test/tableapi.test
parent22645842a4495cf9efd2bf9d1fc7e14ea95a9fd7 (diff)
downloadsqlite-d71245c2adba6548fb7cd8c6af3c4bccdecb72fa.tar.gz
sqlite-d71245c2adba6548fb7cd8c6af3c4bccdecb72fa.zip
Fix problem with tableapi.test on Windows.
FossilOrigin-Name: 69fe0c873d702ef1d781453ee6ac2b1fb77fce48
Diffstat (limited to 'test/tableapi.test')
-rw-r--r--test/tableapi.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/tableapi.test b/test/tableapi.test
index e5d0ac0af..122267fea 100644
--- a/test/tableapi.test
+++ b/test/tableapi.test
@@ -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