1 package MakeMaker::Test::Setup::Problem;
5 @EXPORT = qw(setup_recurs teardown_recurs);
12 'Problem-Module/Makefile.PL' => <<'END',
13 use ExtUtils::MakeMaker;
16 NAME => 'Problem::Module',
20 'Problem-Module/subdir/Makefile.PL' => <<'END',
21 printf "\@INC %s .\n", (grep { $_ eq '.' } @INC) ? "has" : "doesn't have";
23 warn "I think I'm going to be sick\n";
31 while(my($file, $text) = each %Files) {
32 # Convert to a relative, native file path.
33 $file = File::Spec->catfile(File::Spec->curdir, split m{\/}, $file);
35 my $dir = dirname($file);
37 open(FILE, ">$file") || die "Can't create $file: $!";
46 foreach my $file (keys %Files) {
47 my $dir = dirname($file);
49 rmtree($dir) || return;