/ Check-in [f26b0141]
Login

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

Overview
Comment:Explicitly test some error cases that up until now have not been checked. (CVS 3742)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f26b014109b1b20367044c5d3fcb347af73d07aa
User & Date: danielk1977 2007-03-29 12:19:12
Context
2007-03-29
12:24
Explicitly test some error cases that up until now have not been checked. (CVS 3743) check-in: 0b7bd9c3 user: danielk1977 tags: trunk
12:19
Explicitly test some error cases that up until now have not been checked. (CVS 3742) check-in: f26b0141 user: danielk1977 tags: trunk
05:51
Change BtreeMoveto so that it can be biased to the right or to the center. Use a right bias when appending and a center bias when searching. This gives about a 15% reduction in calls to sqlite3VdbeRecordCompare. (CVS 3741) check-in: ad4a6b1a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.in.

   214    214     $(TOP)/src/test2.c \
   215    215     $(TOP)/src/test3.c \
   216    216     $(TOP)/src/test4.c \
   217    217     $(TOP)/src/test5.c \
   218    218     $(TOP)/src/test6.c \
   219    219     $(TOP)/src/test7.c \
   220    220     $(TOP)/src/test8.c \
          221  +  $(TOP)/src/test9.c \
   221    222     $(TOP)/src/test_autoext.c \
   222    223     $(TOP)/src/test_async.c \
   223    224     $(TOP)/src/test_md5.c \
   224    225     $(TOP)/src/test_schema.c \
   225    226     $(TOP)/src/test_server.c \
   226    227     $(TOP)/src/test_tclvar.c \
   227    228     $(TOP)/src/utf.c \

Changes to main.mk.

   170    170     $(TOP)/src/test2.c \
   171    171     $(TOP)/src/test3.c \
   172    172     $(TOP)/src/test4.c \
   173    173     $(TOP)/src/test5.c \
   174    174     $(TOP)/src/test6.c \
   175    175     $(TOP)/src/test7.c \
   176    176     $(TOP)/src/test8.c \
          177  +  $(TOP)/src/test9.c \
   177    178     $(TOP)/src/test_autoext.c \
   178    179     $(TOP)/src/test_async.c \
   179    180     $(TOP)/src/test_md5.c \
   180    181     $(TOP)/src/test_schema.c \
   181    182     $(TOP)/src/test_server.c \
   182    183     $(TOP)/src/test_tclvar.c \
   183    184     $(TOP)/src/utf.c \

Changes to src/tclsqlite.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** A TCL Interface to SQLite
    13     13   **
    14         -** $Id: tclsqlite.c,v 1.176 2007/02/01 01:53:44 drh Exp $
           14  +** $Id: tclsqlite.c,v 1.177 2007/03/29 12:19:12 danielk1977 Exp $
    15     15   */
    16     16   #ifndef NO_TCL     /* Omit this whole file if TCL is unavailable */
    17     17   
    18     18   #include "sqliteInt.h"
    19     19   #include "hash.h"
    20     20   #include "tcl.h"
    21     21   #include <stdlib.h>
................................................................................
  2201   2201       extern int Sqlitetest2_Init(Tcl_Interp*);
  2202   2202       extern int Sqlitetest3_Init(Tcl_Interp*);
  2203   2203       extern int Sqlitetest4_Init(Tcl_Interp*);
  2204   2204       extern int Sqlitetest5_Init(Tcl_Interp*);
  2205   2205       extern int Sqlitetest6_Init(Tcl_Interp*);
  2206   2206       extern int Sqlitetest7_Init(Tcl_Interp*);
  2207   2207       extern int Sqlitetest8_Init(Tcl_Interp*);
         2208  +    extern int Sqlitetest9_Init(Tcl_Interp*);
  2208   2209       extern int Md5_Init(Tcl_Interp*);
  2209   2210       extern int Sqlitetestsse_Init(Tcl_Interp*);
  2210   2211       extern int Sqlitetestasync_Init(Tcl_Interp*);
  2211   2212       extern int Sqlitetesttclvar_Init(Tcl_Interp*);
  2212   2213       extern int Sqlitetestschema_Init(Tcl_Interp*);
  2213   2214       extern int Sqlitetest_autoext_Init(Tcl_Interp*);
  2214   2215   
................................................................................
  2216   2217       Sqlitetest2_Init(interp);
  2217   2218       Sqlitetest3_Init(interp);
  2218   2219       Sqlitetest4_Init(interp);
  2219   2220       Sqlitetest5_Init(interp);
  2220   2221       Sqlitetest6_Init(interp);
  2221   2222       Sqlitetest7_Init(interp);
  2222   2223       Sqlitetest8_Init(interp);
         2224  +    Sqlitetest9_Init(interp);
  2223   2225       Sqlitetestasync_Init(interp);
  2224   2226       Sqlitetesttclvar_Init(interp);
  2225   2227       Sqlitetestschema_Init(interp);
  2226   2228       Sqlitetest_autoext_Init(interp);
  2227   2229       Md5_Init(interp);
  2228   2230   #ifdef SQLITE_SSE
  2229   2231       Sqlitetestsse_Init(interp);

Added test/misc7.test.

            1  +# 2006 September 4
            2  +#
            3  +# The author disclaims copyright to this source code.  In place of
            4  +# a legal notice, here is a blessing:
            5  +#
            6  +#    May you do good and not evil.
            7  +#    May you find forgiveness for yourself and forgive others.
            8  +#    May you share freely, never taking more than you give.
            9  +#
           10  +#***********************************************************************
           11  +# This file implements regression tests for SQLite library.
           12  +#
           13  +# $Id: misc7.test,v 1.1 2007/03/29 12:19:12 danielk1977 Exp $
           14  +
           15  +set testdir [file dirname $argv0]
           16  +source $testdir/tester.tcl
           17  +
           18  +do_test misc7-1 {
           19  +  c_misuse_test
           20  +} {}
           21  +
           22  +do_test misc7-2 {
           23  +  c_realloc_test
           24  +} {}
           25  +
           26  +do_test misc7-3 {
           27  +  c_collation_test
           28  +} {}
           29  +
           30  +finish_test