Subject: | Fragile discovery of t/html directory |
If CPAN happens to make a temporary build directory ending in 't', the
following test files will fail to discover the html directory containing
their fixtures:
t/acidtest.t
t/linebreaktest.t
t/linktest.t
It's easily fixable thus:
+use FindBin qw($Bin);
-my $html_path = (getcwd =~ m/t$/) ? getcwd . '/html/' : getcwd .
'/t/html/';
+my $html_path = "$Bin/html/";
Or just change the regex to something like m{/t$}.