Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
dist /
ExtUtils-CBuilder /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
00-have-compiler.t
1.75
KB
-r--r--r--
2014-12-27 11:49
01-basic.t
2.27
KB
-r--r--r--
2014-12-27 11:48
02-link.t
2.38
KB
-r--r--r--
2014-12-27 11:48
03-cplusplus.t
1.4
KB
-r--r--r--
2014-12-27 11:48
04-base.t
11.9
KB
-r--r--r--
2014-12-27 12:38
Save
Rename
#! perl -w use File::Spec; my $perl; BEGIN { $perl = File::Spec->rel2abs($^X); } use strict; use Test::More; BEGIN { if ($^O eq 'VMS') { # So we can get the return value of system() require vmsish; import vmsish; } } plan tests => 7; require_ok "ExtUtils::CBuilder"; my $b = eval { ExtUtils::CBuilder->new(quiet => 1) }; ok( $b, "got CBuilder object" ) or diag $@; # test missing compiler { my $b1 = ExtUtils::CBuilder->new(quiet => 1); configure_fake_missing_compilers($b1); is( $b1->have_compiler, 0, "have_compiler: fake missing cc" ); } { my $b2 = ExtUtils::CBuilder->new(quiet => 1); configure_fake_missing_compilers($b2); is( $b2->have_cplusplus, 0, "have_cplusplus: fake missing c++" ); } # test found compiler { my $b3 = ExtUtils::CBuilder->new(quiet => 1); configure_fake_present_compilers($b3); is( $b3->have_compiler, 1, "have_compiler: fake present cc" ); } { my $b4 = ExtUtils::CBuilder->new(quiet => 1); configure_fake_present_compilers($b4); is( $b4->have_cplusplus, 1, "have_cpp_compiler: fake present c++" ); } # test missing cpp compiler # test one non-exported subroutine { my $type = ExtUtils::CBuilder::os_type(); if ($type) { pass( "OS type $type located for $^O" ); } else { pass( "OS type not yet listed for $^O" ); } } sub configure_fake_missing_compilers { my $b = shift; my $bogus_path = 'djaadjfkadjkfajdf'; $b->{config}{cc} = $bogus_path; $b->{config}{ld} = $bogus_path; $b->{have_cc} = undef; $b->{have_cxx} = undef; } sub configure_fake_present_compilers { my $b = shift; my $run_perl = "$perl -e1 --"; $b->{config}{cc} = $run_perl; $b->{config}{ld} = $run_perl; $b->{config}{cxx} = $run_perl; $b->{have_cc} = undef; $b->{have_cxx} = undef; }