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

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/softheap1.test

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 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
Index: third_party/sqlite/sqlite-src-3080704/test/softheap1.test
diff --git a/third_party/sqlite/src/test/softheap1.test b/third_party/sqlite/sqlite-src-3080704/test/softheap1.test
similarity index 67%
copy from third_party/sqlite/src/test/softheap1.test
copy to third_party/sqlite/sqlite-src-3080704/test/softheap1.test
index 685555366ed697d4597f8218930b2b8a2a5d6157..522e455e339cc81fa7fd679e7334ce6ec35afc2a 100644
--- a/third_party/sqlite/src/test/softheap1.test
+++ b/third_party/sqlite/sqlite-src-3080704/test/softheap1.test
@@ -24,10 +24,27 @@ ifcapable !integrityck {
return
}
-sqlite3_soft_heap_limit -1
-sqlite3_soft_heap_limit 0
-sqlite3_soft_heap_limit 5000
+do_test softheap1-1.0 {
+ execsql {PRAGMA soft_heap_limit}
+} [sqlite3_soft_heap_limit -1]
do_test softheap1-1.1 {
+ execsql {PRAGMA soft_heap_limit=123456; PRAGMA soft_heap_limit;}
+} {123456 123456}
+do_test softheap1-1.2 {
+ sqlite3_soft_heap_limit -1
+} {123456}
+do_test softheap1-1.3 {
+ execsql {PRAGMA soft_heap_limit(-1); PRAGMA soft_heap_limit;}
+} {123456 123456}
+do_test softheap1-1.4 {
+ execsql {PRAGMA soft_heap_limit(0); PRAGMA soft_heap_limit;}
+} {0 0}
+
+sqlite3_soft_heap_limit 5000
+do_test softheap1-2.0 {
+ execsql {PRAGMA soft_heap_limit}
+} {5000}
+do_test softheap1-2.1 {
execsql {
PRAGMA auto_vacuum=1;
CREATE TABLE t1(x);
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/soak.test ('k') | third_party/sqlite/sqlite-src-3080704/test/sort.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698