diff options
Diffstat (limited to 'test/interrupt.test')
-rw-r--r-- | test/interrupt.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/interrupt.test b/test/interrupt.test index e58fc7bb1..463347117 100644 --- a/test/interrupt.test +++ b/test/interrupt.test @@ -11,7 +11,7 @@ # This file implements regression tests for SQLite library. The # focus of this script is the sqlite_interrupt() API. # -# $Id: interrupt.test,v 1.9 2005/01/11 16:54:15 drh Exp $ +# $Id: interrupt.test,v 1.10 2005/01/11 17:46:42 drh Exp $ set testdir [file dirname $argv0] @@ -176,4 +176,14 @@ for {set i 1} {$i<$max_count-5} {incr i 1} { } {1 interrupted} } +# Interrupt during parsing +# +do_test interrupt-5.1 { + proc fake_interrupt {args} {sqlite3_interrupt $::DB; return SQLITE_OK} + db collation_needed fake_interrupt + catchsql { + CREATE INDEX fake ON fake1(a COLLATE fake_collation, b, c DESC); + } +} {1 interrupt} + finish_test |