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

Unified Diff: third_party/sqlite/sqlite-src-3100200/test/btree02.test

Issue 2846743003: [sql] Remove SQLite 3.10.2 reference directory. (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/sqlite/sqlite-src-3100200/test/btree02.test
diff --git a/third_party/sqlite/sqlite-src-3100200/test/btree02.test b/third_party/sqlite/sqlite-src-3100200/test/btree02.test
deleted file mode 100644
index de7c06d442a86fc4a4a1ea3aeac22d61f124ab37..0000000000000000000000000000000000000000
--- a/third_party/sqlite/sqlite-src-3100200/test/btree02.test
+++ /dev/null
@@ -1,52 +0,0 @@
-# 2015-03-25
-#
-# 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 making multiple calls to saveCursorPosition()
-# and restoreCursorPosition() when cursors have eState==CURSOR_SKIPNEXT
-#
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-load_static_extension db eval
-do_execsql_test btree02-100 {
- CREATE TABLE t1(a TEXT, ax INTEGER, b INT, PRIMARY KEY(a,ax)) WITHOUT ROWID;
- WITH RECURSIVE c(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM c WHERE i<10)
- INSERT INTO t1(a,ax,b) SELECT printf('%02x',i), random(), i FROM c;
- CREATE INDEX t1a ON t1(a);
- CREATE TABLE t2(x,y);
- CREATE TABLE t3(cnt);
- WITH RECURSIVE c(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM c WHERE i<4)
- INSERT INTO t3(cnt) SELECT i FROM c;
- SELECT count(*) FROM t1;
-} {10}
-do_test btree02-110 {
- db eval BEGIN
- set i 0
- db eval {SELECT a, ax, b, cnt FROM t1 CROSS JOIN t3 WHERE b IS NOT NULL} {
- db eval {INSERT INTO t2(x,y) VALUES($b,$cnt)}
- # puts "a,b,cnt = ($a,$b,$cnt)"
- incr i
- if {$i%2==1} {
- set bx [expr {$b+1000}]
- # puts "INSERT ($a),$bx"
- db eval {INSERT INTO t1(a,ax,b) VALUES(printf('(%s)',$a),random(),$bx)}
- } else {
- # puts "DELETE a=$a"
- db eval {DELETE FROM t1 WHERE a=$a}
- }
- db eval {COMMIT; BEGIN}
- }
- db one {COMMIT; SELECT count(*) FROM t1;}
-} {20}
-
-finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3100200/test/btree01.test ('k') | third_party/sqlite/sqlite-src-3100200/test/btreefault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698