7 blib_load('Module::Build');
10 my $tmp = MBTest->tmpdir;
13 my $dist = DistGen->new( dir => $tmp );
18 my $mb = Module::Build->new_from_context;
21 # Make sure copy_if_modified() can handle spaces in filenames
24 push @tmp, MBTest->tmpdir for (0 .. 1);
26 my $filename = 'file with spaces.txt';
28 my $file = File::Spec->catfile($tmp[0], $filename);
29 my $fh = IO::File->new($file, '>') or die "Can't create $file: $!";
35 my $file2 = $mb->copy_if_modified(from => $file, to_dir => $tmp[1]);
41 # Try some dir_contains() combinations
42 my $first = File::Spec->catdir('', 'one', 'two');
43 my $second = File::Spec->catdir('', 'one', 'two', 'three');
45 ok( Module::Build->dir_contains($first, $second) );