4 unshift @INC, 't/lib/';
10 use Test::More tests => 3;
12 # Having the CWD in @INC masked a bug in finding hint files
13 my $curdir = File::Spec->curdir;
14 @INC = grep { $_ ne $curdir && $_ ne '.' } @INC;
17 (my $os = $^O) =~ s/\./_/g;
18 my $hint_file = File::Spec->catfile('hints', "$os.pl");
20 open(HINT, ">$hint_file") || die "Can't write dummy hints file $hint_file: $!";
22 $self->{CCFLAGS} = 'basset hounds got long ears';
27 use ExtUtils::MakeMaker;
29 my $out = tie *STDERR, 'TieOut';
30 my $mm = bless {}, 'ExtUtils::MakeMaker';
32 is( $mm->{CCFLAGS}, 'basset hounds got long ears' );
33 is( $out->read, "Processing hints file $hint_file\n" );
35 open(HINT, ">$hint_file") || die "Can't write dummy hints file $hint_file: $!";
42 is( $out->read, <<OUT, 'hint files produce errors' );
43 Processing hints file $hint_file