/ Check-in [cdb97d41]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fixes for test cases running in the "mmap" permutation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cdb97d41abf4a3b8e22fa8ca9f3aab4a3f968d27
User & Date: dan 2013-07-06 18:07:57
Context
2013-07-08
01:27
Add an optional 5th parameter to the next_char() function that is the collating sequence to use for comparison. check-in: 9415db6e user: drh tags: trunk
2013-07-06
18:07
Fixes for test cases running in the "mmap" permutation. check-in: cdb97d41 user: dan tags: trunk
17:57
Drop any existing mapping of the database file when exiting the pager "error state", as it may at this point be too large for the database file. Do not invoke file-control MMAP_SIZE if the database file handle does not support xFetch and xUnfetch (on the grounds that xUnfetch(0) calls to invalidate the mapping cannot be made). check-in: 0ae7e75b user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/memsubsys1.test.

    90     90   # Test 2:  Activate PAGECACHE with 20 pages
    91     91   #
    92     92   db close
    93     93   sqlite3_shutdown
    94     94   sqlite3_config_pagecache [expr 1024+$xtra_size] 20
    95     95   sqlite3_initialize
    96     96   reset_highwater_marks
    97         -build_test_db memsubsys1-2 {PRAGMA page_size=1024}
           97  +build_test_db memsubsys1-2 {PRAGMA page_size=1024; PRAGMA mmap_size=0}
    98     98   #show_memstats
    99     99   set MEMORY_MANAGEMENT $sqlite_options(memorymanage)
   100    100   ifcapable !malloc_usable_size {
   101    101    do_test memsubsys1-2.3 {
   102    102       set pg_ovfl [lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_OVERFLOW 0] 2]
   103    103     } [expr ($TEMP_STORE>1 || $MEMORY_MANAGEMENT==0)*1024]
   104    104   }

Changes to test/pcache.test.

    40     40   } {current 0 max 0 min 0 recyclable 0}
    41     41   
    42     42   do_test pcache-1.2 {
    43     43     sqlite3 db test.db
    44     44     execsql {
    45     45       PRAGMA cache_size=12;
    46     46       PRAGMA auto_vacuum=0;
           47  +    PRAGMA mmap_size=0;
    47     48     }
    48     49     pcache_stats
    49     50   } {current 1 max 12 min 10 recyclable 1}
    50     51   
    51     52   do_test pcache-1.3 {
    52     53     execsql {
    53     54       BEGIN;