1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-10-23 21:49:02 +03:00
Files
sqlite/ext/vec1/test/vec1fault6.test
dan e32fbe0c23 Import vec1 sources into directory ext/vec1/ of this project.
FossilOrigin-Name: 3a0876d973868be7b6f4156a434cd09098c7ab1abdc7f0ef4f3d12a03de68b24
2026-09-30 14:49:16 +00:00

47 lines
987 B
Plaintext

# 2026-04-01
#
# The author disclaims copyright to this source code. In place of
# a legal notice, here is a blessing:
#
# May you do good and not evil.
# May you find forgiveness for yourself and forgive others.
# May you share freely, never taking more than you give.
#
#***********************************************************************
#
#
source [file join [file dirname [info script]] vec1_common.tcl]
set testprefix vec1fault6
vec1_load db
faultsim_save_and_close
do_faultsim_test 1 -faults oom* -prep {
faultsim_restore_and_reopen
vec1_load db
} -body {
execsql {
CREATE VIRTUAL TABLE v1 USING vec1(v, a, b);
}
} -test {
faultsim_test_result {0 {}}
}
reset_db
vec1_load db
do_execsql_test 2.0 {
CREATE VIRTUAL TABLE x1 USING vec1(a, b, c);
}
faultsim_save_and_close
do_faultsim_test 2 -faults oom* -prep {
faultsim_restore_and_reopen
vec1_load db
} -body {
execsql { DROP TABLE x1 }
} -test {
faultsim_test_result {0 {}}
}
finish_test