1 # Test problems in Makefile.PL's and hint files.
4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
12 $ENV{PERL_CORE} ? chdir '../lib/ExtUtils/t' : chdir 't';
15 use Test::More tests => 3;
19 my $MM = bless { DIR => ['subdir'] }, 'MM';
21 ok( chdir 'Problem-Module', "chdir'd to Problem-Module" ) ||
22 diag("chdir failed: $!");
25 # Make sure when Makefile.PL's break, they issue a warning.
26 # Also make sure Makefile.PL's in subdirs still have '.' in @INC.
28 $stdout = tie *STDOUT, 'TieOut' or die;
31 local $SIG{__WARN__} = sub { $warning = join '', @_ };
34 is( $stdout->read, qq{\@INC has .\n}, 'cwd in @INC' );
36 qr{^WARNING from evaluation of .*subdir.*Makefile.PL: YYYAaaaakkk},
37 'Makefile.PL death in subdir warns' );