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

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/test/sort5.test

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 10 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
OLDNEW
(Empty)
1 # 2014 September 15.
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 # This file implements regression tests for SQLite library.
12 #
13
14 set testdir [file dirname $argv0]
15 source $testdir/tester.tcl
16 set testprefix sort5
17
18
19 #-------------------------------------------------------------------------
20 # Verify that sorting works with a version 1 sqlite3_io_methods structure.
21 #
22 testvfs tvfs -iversion 1 -default true
23 reset_db
24 do_execsql_test 1.0 {
25 PRAGMA mmap_size = 10000000;
26 PRAGMA cache_size = 10;
27 CREATE TABLE t1(a, b);
28 } {0}
29
30 do_test 1.1 {
31 execsql BEGIN
32 for {set i 0} {$i < 2000} {incr i} {
33 execsql { INSERT INTO t1 VALUES($i, randomblob(2000)) }
34 }
35 execsql COMMIT
36 } {}
37
38 do_execsql_test 1.2 {
39 CREATE INDEX i1 ON t1(b);
40 }
41
42 db close
43 tvfs delete
44 finish_test
45
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/sort4.test ('k') | third_party/sqlite/sqlite-src-3080704/test/sortfault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698