1
0
Fork 0
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:
Kenichi Ishigaki 2016-01-30 09:48:03 +09:00
parent 008e1291d5
commit a17b7f350f
3 changed files with 7 additions and 2 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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";