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

Unified Diff: third_party/sqlite/src/ext/fts5/test/fts5fault7.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/fts5fault7.test
diff --git a/third_party/sqlite/src/ext/fts5/test/fts5fault7.test b/third_party/sqlite/src/ext/fts5/test/fts5fault7.test
index bfe6420615a31e2c19b23196bc389a3f5216a26d..a35b19ade2093754d2e13160212e33b09a14f0f9 100644
--- a/third_party/sqlite/src/ext/fts5/test/fts5fault7.test
+++ b/third_party/sqlite/src/ext/fts5/test/fts5fault7.test
@@ -99,7 +99,7 @@ do_execsql_test 2.0 {
}
faultsim_save_and_close
-do_faultsim_test 2 -faults oom-* -prep {
+do_faultsim_test 2.1 -faults oom-* -prep {
faultsim_restore_and_reopen
} -body {
db eval { UPDATE OR REPLACE xy SET rowid=3 WHERE rowid = 2 }
@@ -107,6 +107,13 @@ do_faultsim_test 2 -faults oom-* -prep {
faultsim_test_result {0 {}}
}
+# Test fault-injection when an empty expression is parsed.
+#
+do_faultsim_test 2.2 -faults oom-* -body {
+ db eval { SELECT * FROM xy('""') }
+} -test {
+ faultsim_test_result {0 {}}
+}
finish_test
« no previous file with comments | « third_party/sqlite/src/ext/fts5/test/fts5fault5.test ('k') | third_party/sqlite/src/ext/fts5/test/fts5fault8.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698