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

Side by Side Diff: third_party/sqlite/src/test/tkt-5e10420e8d.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # 2010 August 23
2 #
3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
5 #
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
9 #
10 #***********************************************************************
11 #
12
13 set testdir [file dirname $argv0]
14 source $testdir/tester.tcl
15
16 do_execsql_test tkt-5e10420e8d.1 {
17 PRAGMA page_size = 1024;
18 PRAGMA auto_vacuum = incremental;
19
20 CREATE TABLE t1(x);
21 CREATE TABLE t2(x);
22 CREATE TABLE t3(x);
23 } {}
24
25 do_execsql_test tkt-5e10420e8d.2 {
26 INSERT INTO t3 VALUES(randomblob(500 + 1024*248));
27 INSERT INTO t1 VALUES(randomblob(1500));
28 INSERT INTO t2 VALUES(randomblob(500 + 1024*248));
29
30 DELETE FROM t3;
31 DELETE FROM t2;
32 DELETE FROM t1;
33 } {}
34
35 do_execsql_test tkt-5e10420e8d.3 {
36 PRAGMA incremental_vacuum(248)
37 } {}
38
39 do_execsql_test tkt-5e10420e8d.4 {
40 PRAGMA incremental_vacuum(1)
41 } {}
42
43 db close
44 sqlite3 db test.db
45
46 do_execsql_test tkt-5e10420e8d.5 {
47 PRAGMA integrity_check;
48 } {ok}
49
50 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/tkt-5d863f876e.test ('k') | third_party/sqlite/src/test/tkt-5ee23731f.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698