/ Check-in [12f2d24f]
Login

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

Overview
Comment:Clear the $result variable prior to using it in corrupt2.test. (CVS 5624)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 12f2d24f88e55d170dd7750e7904ff14e84e820e
User & Date: drh 2008-08-27 16:14:21
Context
2008-08-27
16:38
Modifications to malloc5.test to account for the fact that sqlite3_release_memory() no longer reclaims dirty pages. (CVS 5625) check-in: b01c65b0 user: danielk1977 tags: trunk
16:14
Clear the $result variable prior to using it in corrupt2.test. (CVS 5624) check-in: 12f2d24f user: drh tags: trunk
15:21
In the test logic: load the md5sum() SQL function as a separate autoloaded extension. (CVS 5623) check-in: d4438251 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/corrupt2.test.

     9      9   #
    10     10   #***********************************************************************
    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.
    15     15   #
    16         -# $Id: corrupt2.test,v 1.14 2008/08/02 20:09:37 drh Exp $
           16  +# $Id: corrupt2.test,v 1.15 2008/08/27 16:14:21 drh Exp $
    17     17   
    18     18   set testdir [file dirname $argv0]
    19     19   source $testdir/tester.tcl
    20     20   
    21     21   # The following tests - corrupt2-1.* - create some databases corrupted in
    22     22   # specific ways and ensure that SQLite detects them as corrupt.
    23     23   #
................................................................................
   175    175   
   176    176   do_test corrupt2-4.1 {
   177    177     catchsql {
   178    178       SELECT * FROM t2;
   179    179     } db2
   180    180   } {1 {database disk image is malformed}}
   181    181   
          182  +unset -nocomplain result
   182    183   do_test corrupt2-5.1 {
   183    184     file delete -force corrupt.db
   184    185     file delete -force corrupt.db-journal
   185    186     sqlite3 db2 corrupt.db 
   186    187   
   187    188     execsql {
   188    189       PRAGMA auto_vacuum = 0;