From 75764d8e3e029194e0bdf448aa4b85b796ed753a Mon Sep 17 00:00:00 2001 From: tokuhirom Date: Sat, 16 Jan 2010 16:30:52 +0900 Subject: [PATCH] skip test if .cpan/sources/ is owned by other user. --- t/01build-perl.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/01build-perl.t b/t/01build-perl.t index 79f1e3b..ec31c8d 100644 --- a/t/01build-perl.t +++ b/t/01build-perl.t @@ -4,6 +4,9 @@ use warnings; use Cwd; use File::Temp qw(tempdir); use Test::More; +use CPAN::Inject; + +plan skip_all => "CPAN::Inject->from_cpan_config() failed: $@." unless eval "CPAN::Inject->from_cpan_config(); 1;"; $| = 1;