Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix GH #72: Buildling without '.' in @inc (5.26.0):
As kentfredric explains in GH #72, the missing dot in @inc (which
goes in 5.26.0) can break any test that uses t::lib::Functions,
assuming that it is available.

While this will work in a new Test::Harness, it wouldn't work for
people running it manually not under Test::Harness. (And we would
have to require that new version as a minimum dependency.)

Instead, this assures it is available when loading
t::lib::Functions.
  • Loading branch information
xsawyerx committed Mar 8, 2017
1 parent 471c832 commit d3e48e1
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions t/api/_get.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 13;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

{
Expand Down
1 change: 1 addition & 0 deletions t/api/_get_or_search.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 10;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

{
Expand Down
1 change: 1 addition & 0 deletions t/api/_search.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 19;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

{
Expand Down
1 change: 1 addition & 0 deletions t/api/author.t
Expand Up @@ -6,6 +6,7 @@ use Test::More;
use Test::Fatal;
use Ref::Util qw< is_arrayref >;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/distribution.t
Expand Up @@ -6,6 +6,7 @@ use Test::More tests => 9;
use Test::Fatal;
use Ref::Util qw< is_hashref >;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/download_url.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 7;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/favorite.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 2 + 4 * 2;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/file.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 11;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/module.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 10;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/pod.t
Expand Up @@ -4,6 +4,7 @@ use strict;
use warnings;
use Test::More tests => 5;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/rating.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 7;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down
1 change: 1 addition & 0 deletions t/api/release.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More tests => 5;
use Test::Fatal;

use lib '.';
use t::lib::Functions;

my $mc = mcpan();
Expand Down

0 comments on commit d3e48e1

Please sign in to comment.