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

Unified Diff: third_party/sqlite/src/ext/fts5/test/fts5multiclient.test

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/src/ext/fts5/test/fts5multiclient.test
diff --git a/third_party/sqlite/src/ext/fts5/test/fts5multiclient.test b/third_party/sqlite/src/ext/fts5/test/fts5multiclient.test
new file mode 100644
index 0000000000000000000000000000000000000000..a1e9aa0d308fdf40d27a948bb1126ce528edf0b1
--- /dev/null
+++ b/third_party/sqlite/src/ext/fts5/test/fts5multiclient.test
@@ -0,0 +1,48 @@
+# 2016 March 17
+#
+# 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.
+#
+#*************************************************************************
+#
+
+source [file join [file dirname [info script]] fts5_common.tcl]
+source $testdir/lock_common.tcl
+
+set testprefix fts5multiclient
+return_if_no_fts5
+
+foreach_detail_mode $testprefix {
+
+do_multiclient_test tn {
+
+ do_test 1.$tn.1 {
+ sql1 { CREATE VIRTUAL TABLE t1 USING fts5(x, detail=%DETAIL%) }
+ sql1 { INSERT INTO t1 VALUES('a b c') }
+ sql2 { SELECT rowid FROM t1('b') }
+ } {1}
+
+ do_test 1.$tn.2 {
+ sql2 { INSERT INTO t1 VALUES('a b c') }
+ sql1 { SELECT rowid FROM t1('b') }
+ } {1 2}
+
+ do_test 1.$tn.3 {
+ sql2 { INSERT INTO t1 VALUES('a b c') }
+ sql1 { SELECT rowid FROM t1('b') }
+ } {1 2 3}
+
+ do_test 1.$tn.4 {
+ sql2 { INSERT INTO t1 VALUES('a b c') }
+ sql1 { INSERT INTO t1 VALUES('a b c') }
+ sql3 { INSERT INTO t1(t1) VALUES('integrity-check') }
+ } {}
+
+};# do_multiclient_test
+};# foreach_detail_mode
+finish_test
+
« no previous file with comments | « third_party/sqlite/src/ext/fts5/test/fts5merge2.test ('k') | third_party/sqlite/src/ext/fts5/test/fts5optimize.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698