Index: third_party/sqlite/src/test/tableapi.test |
diff --git a/third_party/sqlite/src/test/tableapi.test b/third_party/sqlite/src/test/tableapi.test |
index e5d0ac0af38a98a25f4d0a923d7270ccb4ea0fcb..122267fea8fb9bf37d6e17a36d2addd3aa4aad11 100644 |
--- a/third_party/sqlite/src/test/tableapi.test |
+++ b/third_party/sqlite/src/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 |