diff options
author | Hans-Christoph Steiner <hans@eds.org> | 2014-10-16 22:51:43 -0400 |
---|---|---|
committer | Hans-Christoph Steiner <hans@eds.org> | 2014-10-16 22:51:43 -0400 |
commit | 9f67c0520ea0d5f11a190197cdf746c512db4ce4 (patch) | |
tree | c88a33f01f20a3d13a09594f114fffacebd0d1a4 /test/softheap1.test | |
parent | ee20336e9c78d2e3782c8d096b9ab4f6ca8ce95f (diff) | |
parent | 569c6676a6ddb0ff73821d7693b5e18ddef809b9 (diff) |
Merge tag 'upstream/3.2.0'
Upstream version 3.2.0
# gpg: Signature made Thu 16 Oct 2014 10:51:39 PM EDT using RSA key ID 374BBE81
# gpg: Good signature from "Hans-Christoph Steiner <hans@guardianproject.info>"
# gpg: aka "Hans-Christoph Steiner <hans@eds.org>"
# gpg: aka "Hans-Christoph Steiner <hans@at.or.at>"
# gpg: aka "[jpeg image of size 5408]"
Diffstat (limited to 'test/softheap1.test')
-rw-r--r-- | test/softheap1.test | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/test/softheap1.test b/test/softheap1.test index 6855553..522e455 100644 --- a/test/softheap1.test +++ b/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); |