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:
parent
db43f7a75e
commit
008e1291d5
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue