/ Check-in [f7720f1b]
Login

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

Overview
Comment:Increase limits on memsubsys1 tests to accomodate the larger structure sizes on 64-bit platforms. (CVS 5479)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f7720f1bfcc6dcdd60002520e10f545a6f0eb126
User & Date: drh 2008-07-25 13:39:08
Context
2008-07-25
14:53
Fix the corrupt7 tests to track changes in the integrity check error message. (CVS 5480) check-in: 22177dac user: drh tags: trunk
13:39
Increase limits on memsubsys1 tests to accomodate the larger structure sizes on 64-bit platforms. (CVS 5479) check-in: f7720f1b user: drh tags: trunk
13:32
Require the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture with sqlite3_instvfs enabled. This allows fulltest to run on platforms for which we do not have a working hwtime.h (ex: ppc, s390). Change requested from the SuSE team. (CVS 5478) check-in: 16c164e7 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/memsubsys1.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # This file contains tests of the memory allocation subsystem
    13     13   #
    14         -# $Id: memsubsys1.test,v 1.4 2008/07/12 14:52:20 drh Exp $
           14  +# $Id: memsubsys1.test,v 1.5 2008/07/25 13:39:08 drh Exp $
    15     15   
    16     16   set testdir [file dirname $argv0]
    17     17   source $testdir/tester.tcl
    18     18   sqlite3_reset_auto_extension
    19     19   
    20     20   # This procedure constructs a new database in test.db.  It fills
    21     21   # this database with many small records (enough to force multiple
................................................................................
   129    129   do_test memsubsys1-4.4 {
   130    130     set pg_ovfl [lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_OVERFLOW 0] 2]
   131    131     set pg_used [lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_USED 0] 2]
   132    132     expr {$pg_used*1024 + $pg_ovfl}
   133    133   } $max_pagecache
   134    134   do_test memsubsys1-4.5 {
   135    135     set maxreq [lindex [sqlite3_status SQLITE_STATUS_MALLOC_SIZE 0] 2]
   136         -  expr {$maxreq<4096}
          136  +  expr {$maxreq<7000}
   137    137   } 1
   138    138   do_test memsubsys1-4.6 {
   139    139     set s_used [lindex [sqlite3_status SQLITE_STATUS_SCRATCH_USED 0] 2]
   140    140   } 1
   141    141   
   142    142   # Test 5:  Activate both PAGECACHE and SCRATCH.  But make the page size
   143    143   # such that the SCRATCH allocations are too small.
................................................................................
   207    207     expr {$pg_used<24}
   208    208   } 1
   209    209   do_test memsubsys1-7.4 {
   210    210     set pg_ovfl [lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_OVERFLOW 0] 2]
   211    211   } 0
   212    212   do_test memsubsys1-7.5 {
   213    213     set maxreq [lindex [sqlite3_status SQLITE_STATUS_MALLOC_SIZE 0] 2]
   214         -  expr {$maxreq<2500}
          214  +  expr {$maxreq<4000}
   215    215   } 1
   216    216   do_test memsubsys1-7.6 {
   217    217     set s_used [lindex [sqlite3_status SQLITE_STATUS_SCRATCH_USED 0] 2]
   218    218   } 1
   219    219   do_test memsubsys1-7.7 {
   220    220     set s_ovfl [lindex [sqlite3_status SQLITE_STATUS_SCRATCH_OVERFLOW 0] 2]
   221    221   } 0