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

Unified Diff: third_party/sqlite/src/test/shrink.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/shell5.test ('k') | third_party/sqlite/src/test/skipscan1.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/shrink.test
diff --git a/third_party/sqlite/src/test/shrink.test b/third_party/sqlite/src/test/shrink.test
index e03ebeeb6ecab22d1bb6444736b493f6a8bd8a98..7c9bed08b08cef2a7dea35e4042bb5cecea24cbf 100644
--- a/third_party/sqlite/src/test/shrink.test
+++ b/third_party/sqlite/src/test/shrink.test
@@ -15,6 +15,7 @@
set testdir [file dirname $argv0]
source $testdir/tester.tcl
+test_set_config_pagecache 0 0
unset -nocomplain baseline
do_test shrink-1.1 {
@@ -24,6 +25,9 @@ do_test shrink-1.1 {
INSERT INTO t1 VALUES(randomblob(1000000),1);
}
set ::baseline sqlite3_memory_used
+ # EVIDENCE-OF: R-58814-63508 The sqlite3_db_release_memory(D) interface
+ # attempts to free as much heap memory as possible from database
+ # connection D.
sqlite3_db_release_memory db
expr {$::baseline > [sqlite3_memory_used]+500000}
} {1}
@@ -40,4 +44,5 @@ do_test shrink-1.3 {
expr {$::baseline > [sqlite3_memory_used]+500000}
} {1}
+test_restore_config_pagecache
finish_test
« no previous file with comments | « third_party/sqlite/src/test/shell5.test ('k') | third_party/sqlite/src/test/skipscan1.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698