/ Check-in [a3401d9e]
Login

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

Overview
Comment:Fix the dbstatus.test script so that it works correctly on 64-bit machines.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a3401d9ee540828f3efd26d89f6b771e0ecb2777
User & Date: drh 2010-07-28 18:51:27
Context
2010-07-28
19:17
Get SQLITE_OMIT_VIRTUALTABLE working again after being broken by recent changes. check-in: 33b1e862 user: drh tags: trunk
18:51
Fix the dbstatus.test script so that it works correctly on 64-bit machines. check-in: a3401d9e user: drh tags: trunk
17:36
Improve the accuracy of the Pager heap usage estimate. check-in: ae89777e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/dbstatus.test.

    29     29     set sz1 [lindex [sqlite3_db_status db SQLITE_DBSTATUS_CACHE_USED 0] 1]
    30     30     db eval {
    31     31       CREATE TABLE t2(y);
    32     32     }
    33     33     set sz2 [lindex [sqlite3_db_status db SQLITE_DBSTATUS_CACHE_USED 0] 1]
    34     34     set ::PAGESZ [expr {$sz2-$sz1}]
    35     35     set ::BASESZ [expr {$sz1-$::PAGESZ}]
    36         -  expr {$::PAGESZ>1024 && $::PAGESZ<1200}
           36  +  expr {$::PAGESZ>1024 && $::PAGESZ<1300}
    37     37   } {1}
    38     38   do_test dbstatus-1.2 {
    39     39     db eval {
    40     40       INSERT INTO t1 VALUES(zeroblob(9000));
    41     41     }
    42     42     lindex [sqlite3_db_status db SQLITE_DBSTATUS_CACHE_USED 0] 1
    43     43   } [expr {$BASESZ + 10*$PAGESZ}]