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

Unified Diff: third_party/sqlite/src/test/fts3fault2.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « third_party/sqlite/src/test/fts3fault.test ('k') | third_party/sqlite/src/test/fts3matchinfo.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/fts3fault2.test
diff --git a/third_party/sqlite/src/test/fts3fault2.test b/third_party/sqlite/src/test/fts3fault2.test
index f2d10bc3f8476649153ef3a485e8e9a0cabbf9d1..030ff73dc23e13bba6b8b26b79e6886dcebb8585 100644
--- a/third_party/sqlite/src/test/fts3fault2.test
+++ b/third_party/sqlite/src/test/fts3fault2.test
@@ -155,4 +155,23 @@ ifcapable fts3_unicode {
}
}
+reset_db
+do_test 6.0 {
+ execsql {
+ CREATE VIRTUAL TABLE t6 USING fts4(x,order=DESC);
+ INSERT INTO t6(docid, x) VALUES(-1,'a b');
+ INSERT INTO t6(docid, x) VALUES(1, 'b');
+ }
+ faultsim_save_and_close
+} {}
+
+do_faultsim_test 6.1 -faults oom* -prep {
+ faultsim_restore_and_reopen
+ db eval {SELECT * FROM sqlite_master}
+} -body {
+ execsql { SELECT docid FROM t6 WHERE t6 MATCH '"a* b"' }
+} -test {
+ faultsim_test_result {0 -1}
+}
+
finish_test
« no previous file with comments | « third_party/sqlite/src/test/fts3fault.test ('k') | third_party/sqlite/src/test/fts3matchinfo.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698