mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Disable shell test cases that require virtual tables when testfixture is
built using SQLITE_OMIT_VIRTUALTABLE. FossilOrigin-Name: 8c73d54fd1e250fcd7f30741cfbd169af9aaecc2096c0c8a9486abaa064d69af
This commit is contained in:
@ -217,6 +217,7 @@ do_test shell2-1.4.9 {
|
||||
done
|
||||
2}}
|
||||
|
||||
ifcapable vtab {
|
||||
# Verify that generate_series stays sane near 64-bit range boundaries.
|
||||
# See overflow report at https://sqlite.org/forum/forumpost/5d34ce5280
|
||||
do_test shell2-1.4.10 {
|
||||
@ -247,7 +248,9 @@ do_test shell2-1.4.10 {
|
||||
0
|
||||
1
|
||||
2}}
|
||||
} ;# ifcapable vtab
|
||||
|
||||
ifcapable vtab {
|
||||
# Bug discovered while messing around, .import hangs with
|
||||
# bit 7 set in column separator.
|
||||
do_test shell2-1.4.11 {
|
||||
@ -262,6 +265,7 @@ do_test shell2-1.4.11 {
|
||||
.import dummy.csv t
|
||||
SELECT count(*) FROM t;}]]
|
||||
} {0 1}
|
||||
} ;# ifcapable vtab
|
||||
|
||||
# Bug from forum post 7cbe081746dd3803
|
||||
# Keywords as column names were producing an error message.
|
||||
|
@ -84,6 +84,14 @@ do_test shell5-1.4.1 {
|
||||
.import FOO t1}]
|
||||
} {1 {Error: cannot open "FOO"}}
|
||||
|
||||
# the remainder of these test cases require virtual tables.
|
||||
#
|
||||
ifcapable !vtab {
|
||||
puts "Skipping subsequent tests due to SQLITE_OMIT_VIRTUALTABLE"
|
||||
finish_test
|
||||
return
|
||||
}
|
||||
|
||||
# empty import file
|
||||
do_test shell5-1.4.2 {
|
||||
forcedelete shell5.csv
|
||||
|
Reference in New Issue
Block a user