/ Check-in [3418f1f1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Disable the page cache bulk allocation for the shrink.test and wal.test modules.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3418f1f165a0746cdf130e6a19fa0e1eb56df1d4
User & Date: drh 2015-07-25 03:10:12
Context
2015-07-25
12:03
Fix a test script problem in memsubsys2.test. check-in: 70885729 user: dan tags: trunk
03:10
Disable the page cache bulk allocation for the shrink.test and wal.test modules. check-in: 3418f1f1 user: drh tags: trunk
2015-07-24
23:28
Fix the zeroblob.test script so that it works even on builds where the SQLITE_MAX_LENGTH has been raised to 2147483645. check-in: db129149 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/shrink.test.

    11     11   #
    12     12   # This file contains test cases for sqlite3_db_release_memory and
    13     13   # the PRAGMA shrink_memory statement.
    14     14   #
    15     15   
    16     16   set testdir [file dirname $argv0]
    17     17   source $testdir/tester.tcl
           18  +test_set_config_pagecache 0 0
    18     19   
    19     20   unset -nocomplain baseline
    20     21   do_test shrink-1.1 {
    21     22     db eval {
    22     23       PRAGMA cache_size = 2000;
    23     24       CREATE TABLE t1(x,y);
    24     25       INSERT INTO t1 VALUES(randomblob(1000000),1);
................................................................................
    39     40   } {1}
    40     41   do_test shrink-1.3 {
    41     42     set baseline [sqlite3_memory_used]
    42     43     db eval {PRAGMA shrink_memory}
    43     44     expr {$::baseline > [sqlite3_memory_used]+500000}
    44     45   } {1}
    45     46   
           47  +test_restore_config_pagecache
    46     48   finish_test

Changes to test/wal.test.

    18     18   source $testdir/lock_common.tcl
    19     19   source $testdir/malloc_common.tcl
    20     20   source $testdir/wal_common.tcl
    21     21   
    22     22   set testprefix wal
    23     23   
    24     24   ifcapable !wal {finish_test ; return }
           25  +test_set_config_pagecache 0 0
    25     26   
    26     27   proc reopen_db {} {
    27     28     catch { db close }
    28     29     forcedelete test.db test.db-wal test.db-wal-summary
    29     30     sqlite3_wal db test.db
    30     31   }
    31     32   
................................................................................
  1583   1584     do_test wal-25.$mode {
  1584   1585       db eval "PRAGMA journal_mode=$mode"
  1585   1586       db eval {ATTACH 'test2.db' AS t2; PRAGMA journal_mode=WAL;}
  1586   1587     } {wal}
  1587   1588     db close
  1588   1589   }
  1589   1590   
         1591  +test_restore_config_pagecache
  1590   1592   finish_test