/ Check-in [75df2d3d]
Login

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

Overview
Comment:Fix the new ioerr4.test so that it plays well with others. (CVS 5103)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 75df2d3d506abfa4aa4875fb533a5cd160b3f521
User & Date: drh 2008-05-08 01:11:42
Context
2008-05-08
13:54
Increment the version number. (CVS 5104) check-in: ed06d90d user: drh tags: trunk
01:11
Fix the new ioerr4.test so that it plays well with others. (CVS 5103) check-in: 75df2d3d user: drh tags: trunk
2008-05-07
19:11
Fix some problems with multi-file transactions in persistent journal mode. (CVS 5102) check-in: e98a7f87 user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/ioerr4.test.

     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this file is testing for correct handling of I/O errors
    13     13   # during incremental vacuum with a shared cache.
    14     14   #
    15         -# $Id: ioerr4.test,v 1.1 2008/05/07 13:28:38 drh Exp $
           15  +# $Id: ioerr4.test,v 1.2 2008/05/08 01:11:42 drh Exp $
    16     16   
    17     17   set testdir [file dirname $argv0]
    18     18   source $testdir/tester.tcl
    19     19   
    20     20   # This test requires both shared cache and incremental vacuum.
    21     21   #
    22     22   ifcapable {!shared_cache || !autovacuum} {
................................................................................
    24     24     return
    25     25   }
    26     26   
    27     27   # Enable shared cache mode and incremental vacuum.
    28     28   #
    29     29   do_test ioerr4-1.1 {
    30     30     db close
    31         -  sqlite3_enable_shared_cache 1
           31  +  set ::enable_shared_cache [sqlite3_enable_shared_cache 1]
    32     32   } {0}
    33     33   do_test ioerr4-1.2 {
    34     34     file delete -force test.db test.db-journal
    35     35     sqlite3 db test.db
    36     36     sqlite3 db2 test.db
    37     37     db eval {
    38     38       PRAGMA auto_vacuum=INCREMENTAL;
................................................................................
    89     89     set ::DB [sqlite3 db test.db; sqlite3_connection_pointer db]
    90     90     db eval {PRAGMA auto_vacuum=INCREMENTAL}
    91     91     sqlite3 db2 test.db
    92     92   } -tclbody {
    93     93     db eval {PRAGMA incremental_vacuum(5)}
    94     94   }
    95     95   
           96  +db2 close
           97  +file delete -force test.db-bu
           98  +sqlite3_enable_shared_cache $::enable_shared_cache
           99  +
    96    100   finish_test