/ Check-in [9987a7b1]
Login

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

Overview
Comment:Fix the output labels on the tests in malloc9. (CVS 4966)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9987a7b193095dc90a83666bdac5e23105909cba
User & Date: drh 2008-04-04 12:21:26
Context
2008-04-04
15:12
Smaller and hopefully faster routine for converting blob literals into binary. (CVS 4967) check-in: 92d49499 user: drh tags: trunk
12:21
Fix the output labels on the tests in malloc9. (CVS 4966) check-in: 9987a7b1 user: drh tags: trunk
12:21
Fix the TCL interface so that it does not use unpublished interfaces. (CVS 4965) check-in: 046a98a8 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/malloc9.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   # This file contains additional out-of-memory checks (see malloc.tcl)
    12     12   # added to expose a bug in out-of-memory handling for sqlite3_prepare().
    13     13   #
    14         -# $Id: malloc9.test,v 1.4 2008/02/18 22:24:58 drh Exp $
           14  +# $Id: malloc9.test,v 1.5 2008/04/04 12:21:26 drh Exp $
    15     15   
    16     16   set testdir [file dirname $argv0]
    17     17   source $testdir/tester.tcl
    18     18   source $testdir/malloc_common.tcl
    19     19   
    20     20   # Only run these tests if memory debugging is turned on.
    21     21   #
................................................................................
    22     22   if {!$MEMDEBUG} {
    23     23      puts "Skipping malloc9 tests: not compiled with -DSQLITE_MEMDEBUG..."
    24     24      finish_test
    25     25      return
    26     26   }
    27     27   
    28     28   
    29         -do_malloc_test 1 -tclprep {
           29  +do_malloc_test malloc-9.1 -tclprep {
    30     30     set sql {CREATE TABLE t1(x)}
    31     31     set sqlbytes [string length $sql]
    32     32     append sql {; INSERT INTO t1 VALUES(1)}
    33     33   } -tclbody {
    34     34     if {[catch {sqlite3_prepare db $sql $sqlbytes TAIL} STMT]} {
    35     35       set msg $STMT
    36     36       set STMT {}
................................................................................
    39     39   } -cleanup {
    40     40     if {$STMT!=""} {
    41     41       sqlite3_finalize $STMT
    42     42     }
    43     43   }
    44     44   
    45     45   # Ensure that no file descriptors were leaked.
    46         -do_test malloc-99.X {
           46  +do_test malloc9-99.X {
    47     47     catch {db close}
    48     48     set sqlite_open_file_count
    49     49   } {0}
    50     50   
    51     51   finish_test