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

Unified Diff: third_party/sqlite/test/lookaside.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/lock7.test ('k') | third_party/sqlite/test/main.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/test/lookaside.test
===================================================================
--- third_party/sqlite/test/lookaside.test (revision 56608)
+++ third_party/sqlite/test/lookaside.test (working copy)
@@ -1,110 +0,0 @@
-# 2008 August 01
-#
-# 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.
-#
-#***********************************************************************
-#
-# Tests for the lookaside memory allocator.
-#
-# $Id: lookaside.test,v 1.10 2009/04/09 01:23:49 drh Exp $
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-ifcapable !lookaside {
- finish_test
- return
-}
-
-catch {db close}
-sqlite3_shutdown
-sqlite3_config_pagecache 0 0
-sqlite3_config_scratch 0 0
-sqlite3_initialize
-autoinstall_test_functions
-sqlite3 db test.db
-
-# Make sure sqlite3_db_config() and sqlite3_db_status are working.
-#
-do_test lookaside-1.1 {
- catch {sqlite3_config_error db}
-} {0}
-do_test lookaside-1.2 {
- sqlite3_db_config_lookaside db 1 18 18
-} {0}
-do_test lookaside-1.3 {
- sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0
-} {0 0 0}
-do_test lookaside-1.4 {
- db eval {CREATE TABLE t1(w,x,y,z);}
- foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0] break
- expr {$x==0 && $y<$z && $z==18}
-} {0}
-do_test lookaside-1.5 {
- foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 1] break
- expr {$x==0 && $y<$z && $z==18}
-} {0}
-do_test lookaside-1.6 {
- foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0] break
- expr {$x==0 && $y==$z && $y<18}
-} {1}
-do_test lookaside-1.7 {
- db cache flush
- foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0] break
- expr {$x==0 && $y==0 && $z<18}
-} {1}
-do_test lookaside-1.8 {
- db cache flush
- foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 1] break
- expr {$x==0 && $y==0 && $z<18}
-} {1}
-do_test lookaside-1.9 {
- db cache flush
- sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0
-} {0 0 0}
-
-do_test lookaside-2.1 {
- sqlite3_db_config_lookaside db 0 100 1000
-} {0}
-do_test lookaside-2.2 {
- db eval {CREATE TABLE t2(x);}
- foreach {x y z} [sqlite3_db_status db SQLITE_DBSTATUS_LOOKASIDE_USED 0] break
- expr {$x==0 && $y<$z && $z>10 && $z<100}
-} {1}
-do_test lookaside-2.3 {
- sqlite3_db_config_lookaside db 0 50 50
-} {5} ;# SQLITE_BUSY
-do_test lookaside-2.4 {
- db cache flush
- sqlite3_db_config_lookaside db 0 50 50
-} {0} ;# SQLITE_OK
-do_test lookaside-2.5 {
- sqlite3_db_config_lookaside db 0 -1 50
-} {0} ;# SQLITE_OK
-do_test lookaside-2.6 {
- sqlite3_db_config_lookaside db 0 50 -1
-} {0} ;# SQLITE_OK
-
-# sqlite3_db_status() with an invalid verb returns an error.
-#
-do_test lookaside-3.1 {
- sqlite3_db_status db 99999 0
-} {1 0 0}
-
-# Test that an invalid verb on sqlite3_config() is detected and
-# reported as an error.
-#
-do_test lookaside-4.1 {
- db close
- sqlite3_shutdown
- catch sqlite3_config_error
-} {0}
-sqlite3_initialize
-autoinstall_test_functions
-
-finish_test
« no previous file with comments | « third_party/sqlite/test/lock7.test ('k') | third_party/sqlite/test/main.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698