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

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

Issue 3108030: Move bundled copy of sqlite one level deeper to better separate it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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/test/attach3.test ('k') | third_party/sqlite/test/auth.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/test/attachmalloc.test
===================================================================
--- third_party/sqlite/test/attachmalloc.test (revision 56608)
+++ third_party/sqlite/test/attachmalloc.test (working copy)
@@ -1,63 +0,0 @@
-# 2005 September 19
-#
-# The author disclaims copyright to this source code. In place of
-# a legal notice, here is a blessing:
-#
-# May you do good and not evil.
-# May you find forgiveness for yourself and forgive others.
-# May you share freely, never taking more than you give.
-#
-#*************************************************************************
-# This file implements regression tests for SQLite library. The
-# focus of this script is testing the ATTACH statement and
-# specifically out-of-memory conditions within that command.
-#
-# $Id: attachmalloc.test,v 1.10 2008/10/22 10:45:38 danielk1977 Exp $
-#
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-ifcapable !memdebug||!attach {
- finish_test
- return
-}
-
-source $testdir/malloc_common.tcl
-
-do_malloc_test attachmalloc-1 -tclprep {
- db close
- for {set i 2} {$i<=4} {incr i} {
- file delete -force test$i.db
- file delete -force test$i.db-journal
- }
-} -tclbody {
- if {[catch {sqlite3 db test.db}]} {
- error "out of memory"
- }
- sqlite3_db_config_lookaside db 0 0 0
- sqlite3_extended_result_codes db 1
-} -sqlbody {
- ATTACH 'test2.db' AS two;
- CREATE TABLE two.t1(x);
- ATTACH 'test3.db' AS three;
- CREATE TABLE three.t1(x);
- ATTACH 'test4.db' AS four;
- CREATE TABLE four.t1(x);
-}
-
-do_malloc_test attachmalloc-2 -tclprep {
- file delete -force test2.db
- file delete -force test2.db-journal
- sqlite3 db2 test2.db
- db2 eval {
- CREATE TABLE t1(a, b, c);
- CREATE INDEX i1 ON t1(a, b);
- }
- db2 close
-} -sqlbody {
- CREATE TABLE t1(d, e, f);
- ATTACH 'test2.db' AS db1;
-}
-
-finish_test
« no previous file with comments | « third_party/sqlite/test/attach3.test ('k') | third_party/sqlite/test/auth.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698