/ Check-in [3f2d49c6]
Login

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

Overview
Comment:Update fts3fault.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3f2d49c6786beb6ff9d56376364ebc6cd9136346
User & Date: dan 2011-10-31 06:52:51
Context
2011-10-31
11:36
Add new file ext/fts3/README.content, describing the experimental FTS4 content option. check-in: 13a9d085 user: dan tags: trunk
06:52
Update fts3fault.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347]. check-in: 3f2d49c6 user: dan tags: trunk
2011-10-29
19:25
Update fkey_malloc.test to account for the sqlite3_errmsg() related changes in [8f88cc4e61] and [dcb7879347]. check-in: 5b82ec6f user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fts3fault.test.

    14     14   source $testdir/tester.tcl
    15     15   
    16     16   set ::testprefix fts3fault
    17     17   
    18     18   # If SQLITE_ENABLE_FTS3 is not defined, omit this file.
    19     19   ifcapable !fts3 { finish_test ; return }
    20     20   
    21         -if 1 {
    22         -
    23     21   # Test error handling in the sqlite3Fts3Init() function. This is the 
    24     22   # function that registers the FTS3 module and various support functions
    25     23   # with SQLite.
    26     24   #
    27     25   do_faultsim_test 1 -body { 
    28     26     sqlite3 db test.db 
    29     27     expr 0
................................................................................
   142    140   }
   143    141   do_faultsim_test 7.2 -prep { 
   144    142     faultsim_delete_and_reopen
   145    143   } -body {
   146    144     execsql { CREATE VIRTUAL TABLE t1 USING fts4(a, b, matchinfo=fs3) }
   147    145   } -test {
   148    146     faultsim_test_result {1 {unrecognized matchinfo: fs3}} \
   149         -                       {1 {vtable constructor failed: t1}}
          147  +                       {1 {vtable constructor failed: t1}} \
          148  +                       {1 {SQL logic error or missing database}}
   150    149   }
   151    150   do_faultsim_test 7.3 -prep { 
   152    151     faultsim_delete_and_reopen
   153    152   } -body {
   154    153     execsql { CREATE VIRTUAL TABLE t1 USING fts4(a, b, matchnfo=fts3) }
   155    154   } -test {
   156    155     faultsim_test_result {1 {unrecognized parameter: matchnfo=fts3}} \
   157         -                       {1 {vtable constructor failed: t1}}
   158         -}
   159         -
          156  +                       {1 {vtable constructor failed: t1}} \
          157  +                       {1 {SQL logic error or missing database}}
   160    158   }
   161    159   
   162    160   proc mit {blob} {
   163    161     set scan(littleEndian) i*
   164    162     set scan(bigEndian) I*
   165    163     binary scan $blob $scan($::tcl_platform(byteOrder)) r
   166    164     return $r