4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib/');
9 unshift @INC, 't/lib/';
12 $ENV{PERL_CORE} ? chdir '../lib/ExtUtils/t' : chdir 't';
14 use Test::More tests => 3;
17 my $hint_file = "hints/$^O.pl";
18 open(HINT, ">$hint_file") || die "Can't write dummy hints file $hint_file: $!";
20 $self->{CCFLAGS} = 'basset hounds got long ears';
25 use ExtUtils::MakeMaker;
27 my $out = tie *STDERR, 'TieOut';
28 my $mm = bless {}, 'ExtUtils::MakeMaker';
30 is( $mm->{CCFLAGS}, 'basset hounds got long ears' );
31 is( $out->read, "Processing hints file $hint_file\n" );
33 open(HINT, ">$hint_file") || die "Can't write dummy hints file $hint_file: $!";
40 is( $out->read, <<OUT, 'hint files produce errors' );
41 Processing hints file $hint_file