Browse Source

Bug 18959: Skip xt/author/Text_CSV_Various.t if Text::CSV::Unicode missing

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
18.11.x
Tomás Cohen Arazi 6 years ago
committed by Nick Clemens
parent
commit
ca9a1b76d8
  1. 20
      xt/author/Text_CSV_Various.t

20
xt/author/Text_CSV_Various.t

@ -22,16 +22,24 @@
use Modern::Perl; use Modern::Perl;
use Test::More tests => 32; use Test::More;
use Test::Warn; use Test::Warn;
use Text::CSV;
use Text::CSV_XS;
use Module::Load::Conditional qw/check_install/;
BEGIN { BEGIN {
use FindBin; if ( check_install( module => 'Text::CSV::Unicode' ) ) {
use lib $FindBin::Bin; plan tests => 29;
use_ok('Text::CSV'); } else {
use_ok('Text::CSV_XS'); plan skip_all => "Need Text::CSV::Unicode"
use_ok('Text::CSV::Unicode'); }
} }
use Text::CSV::Unicode;
sub pretty_line { sub pretty_line {
my $max = 54; my $max = 54;
(@_) or return "#" x $max . "\n"; (@_) or return "#" x $max . "\n";

Loading…
Cancel
Save