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

Unified Diff: third_party/sqlite/src/test/memdb.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/malloc_common.tcl ('k') | third_party/sqlite/src/test/memsubsys1.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/memdb.test
diff --git a/third_party/sqlite/src/test/memdb.test b/third_party/sqlite/src/test/memdb.test
index a2efc0369b7e08234a7322615c861243e3781e0a..7bad26f526b5e13315a9494cd5016c108d0d8d72 100644
--- a/third_party/sqlite/src/test/memdb.test
+++ b/third_party/sqlite/src/test/memdb.test
@@ -419,11 +419,10 @@ ifcapable autovacuum {
INSERT INTO t1 VALUES(randstr(1000,1000));
INSERT INTO t1 VALUES(randstr(1000,1000));
}
- set memused [lindex [sqlite3_status SQLITE_STATUS_MEMORY_USED 0] 1]
- set pgovfl [lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_OVERFLOW 0] 1]
+ set before [db one {PRAGMA page_count}]
execsql { DELETE FROM t1 }
- set memused2 [lindex [sqlite3_status SQLITE_STATUS_MEMORY_USED 0] 1]
- expr {($memused2 + 2048 < $memused) || $pgovfl==0}
+ set after [db one {PRAGMA page_count}]
+ expr {$before>$after}
} {1}
}
« no previous file with comments | « third_party/sqlite/src/test/malloc_common.tcl ('k') | third_party/sqlite/src/test/memsubsys1.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698