From bfe71db88f7a5f2bc5a45ac1e85a9ee850c85869 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 20 Jan 2019 08:27:04 +0900 Subject: [PATCH] locale warning is only available for perl 5.22+ --- t/13_create_collation.t | 2 +- t/37_regexp.t | 2 +- t/43_fts3.t | 2 +- t/rt_73159_fts_tokenizer_segfault.t | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/13_create_collation.t b/t/13_create_collation.t index d674aed..e86894d 100644 --- a/t/13_create_collation.t +++ b/t/13_create_collation.t @@ -1,6 +1,6 @@ use strict; use warnings; -no warnings 'locale'; +no if $] > 5.020, "warnings", "locale"; use lib "t/lib"; use SQLiteTest; use Test::More; diff --git a/t/37_regexp.t b/t/37_regexp.t index edfcb7c..8a94e95 100644 --- a/t/37_regexp.t +++ b/t/37_regexp.t @@ -1,6 +1,6 @@ use strict; use warnings; -no warnings 'locale'; +no if $] > 5.020, "warnings", "locale"; use lib "t/lib"; use SQLiteTest; use Test::More; diff --git a/t/43_fts3.t b/t/43_fts3.t index 850708b..27a3bfe 100644 --- a/t/43_fts3.t +++ b/t/43_fts3.t @@ -1,6 +1,6 @@ use strict; use warnings; -no warnings 'locale'; +no if $] > 5.020, "warnings", "locale"; use lib "t/lib"; use SQLiteTest; use Test::More; diff --git a/t/rt_73159_fts_tokenizer_segfault.t b/t/rt_73159_fts_tokenizer_segfault.t index 7aea26d..9a4949e 100644 --- a/t/rt_73159_fts_tokenizer_segfault.t +++ b/t/rt_73159_fts_tokenizer_segfault.t @@ -1,6 +1,6 @@ use strict; use warnings; -no warnings 'locale'; +no if $] > 5.020, "warnings", "locale"; use lib "t/lib"; use SQLiteTest; use Test::More;