/ Check-in [edd27669]
Login

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

Overview
Comment:Add "do_not_use_codec" logic to some of the TCL based test cases that read/write directly to the DB.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: edd27669f3d0ec8c878267fb5cae9b73fcdfd2b8
User & Date: shaneh 2011-02-16 01:23:51
Context
2011-02-16
23:32
Fix harmless compiler warnings in the query planner. check-in: 31fc4ba6 user: drh tags: trunk
01:23
Add "do_not_use_codec" logic to some of the TCL based test cases that read/write directly to the DB. check-in: edd27669 user: shaneh tags: trunk
2011-02-14
03:49
Skip some tests in capi3e.test when compiled with SQLITE_OMIT_UTF16. check-in: b04304b9 user: shaneh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/corrupt3.test.

    14     14   # segfault if it sees a corrupt database file.
    15     15   #
    16     16   # $Id: corrupt3.test,v 1.2 2007/04/06 21:42:22 drh Exp $
    17     17   
    18     18   set testdir [file dirname $argv0]
    19     19   source $testdir/tester.tcl
    20     20   
    21         -if {[sqlite3 -has-codec]} { finish_test ; return }
           21  +# Do not use a codec for tests in this file, as the database file is
           22  +# manipulated directly using tcl scripts (using the [hexio_write] command).
           23  +#
           24  +do_not_use_codec
    22     25   
    23     26   # We must have the page_size pragma for these tests to work.
    24     27   #
    25     28   ifcapable !pager_pragmas {
    26     29     finish_test
    27     30     return
    28     31   }

Changes to test/corruptA.test.

    14     14   # segfault if it sees a corrupt database file.  It specifically focuses
    15     15   # on corrupt database headers.
    16     16   #
    17     17   # $Id: corruptA.test,v 1.1 2008/07/11 16:39:23 drh Exp $
    18     18   
    19     19   set testdir [file dirname $argv0]
    20     20   source $testdir/tester.tcl
           21  +
           22  +# Do not use a codec for tests in this file, as the database file is
           23  +# manipulated directly using tcl scripts (using the [hexio_write] command).
           24  +#
           25  +do_not_use_codec
    21     26   
    22     27   
    23     28   # Create a database to work with.
    24     29   #
    25     30   do_test corruptA-1.1 {
    26     31     execsql {
    27     32       CREATE TABLE t1(x);

Changes to test/corruptD.test.

     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # $Id: corruptD.test,v 1.2 2009/06/05 17:09:12 drh Exp $
    13     13   
    14     14   set testdir [file dirname $argv0]
    15     15   source $testdir/tester.tcl
           16  +
           17  +# Do not use a codec for tests in this file, as the database file is
           18  +# manipulated directly using tcl scripts (using the [hexio_write] command).
           19  +#
           20  +do_not_use_codec
    16     21   
    17     22   #--------------------------------------------------------------------------
    18     23   # OVERVIEW
    19     24   #
    20     25   #   This test file attempts to verify that SQLite does not read past the 
    21     26   #   end of any in-memory buffers as a result of corrupted database page 
    22     27   #   images. Usually this happens because a field within a database page

Changes to test/exclusive2.test.

    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.
    12     12   #
    13     13   # $Id: exclusive2.test,v 1.10 2008/11/27 02:22:11 drh Exp $
    14     14   
    15     15   set testdir [file dirname $argv0]
    16     16   source $testdir/tester.tcl
           17  +
           18  +# Do not use a codec for tests in this file, as the database file is
           19  +# manipulated directly using tcl scripts (using the [hexio_write] command).
           20  +#
           21  +do_not_use_codec
    17     22   
    18     23   ifcapable {!pager_pragmas} {
    19     24     finish_test
    20     25     return
    21     26   }
    22     27   
    23     28   # This module does not work right if the cache spills at unexpected

Changes to test/vacuum2.test.

    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this file is testing the VACUUM statement.
    13     13   #
    14     14   # $Id: vacuum2.test,v 1.10 2009/02/18 20:31:18 drh Exp $
    15     15   
    16     16   set testdir [file dirname $argv0]
    17     17   source $testdir/tester.tcl
           18  +
           19  +# Do not use a codec for tests in this file, as the database file is
           20  +# manipulated directly using tcl scripts (using the [hexio_write] command).
           21  +#
           22  +do_not_use_codec
    18     23   
    19     24   # If the VACUUM statement is disabled in the current build, skip all
    20     25   # the tests in this file.
    21     26   #
    22     27   ifcapable {!vacuum||!autoinc} {
    23     28     finish_test
    24     29     return