skip ideogram tests if mysql is configured badly

This commit is contained in:
Graham Knop 2010-03-19 17:22:21 -05:00
parent 81ffc16f63
commit 9abeae359a
2 changed files with 29 additions and 18 deletions

View file

@ -57,9 +57,13 @@ ok(! $search->_isStopword('private.+'), '_isStopword: regex metacharacters
# Chinese ideograph handling
#
################################################
{
SKIP: {
use utf8;
my $min_word_length = $session->db->quickScalar('SELECT @@ft_min_word_len');
skip 'MySQL minimum word length too long to support ideograms', 2
if $min_word_length > 2;
# Create an article to index
my $article = WebGUI::Asset->getImportNode( $session )->addChild( {
className => 'WebGUI::Asset::Wobject::Article',