/ Check-in [deadc254]
Login

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

Overview
Comment:Force the corruptC.test script to use file format 1. (CVS 5930)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: deadc2548d1e43cbbfe3af049cc5f59ee55bda46
User & Date: drh 2008-11-19 18:43:07
Context
2008-11-19
21:03
Version 3.6.6 (CVS 5931) check-in: 01a6e282 user: drh tags: trunk, release
18:43
Force the corruptC.test script to use file format 1. (CVS 5930) check-in: deadc254 user: drh tags: trunk
18:30
In bitvec.c: removed some of the recursion, minor optimizations, added comments, improved consistency. (CVS 5929) check-in: 54d714fb user: shane tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/corruptC.test.

    11     11   # This file implements regression tests for SQLite library.
    12     12   #
    13     13   # This file implements tests to make sure SQLite does not crash or
    14     14   # segfault if it sees a corrupt database file.  It creates a base
    15     15   # data base file, then tests that single byte corruptions in 
    16     16   # increasingly larger quantities are handled gracefully.
    17     17   #
    18         -# $Id: corruptC.test,v 1.9 2008/11/13 18:29:51 shane Exp $
           18  +# $Id: corruptC.test,v 1.10 2008/11/19 18:43:07 drh Exp $
    19     19   
    20     20   catch {file delete -force test.db test.db-journal test.bu}
    21     21   
    22     22   set testdir [file dirname $argv0]
    23     23   source $testdir/tester.tcl
    24     24   
    25     25   # Construct a compact, dense database for testing.
    26     26   #
    27     27   do_test corruptC-1.1 {
    28     28     execsql {
    29     29       PRAGMA auto_vacuum = 0;
           30  +    PRAGMA legacy_file_format=1;
    30     31       BEGIN;
    31     32       CREATE TABLE t1(x,y);
    32     33       INSERT INTO t1 VALUES(1,1);
    33     34       INSERT OR IGNORE INTO t1 SELECT x*2,y FROM t1;
    34     35       INSERT OR IGNORE INTO t1 SELECT x*3,y FROM t1;
    35     36       INSERT OR IGNORE INTO t1 SELECT x*5,y FROM t1;
    36     37       INSERT OR IGNORE INTO t1 SELECT x*7,y FROM t1;