From 008e1291d5b3a8d1787433e33e6ebd13ed63af05 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sat, 30 Jan 2016 09:41:38 +0900 Subject: [PATCH] ignore one of the tests that requires the enhanced query syntax if DBD::SQLite is not compiled with ENABLE_FTS3_PARENTHESIS (RT-111558) --- t/virtual_table/11_filecontent_fulltext.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/virtual_table/11_filecontent_fulltext.t b/t/virtual_table/11_filecontent_fulltext.t index f1c5f64..804fafc 100644 --- a/t/virtual_table/11_filecontent_fulltext.t +++ b/t/virtual_table/11_filecontent_fulltext.t @@ -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;