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

Unified Diff: third_party/sqlite/src/test/malloc.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/main.test ('k') | third_party/sqlite/src/test/malloc5.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/malloc.test
diff --git a/third_party/sqlite/src/test/malloc.test b/third_party/sqlite/src/test/malloc.test
index 86145672a218a671aa2573307e8282b0ff0fdda9..dbf4699b2794ae9a14550e679523e3955003feb6 100644
--- a/third_party/sqlite/src/test/malloc.test
+++ b/third_party/sqlite/src/test/malloc.test
@@ -923,6 +923,27 @@ do_faultsim_test 41.2 -faults oom* -body {
faultsim_integrity_check
}
+reset_db
+do_execsql_test 42.0 {
+ CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
+ CREATE TABLE t2(a, b);
+ CREATE VIEW a002 AS SELECT *, sum(b) AS m FROM t2 GROUP BY a;
+}
+faultsim_save_and_close
+do_faultsim_test 42 -faults oom-tran* -prep {
+ faultsim_restore_and_reopen
+ execsql { SELECT * FROM sqlite_master }
+} -body {
+ execsql {
+ SELECT t1.z, a002.m
+ FROM t1 JOIN a002 ON t1.y=a002.m
+ WHERE t1.x IN (1,2,3);
+ }
+} -test {
+ faultsim_test_result {0 {}}
+}
+
+
# Ensure that no file descriptors were leaked.
do_test malloc-99.X {
catch {db close}
« no previous file with comments | « third_party/sqlite/src/test/main.test ('k') | third_party/sqlite/src/test/malloc5.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698