/ Check-in [603c40e5]
Login

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

Overview
Comment:Make sure malloc3.test runs even if a CREATE TABLE transaction commits prior to the last OOM error. (CVS 5820)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:603c40e5b47e4798136af5420a1fa1511791a934
User & Date: drh 2008-10-14 15:54:08
Context
2008-10-14
17:58
Fix the xRandomness() method on the unix VFS to return the number of bytes of randomness obtained. (CVS 5821) check-in: b7687e2f user: drh tags: trunk
15:54
Make sure malloc3.test runs even if a CREATE TABLE transaction commits prior to the last OOM error. (CVS 5820) check-in: 603c40e5 user: drh tags: trunk
14:56
Update main.mk so that a couple of fts3 files are compiled with SQLITE_TEST when building testfixture. (CVS 5819) check-in: 8eb315ee user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/malloc3.test.

     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # This file contains tests to ensure that the library handles malloc() failures
    13     13   # correctly. The emphasis of these tests are the _prepare(), _step() and
    14     14   # _finalize() calls.
    15     15   #
    16         -# $Id: malloc3.test,v 1.23 2008/05/13 19:41:54 shane Exp $
           16  +# $Id: malloc3.test,v 1.24 2008/10/14 15:54:08 drh Exp $
    17     17   
    18     18   set testdir [file dirname $argv0]
    19     19   source $testdir/tester.tcl
    20     20   source $testdir/malloc_common.tcl
    21     21   
    22     22   # Only run these tests if memory debugging is turned on.
    23     23   #
................................................................................
   193    193   #
   194    194   TEST 1 {
   195    195     do_test $testid {
   196    196       execsql {SELECT tbl_name FROM sqlite_master;}
   197    197     } {}
   198    198   }
   199    199   SQL { 
   200         -  CREATE TABLE abc(a, b, c); 
          200  +  CREATE TABLE IF NOT EXISTS abc(a, b, c); 
   201    201   }
   202    202   TEST 2 {
   203    203     do_test $testid.1 {
   204    204       execsql {SELECT tbl_name FROM sqlite_master;}
   205    205     } {abc}
   206    206   }
   207    207