Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/sqlite/src/test/attachmalloc.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/attach4.test ('k') | third_party/sqlite/src/test/auth.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/attachmalloc.test
diff --git a/third_party/sqlite/src/test/attachmalloc.test b/third_party/sqlite/src/test/attachmalloc.test
index 30841cea76f797dd7baace70c9c8aa3b4ba2844e..c485c618bd4c5917bb310a93afbfa12788cf3d0c 100644
--- a/third_party/sqlite/src/test/attachmalloc.test
+++ b/third_party/sqlite/src/test/attachmalloc.test
@@ -26,8 +26,9 @@ ifcapable !memdebug||!attach {
source $testdir/malloc_common.tcl
do_malloc_test attachmalloc-1 -tclprep {
- db close
+ catch { db close }
for {set i 2} {$i<=4} {incr i} {
+ catch { db$i close }
file delete -force test$i.db
file delete -force test$i.db-journal
}
@@ -60,4 +61,17 @@ do_malloc_test attachmalloc-2 -tclprep {
ATTACH 'test2.db' AS db1;
}
+set enable_shared_cache [sqlite3_enable_shared_cache 1]
+sqlite3 dbaux test3.db
+dbaux eval {SELECT * FROM sqlite_master}
+do_malloc_test attachmalloc-3 -sqlbody {
+ SELECT * FROM sqlite_master;
+ ATTACH 'test3.db' AS three;
+} -cleanup {
+ db eval { DETACH three }
+}
+dbaux close
+sqlite3_enable_shared_cache $enable_shared_cache
+
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/attach4.test ('k') | third_party/sqlite/src/test/auth.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698