Skip to content

Commit

Permalink
Adding explicit requirements for tests. Thanks to Leont for GH#13
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Jan 8, 2025
1 parent e8e33a6 commit 9f8b09a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ WriteMakefile(
'ExtUtils::MakeMaker' => 0,
},
TEST_REQUIRES => {
'Encode' => 0,
'POSIX' => 0,
'Test::More' => 0,
'Test::Pod' => 1.14,
},
Expand Down
2 changes: 1 addition & 1 deletion t/core_read.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use Test::More;
use English();
use Carp();
use English qw( -no_match_vars );
use POSIX();
use Exporter();
use XSLoader();
use constant;
Expand Down Expand Up @@ -37,7 +38,6 @@ SKIP: {
*CORE::GLOBAL::read = sub { $! = POSIX::EACCES(); return };
*CORE::GLOBAL::sysread = sub { $! = POSIX::EACCES(); return };
use warnings;
require POSIX;
my $required_error_message = q[(?:] . (quotemeta POSIX::strerror(POSIX::EACCES())) . q[|Permission[ ]denied)];
require FileHandle;
@INC = qw(blib/lib); # making sure we're testing pure perl version
Expand Down
2 changes: 1 addition & 1 deletion t/core_sysopen.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::More;
use English();
use Carp();
use POSIX();
use English qw( -no_match_vars );
use Exporter();
use XSLoader();
Expand All @@ -18,7 +19,6 @@ SKIP: {
no warnings;
*CORE::GLOBAL::sysopen = sub { $! = POSIX::EACCES(); return };
use warnings;
require POSIX;
my $required_error_message = q[(?:] . (quotemeta POSIX::strerror(POSIX::EACCES())) . q[|Permission[ ]denied)];
require FileHandle;
@INC = qw(blib/lib); # making sure we're testing pure perl version
Expand Down
1 change: 1 addition & 0 deletions t/getrandom.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use Test::More;
use FileHandle();
use POSIX();
use Config;
use strict;
use warnings;
Expand Down

0 comments on commit 9f8b09a

Please sign in to comment.