mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Lib.pm: Skip tests if perl-libintl module is not available.
This commit is contained in:
committed by
Richard Jones
parent
8b854734bd
commit
aa999d0586
@@ -17,7 +17,18 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 1;
|
||||
|
||||
BEGIN {
|
||||
use Test::More;
|
||||
|
||||
eval "use Locale::TextDomain";;
|
||||
if (exists $INC{"Locale/TextDomain.pm"}) {
|
||||
plan tests => 1;
|
||||
} else {
|
||||
plan skip_all => "no perl-libintl module";
|
||||
exit 0;
|
||||
}
|
||||
}
|
||||
|
||||
use Sys::Guestfs;
|
||||
use Sys::Guestfs::Lib;
|
||||
|
||||
@@ -17,7 +17,17 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 17;
|
||||
|
||||
BEGIN {
|
||||
use Test::More;
|
||||
eval "use Locale::TextDomain";;
|
||||
if (exists $INC{"Locale/TextDomain.pm"}) {
|
||||
plan tests => 17;
|
||||
} else {
|
||||
plan skip_all => "no perl-libintl module";
|
||||
exit 0;
|
||||
}
|
||||
}
|
||||
|
||||
use Sys::Guestfs;
|
||||
use Sys::Guestfs::Lib;
|
||||
|
||||
Reference in New Issue
Block a user