mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
these tests should be skipped if DBD::SQLite is not compiled with FTS3/4
This commit is contained in:
parent
008e1291d5
commit
a17b7f350f
3 changed files with 7 additions and 2 deletions
|
@ -16,6 +16,7 @@ use t::lib::Test;
|
|||
use Test::More;
|
||||
|
||||
BEGIN { requires_sqlite('3.7.9') }
|
||||
BEGIN { plan skip_all => 'FTS3 is disabled for this DBD::SQLite' if !grep /ENABLE_FTS3/, DBD::SQLite::compile_options() }
|
||||
|
||||
use DBI qw/SQL_INTEGER/;
|
||||
plan tests => 8;
|
||||
|
|
|
@ -10,6 +10,7 @@ use t::lib::Test;
|
|||
use Test::More;
|
||||
|
||||
BEGIN { requires_sqlite('3.7.7') }
|
||||
BEGIN { plan skip_all => 'FTS3 is disabled for this DBD::SQLite' if !grep /ENABLE_FTS3/, DBD::SQLite::compile_options() }
|
||||
|
||||
plan tests => 3;
|
||||
use Test::NoWarnings;
|
||||
|
|
|
@ -10,10 +10,13 @@ use Test::More;
|
|||
|
||||
BEGIN { requires_sqlite('3.7.12') }
|
||||
|
||||
use Test::NoWarnings;
|
||||
use FindBin;
|
||||
|
||||
plan skip_all => "\$FindBin::Bin points to a nonexistent path for some reason: $FindBin::Bin" if !-d $FindBin::Bin;
|
||||
BEGIN {
|
||||
plan skip_all => "\$FindBin::Bin points to a nonexistent path for some reason: $FindBin::Bin" if !-d $FindBin::Bin;
|
||||
plan skip_all => 'FTS is disabled for this DBD::SQLite' if !grep /ENABLE_FTS3/, DBD::SQLite::compile_options();
|
||||
}
|
||||
use Test::NoWarnings;
|
||||
|
||||
my $dbfile = "tmp.sqlite";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue