/ Check-in [5b82ec6f]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Update fkey_malloc.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: 5b82ec6fbbd2f4195ad06dd911de3817373ad5bf
User & Date: dan 2011-10-29 19:25:08
Context
2011-10-31
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
15:29
Add a test for [48f29963] that does not depend on FTS. check-in: fb15f545 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/fkey_malloc.test.

    64     64     set rc [catch {db eval $zSql} msg]
    65     65     if {$rc==0} {
    66     66       return $msg
    67     67     }
    68     68     if {[string match {*foreign key*} $msg]} {
    69     69       return ""
    70     70     }
    71         -  if {$msg eq "out of memory"} {
           71  +  if {$msg eq "out of memory" || $msg eq "constraint failed"} {
    72     72       error 1
    73     73     }
    74     74     error $msg
    75     75   }
    76     76   
    77     77   do_malloc_test fkey_malloc-4 -sqlprep {
    78     78     PRAGMA foreign_keys = 1;