summaryrefslogtreecommitdiff
path: root/t/81_version_overload_with_explicit_vpp.t
diff options
context:
space:
mode:
Diffstat (limited to 't/81_version_overload_with_explicit_vpp.t')
-rw-r--r--t/81_version_overload_with_explicit_vpp.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/81_version_overload_with_explicit_vpp.t b/t/81_version_overload_with_explicit_vpp.t
index 7f229b1..a656fcb 100644
--- a/t/81_version_overload_with_explicit_vpp.t
+++ b/t/81_version_overload_with_explicit_vpp.t
@@ -3,6 +3,7 @@ use warnings;
use Test::More;
use FindBin;
use Parse::PMFile;
+use Config;
eval "use version::vpp; 1" or plan skip_all => "requires version::vpp";
@@ -12,7 +13,8 @@ for my $fork (0..1) {
no warnings 'once';
local $Parse::PMFile::FORK = $_;
my $p = Parse::PMFile->new;
- my $pkg = $p->parse("$FindBin::Bin/../lib/Parse/PMFile.pm");
+ my $dir = $ENV{AUTOPKGTEST_TMP} ? $Config{vendorlib} : "$FindBin::Bin/../lib";
+ my $pkg = $p->parse("$dir/Parse/PMFile.pm");
is $pkg->{'Parse::PMFile'}{version} => $Parse::PMFile::VERSION, "version of Parse::PMFile matches \$Parse::PMFile::VERSION";