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

Unified Diff: third_party/sqlite/src/ext/fts5/test/fts5fault4.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/fts5fault4.test
diff --git a/third_party/sqlite/src/ext/fts5/test/fts5fault4.test b/third_party/sqlite/src/ext/fts5/test/fts5fault4.test
index 989a372d496f453e4732b3a580a1abe93dca857a..bfa54a5b04c75d97dd88c32901d660ca37895b34 100644
--- a/third_party/sqlite/src/ext/fts5/test/fts5fault4.test
+++ b/third_party/sqlite/src/ext/fts5/test/fts5fault4.test
@@ -41,27 +41,6 @@ do_faultsim_test 1 -faults oom-* -prep {
}
#-------------------------------------------------------------------------
-# An OOM within an "ORDER BY rank" query.
-#
-db func rnddoc fts5_rnddoc
-do_execsql_test 2.0 {
- CREATE VIRTUAL TABLE xx USING fts5(x);
- INSERT INTO xx VALUES ('abc ' || rnddoc(10));
- INSERT INTO xx VALUES ('abc abc' || rnddoc(9));
- INSERT INTO xx VALUES ('abc abc abc' || rnddoc(8));
-} {}
-faultsim_save_and_close
-
-do_faultsim_test 2 -faults oom-* -prep {
- faultsim_restore_and_reopen
- execsql { SELECT * FROM xx }
-} -body {
- execsql { SELECT rowid FROM xx WHERE xx MATCH 'abc' ORDER BY rank }
-} -test {
- faultsim_test_result [list 0 {3 2 1}]
-}
-
-#-------------------------------------------------------------------------
# An OOM while "reseeking" an FTS cursor.
#
do_execsql_test 3.0 {
@@ -107,7 +86,7 @@ set ::res [db eval {SELECT rowid, x1 FROM x1 WHERE x1 MATCH '*reads'}]
do_faultsim_test 4 -faults oom-* -body {
db eval {SELECT rowid, x, x1 FROM x1 WHERE x1 MATCH '*reads'}
} -test {
- faultsim_test_result {0 {0 {} 4}}
+ faultsim_test_result {0 {0 {} 3}}
}
#-------------------------------------------------------------------------
« no previous file with comments | « third_party/sqlite/src/ext/fts5/test/fts5fault2.test ('k') | third_party/sqlite/src/ext/fts5/test/fts5fault5.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698