Skip to content

Commit

Permalink
Added test for perl_inc(). Quieted some compilations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeenan committed May 14, 2010
1 parent 0474e73 commit 35991b4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions t/04-base.t
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ like(
"Got expected error message when lacking 'source' argument to compile()"
);


my $quiet = $ENV{PERL_CORE} && !$ENV{HARNESS_ACTIVE};
$base = ExtUtils::CBuilder::Base->new( quiet => $quiet );
$base = ExtUtils::CBuilder::Base->new( quiet => 1 );
ok( $base, "ExtUtils::CBuilder::Base->new() returned true value" );
isa_ok( $base, 'ExtUtils::CBuilder::Base' );

Expand All @@ -138,12 +136,19 @@ $lib_file = $base->lib_file($object_file);
ok( $lib_file, "lib_file() returned true value" );

my ($lib, @temps) = $base->link(
objects => $object_file,
objects => $object_file,
module_name => 'compilet',
);
$lib =~ tr/"'//d; #"
is($lib_file, $lib, "Got expected value for $lib");

{
local $ENV{PERL_CORE} = '';
my $include_dir = $base->perl_inc();
ok( $include_dir, "perl_inc() returned true value" );
ok( -d $include_dir, "perl_inc() returned directory" );
}

for ($source_file, $object_file, $lib_file) {
tr/"'//d; #"
1 while unlink;
Expand Down

0 comments on commit 35991b4

Please sign in to comment.