Skip to content

Commit

Permalink
improve portability of install_extra_target.t
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.perl.org/modules/Module-Build/trunk@13666 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information
xdg committed Dec 17, 2009
1 parent bc97db8 commit 5b8168c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/install_extra_target.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use MBTest tests => 6;

blib_load('Module::Build');

use File::Spec::Functions qw( catdir );
use File::Spec::Functions qw( catdir catfile );

my $tmp = MBTest->tmpdir;
my $output;
Expand Down Expand Up @@ -128,8 +128,8 @@ diag "OUTPUT:\n$output" if $error;
$output = stdout_of sub { $dist->run_build('install') };

$error = 0;
$error++ unless ok(-e "$installdest/etc/simple/config", "installed etc/config");
$error++ unless ok(-e "$installdest/shared/simple/data", "installed shared/data");
$error++ unless ok(-e "$installdest/shared/simple/html/index.html", "installed shared/html");
$error++ unless ok(-e catfile($installdest, qw/etc simple config/), "installed etc/config");
$error++ unless ok(-e catfile($installdest, qw/shared simple data/), "installed shared/data");
$error++ unless ok(-e catfile($installdest, qw/shared simple html index.html/), "installed shared/html");
diag "OUTPUT:\n$output" if $error;

0 comments on commit 5b8168c

Please sign in to comment.