Skip to content

Commit

Permalink
avoid relying on . in @inc
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 12, 2016
1 parent 6aad093 commit e2f116b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/corpus.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use constant HAVE_DIFF => eval {
use CPAN::Changes::Parser;
use Getopt::Long qw(:config gnu_getopt no_auto_abbrev no_ignore_case);
use Data::Dumper ();
use File::Spec;

sub _dump {
local $Data::Dumper::Indent = 1;
Expand Down Expand Up @@ -54,7 +55,7 @@ for my $log (glob('corpus/dists/*.changes')) {
pass "updated $parsed_file";
}
else {
my $wanted = do $parsed_file;
my $wanted = do File::Spec->rel2abs($parsed_file) or die $@;
_eq $parsed, $wanted, "$log parsed into expected form";
}
}
Expand Down

0 comments on commit e2f116b

Please sign in to comment.