sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
sqlite / ext / vec1 / test / vec1fault6.test
| 1 | # 2026-04-01 |
| 2 | # |
| 3 | # The author disclaims copyright to this source code. In place of |
| 4 | # a legal notice, here is a blessing: |
| 5 | # |
| 6 | # May you do good and not evil. |
| 7 | # May you find forgiveness for yourself and forgive others. |
| 8 | # May you share freely, never taking more than you give. |
| 9 | # |
| 10 | #*********************************************************************** |
| 11 | # |
| 12 | # |
| 13 | |
| 14 | source [file join [file dirname [info script]] vec1_common.tcl] |
| 15 | set testprefix vec1fault6 |
| 16 | vec1_load db |
| 17 | |
| 18 | faultsim_save_and_close |
| 19 | do_faultsim_test 1 -faults oom* -prep { |
| 20 | faultsim_restore_and_reopen |
| 21 | vec1_load db |
| 22 | } -body { |
| 23 | execsql { |
| 24 | CREATE VIRTUAL TABLE v1 USING vec1(v, a, b); |
| 25 | } |
| 26 | } -test { |
| 27 | faultsim_test_result {0 {}} |
| 28 | } |
| 29 | |
| 30 | reset_db |
| 31 | vec1_load db |
| 32 | do_execsql_test 2.0 { |
| 33 | CREATE VIRTUAL TABLE x1 USING vec1(a, b, c); |
| 34 | } |
| 35 | faultsim_save_and_close |
| 36 | do_faultsim_test 2 -faults oom* -prep { |
| 37 | faultsim_restore_and_reopen |
| 38 | vec1_load db |
| 39 | } -body { |
| 40 | execsql { DROP TABLE x1 } |
| 41 | } -test { |
| 42 | faultsim_test_result {0 {}} |
| 43 | } |
| 44 | |
| 45 | finish_test |
| 46 |