/ Check-in [2ee959be]
Login

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

Overview
Comment:Modify test scripts to allow for the fact that zeroblob() is not available when compiled with OMIT_INCRBLOB. Ticket #2365. (CVS 4019)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2ee959be4afa2cf05d183ff92a31dd1b5a84becf
User & Date: danielk1977 2007-05-17 06:44:28
Context
2007-05-17
14:45
Add speed3.test file. For testing performance issues related to overflow pages. (CVS 4020) check-in: 684f765d user: danielk1977 tags: trunk
06:44
Modify test scripts to allow for the fact that zeroblob() is not available when compiled with OMIT_INCRBLOB. Ticket #2365. (CVS 4019) check-in: 2ee959be user: danielk1977 tags: trunk
2007-05-16
18:23
Remove the SKIP_UTF16 macros (they are no longer in use). (CVS 4018) check-in: 73e654fb user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/incrvacuum2.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 file is testing the incremental vacuum feature.
    13     13   #
    14         -# $Id: incrvacuum2.test,v 1.2 2007/05/04 18:30:41 drh Exp $
           14  +# $Id: incrvacuum2.test,v 1.3 2007/05/17 06:44:28 danielk1977 Exp $
    15     15   
    16     16   set testdir [file dirname $argv0]
    17     17   source $testdir/tester.tcl
    18     18   
    19     19   # If this build of the library does not support auto-vacuum, omit this
    20     20   # whole file.
    21     21   ifcapable {!autovacuum || !pragma} {
    22     22     finish_test
    23     23     return
    24     24   }
           25  +
           26  +# If the OMIT_INCRBLOB symbol was defined at compile time, there
           27  +# is no zeroblob() function available. So create a similar
           28  +# function here using Tcl. It doesn't return a blob, but it returns
           29  +# data of the required length, which is good enough for this
           30  +# test file.
           31  +ifcapable !incrblob {
           32  +  proc zeroblob {n} { string repeat 0 $n }
           33  +  db function zeroblob zeroblob
           34  +}
    25     35   
    26     36   # Create a database in incremental vacuum mode that has many
    27     37   # pages on the freelist.
    28     38   #
    29     39   do_test incrvacuum2-1.1 {
    30     40     execsql {
    31     41       PRAGMA page_size=1024;

Changes to test/zeroblob.test.

     9      9   #
    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this file is testing of the zero-filled blob functionality
    13     13   # including the sqlite3_bind_zeroblob(), sqlite3_result_zeroblob(),
    14     14   # and the built-in zeroblob() SQL function.
    15     15   #
    16         -# $Id: zeroblob.test,v 1.2 2007/05/02 16:51:59 drh Exp $
           16  +# $Id: zeroblob.test,v 1.3 2007/05/17 06:44:29 danielk1977 Exp $
    17     17   
    18     18   set testdir [file dirname $argv0]
    19     19   source $testdir/tester.tcl
           20  +
           21  +ifcapable !incrblob {
           22  +  finish_test
           23  +  return
           24  +}
    20     25   
    21     26   # When zeroblob() is used for the last field of a column, then the
    22     27   # content of the zeroblob is never instantiated on the VDBE stack.
    23     28   # But it does get inserted into the database correctly.
    24     29   #
    25     30   do_test zeroblob-1.1 {
    26     31     execsql {