/ Check-in [ac4cc257]
Login

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

Overview
Comment:Changes to wal3.test to support small default cache size settings. And builds that create autovacuum databases by default.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ac4cc2574bafce30390a34f13228380d017791cb
User & Date: dan 2010-06-08 15:16:10
Context
2010-06-08
15:50
Close database opened by tester.tcl when it is sourced in all.test. Because test scripts are now run in slave interpreters, this connection was not being closed by the first script run as it was previously. check-in: b072e9f6 user: dan tags: trunk
15:16
Changes to wal3.test to support small default cache size settings. And builds that create autovacuum databases by default. check-in: ac4cc257 user: dan tags: trunk
2010-06-07
19:26
In os_unix.c, call munmap() to unmap a shared-memory region prior to closing the associated file descriptor. check-in: 95cc976f user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/wal3.test.

    32     32   # When a rollback or savepoint rollback occurs, the client may remove
    33     33   # elements from one of the hash tables in the wal-index. This block
    34     34   # of test cases tests that nothing appears to go wrong when this is
    35     35   # done.
    36     36   #
    37     37   do_test wal3-1.0 {
    38     38     execsql {
           39  +    PRAGMA cache_size = 2000;
    39     40       PRAGMA page_size = 1024;
    40     41       PRAGMA auto_vacuum = off;
    41     42       PRAGMA synchronous = normal;
    42     43       PRAGMA journal_mode = WAL;
    43     44       PRAGMA wal_autocheckpoint = 0;
    44     45       BEGIN;
    45     46         CREATE TABLE t1(x);
................................................................................
   181    182     #
   182    183     do_test wal3-2.$tn.4 {
   183    184       sql {
   184    185         COMMIT;
   185    186         PRAGMA wal_checkpoint;
   186    187       }
   187    188       file size test.db
   188         -  } [expr 3*1024]
          189  +  } [expr $AUTOVACUUM ? 4*1024 : 3*1024]
   189    190     do_test wal3-2.$tn.5 {
   190    191       sql2 {
   191    192         COMMIT;
   192    193         PRAGMA wal_checkpoint;
   193    194       }
   194    195       file size test.db
   195         -  } [expr 4*1024]
          196  +  } [expr $AUTOVACUUM ? 5*1024 : 4*1024]
   196    197     do_test wal3-2.$tn.6 {
   197    198       sql3 {
   198    199         COMMIT;
   199    200         PRAGMA wal_checkpoint;
   200    201       }
   201    202       file size test.db
   202         -  } [expr 4*1024]
          203  +  } [expr $AUTOVACUUM ? 5*1024 : 4*1024]
   203    204   
   204    205     catch { db close }
   205    206     catch { code2 { db2 close } }
   206    207     catch { code3 { db3 close } }
   207    208     catch { close $::code2_chan }
   208    209     catch { close $::code3_chan }
   209    210   }