1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

ignore one of the tests that requires the enhanced query syntax if DBD::SQLite is not compiled with ENABLE_FTS3_PARENTHESIS (RT-111558)

This commit is contained in:
Kenichi Ishigaki 2016-01-30 09:41:38 +09:00
parent db43f7a75e
commit 008e1291d5

View file

@ -31,13 +31,21 @@ my @tests = (
lib/DBD/SQLite/VirtualTable/FileContent.pm
lib/DBD/SQLite/VirtualTable/PerlData.pm
t/lib/Test.pm]],
);
# The last set of tests tries to use enhanced query syntax. But when
# SQLite is compiled without it's support, the word 'AND' is taken
# literally.
if (grep /ENABLE_FTS3_PARENTHESIS/, DBD::SQLite::compile_options()) {
push @tests, (
['"use strict" AND "use warnings"' => qw[inc/Test/NoWarnings.pm
lib/DBD/SQLite/Constants.pm
lib/DBD/SQLite/VirtualTable.pm
lib/DBD/SQLite/VirtualTable/FileContent.pm
lib/DBD/SQLite/VirtualTable/PerlData.pm
]],
);
);
}
plan tests => 3 + 3 * @tests;