| OLD | NEW |
| 1 # 2014 June 17 | 1 # 2014 June 17 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #************************************************************************* | 10 #************************************************************************* |
| 11 # | 11 # |
| 12 # This file is focused on OOM errors. | 12 # This file is focused on OOM errors. |
| 13 # | 13 # |
| 14 | 14 |
| 15 source [file join [file dirname [info script]] fts5_common.tcl] | 15 source [file join [file dirname [info script]] fts5_common.tcl] |
| 16 source $testdir/malloc_common.tcl | 16 source $testdir/malloc_common.tcl |
| 17 set testprefix fts5fault2 | 17 set testprefix fts5fault2 |
| 18 | 18 |
| 19 # If SQLITE_ENABLE_FTS3 is defined, omit this file. | 19 # If SQLITE_ENABLE_FTS5 is not defined, omit this file. |
| 20 ifcapable !fts5 { | 20 ifcapable !fts5 { |
| 21 finish_test | 21 finish_test |
| 22 return | 22 return |
| 23 } | 23 } |
| 24 | 24 |
| 25 set doc [string trim [string repeat "x y z " 200]] | 25 set doc [string trim [string repeat "x y z " 200]] |
| 26 do_execsql_test 1.0 { | 26 do_execsql_test 1.0 { |
| 27 CREATE TABLE t1(a INTEGER PRIMARY KEY, x); | 27 CREATE TABLE t1(a INTEGER PRIMARY KEY, x); |
| 28 CREATE VIRTUAL TABLE x1 USING fts5(x, content='t1', content_rowid='a'); | 28 CREATE VIRTUAL TABLE x1 USING fts5(x, content='t1', content_rowid='a'); |
| 29 INSERT INTO x1(x1, rank) VALUES('pgsz', 32); | 29 INSERT INTO x1(x1, rank) VALUES('pgsz', 32); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 content="another table", | 131 content="another table", |
| 132 content_rowid="somecolumn" | 132 content_rowid="somecolumn" |
| 133 ); | 133 ); |
| 134 } | 134 } |
| 135 } -test { | 135 } -test { |
| 136 faultsim_test_result {0 {}} | 136 faultsim_test_result {0 {}} |
| 137 } | 137 } |
| 138 | 138 |
| 139 finish_test | 139 finish_test |
| 140 | 140 |
| OLD | NEW |