4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib/');
9 unshift @INC, 't/lib/';
16 use Test::More tests => 3;
18 # Having the CWD in @INC masked a bug in finding hint files
19 my $curdir = File::Spec->curdir;
20 @INC = grep { $_ ne $curdir && $_ ne '.' } @INC;
23 (my $os = $^O) =~ s/\./_/g;
24 my $hint_file = File::Spec->catfile('hints', "$os.pl");
26 open(HINT, ">$hint_file") || die "Can't write dummy hints file $hint_file: $!";
28 $self->{CCFLAGS} = 'basset hounds got long ears';
33 use ExtUtils::MakeMaker;
35 my $out = tie *STDERR, 'TieOut';
36 my $mm = bless {}, 'ExtUtils::MakeMaker';
38 is( $mm->{CCFLAGS}, 'basset hounds got long ears' );
39 is( $out->read, "Processing hints file $hint_file\n" );
41 open(HINT, ">$hint_file") || die "Can't write dummy hints file $hint_file: $!";
48 is( $out->read, <<OUT, 'hint files produce errors' );
49 Processing hints file $hint_file