Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 495d959

Browse files
committed
Revert "diagnostics"
This reverts commit a23c4b2.
1 parent a8f0ad8 commit 495d959

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

Makefile.PL

-17
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@ use warnings;
33
use Config;
44
use ExtUtils::MakeMaker;
55

6-
eval {
7-
use File::Temp qw( tempfile );
8-
use File::Spec;
9-
my($fh, $filename) = tempfile();
10-
close $fh;
11-
unlink $filename;
12-
};
13-
14-
if(my $error = $@)
15-
{
16-
print "unable to create a tempfile, which is required properly test and use Alien::Base\n";
17-
print "File::Spec->tmpdir returns @{[ File::Spec->tmpdir ]}\n";
18-
print "diagnostic: $error\n";
19-
print "There is likely something wrong with your environment\n";
20-
exit;
21-
}
22-
236
my %make_args = (
247
NAME => 'Alien::Base',
258
DISTNAME => 'Alien-Base',

t/alien_base.t

-13
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@ use File::Glob qw( bsd_glob );
55
use File::chdir;
66
use File::Spec;
77

8-
eval {
9-
use File::Temp qw( tempfile );
10-
use File::Spec;
11-
my($fh, $filename) = tempfile();
12-
close $fh;
13-
unlink $filename;
14-
};
15-
16-
if(my $error = $@)
17-
{
18-
bail_out "tempfile failed: $error";
19-
}
20-
218
unshift @PKG_CONFIG_PATH, File::Spec->rel2abs(File::Spec->catdir( qw( corpus pkgconfig )));
229

2310
subtest 'AB::MB sys install' => sub {

t/alien_base__system_installed.t

-13
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ use List::Util qw/shuffle/;
44

55
BEGIN { $ENV{ALIEN_FORCE} = 0; delete $ENV{ALIEN_INSTALL_TYPE} }
66

7-
eval {
8-
use File::Temp qw( tempfile );
9-
use File::Spec;
10-
my($fh, $filename) = tempfile();
11-
close $fh;
12-
unlink $filename;
13-
};
14-
15-
if(my $error = $@)
16-
{
17-
bail_out "tempfile failed: $error";
18-
}
19-
207
skip_all 'Test requires Alien::Base::ModuleBuild and Alien::Base::PkgConfig'
218
unless eval { require Alien::Base::ModuleBuild; require Alien::Base::PkgConfig; 1 };
229

0 commit comments

Comments
 (0)