/ Check-in [4a6ee886]
Login

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

Overview
Comment:Make sure everything is deallocated before calling sqlite3_shutdown(). Ticket #3259. (CVS 5501)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4a6ee88697ddc28e0c7df1954d1526de18191827
User & Date: drh 2008-07-30 13:15:46
Context
2008-07-30
13:27
Implicit string->numeric conversion should go to an integer value when possible. Ticket #3257. (CVS 5502) check-in: da0e4bff user: drh tags: trunk
13:15
Make sure everything is deallocated before calling sqlite3_shutdown(). Ticket #3259. (CVS 5501) check-in: 4a6ee886 user: drh tags: trunk
13:14
Remove unused sqlite3VdbeMemDynamicify() function from the VDBE. (CVS 5500) check-in: aee63308 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/permutations.test.

     5      5   #
     6      6   #    May you do good and not evil.
     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   #
    12         -# $Id: permutations.test,v 1.17 2008/07/25 08:49:01 danielk1977 Exp $
           12  +# $Id: permutations.test,v 1.18 2008/07/30 13:15:46 drh Exp $
    13     13   
    14     14   set testdir [file dirname $argv0]
    15     15   source $testdir/tester.tcl
    16     16   
    17     17   # Argument processing.
    18     18   #
    19     19   set ::testmode [lindex $argv 0]
................................................................................
   137    137   # Start of tests
   138    138   
   139    139   # Run some tests using pre-allocated page and scratch blocks.
   140    140   #
   141    141   run_tests "memsubsys1" -description {
   142    142     Tests using pre-allocated page and scratch blocks
   143    143   } -initialize {
          144  +  catch {db close}
   144    145     sqlite3_shutdown
   145    146     sqlite3_config_pagecache 4096 24
   146    147     sqlite3_config_scratch 25000 1
   147    148     sqlite3_initialize
   148    149   } -shutdown {
   149    150     catch {db close}
   150    151     sqlite3_shutdown
................................................................................
   155    156   
   156    157   # Run some tests using pre-allocated page and scratch blocks. This time
   157    158   # the allocations are too small to use in most cases.
   158    159   #
   159    160   run_tests "memsubsys2" -description {
   160    161     Tests using small pre-allocated page and scratch blocks
   161    162   } -initialize {
          163  +  catch {db close}
   162    164     sqlite3_shutdown
   163    165     sqlite3_config_pagecache 512 5
   164    166     sqlite3_config_scratch 1000 1
   165    167     sqlite3_initialize
   166    168   } -shutdown {
   167    169     catch {db close}
   168    170     sqlite3_shutdown

Changes to test/speed1.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 implements regression tests for SQLite library.  The
    12     12   # focus of this script is measuring executing speed.
    13     13   #
    14         -# $Id: speed1.test,v 1.8 2008/07/29 14:29:07 drh Exp $
           14  +# $Id: speed1.test,v 1.9 2008/07/30 13:15:46 drh Exp $
    15     15   #
    16     16   
    17     17   sqlite3_shutdown
    18         -sqlite3_config_scratch 29000 1
           18  +#sqlite3_config_scratch 29000 1
    19     19   sqlite3_config_lookaside 1000 300
    20         -sqlite3_config_pagecache 1024 10000
           20  +#sqlite3_config_pagecache 1024 10000
    21     21   set testdir [file dirname $argv0]
    22     22   source $testdir/tester.tcl
    23     23   speed_trial_init speed1
    24     24   
    25     25   # Set a uniform random seed
    26     26   expr srand(0)
    27     27   

Changes to test/speed1p.test.

     9      9   #
    10     10   #*************************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this script is measuring executing speed.  
    13     13   #
    14     14   # This is a copy of speed1.test modified to user prepared statements.
    15     15   #
    16         -# $Id: speed1p.test,v 1.4 2008/07/29 14:29:07 drh Exp $
           16  +# $Id: speed1p.test,v 1.5 2008/07/30 13:15:46 drh Exp $
    17     17   #
    18     18   
    19     19   sqlite3_shutdown
    20         -sqlite3_config_scratch 29000 1
           20  +#sqlite3_config_scratch 29000 1
    21     21   sqlite3_config_lookaside 2048 300
    22         -sqlite3_config_pagecache 1024 11000
           22  +#sqlite3_config_pagecache 1024 11000
    23     23   set testdir [file dirname $argv0]
    24     24   source $testdir/tester.tcl
    25     25   speed_trial_init speed1
    26     26   
    27     27   # Set a uniform random seed
    28     28   expr srand(0)
    29     29