ok( chdir File::Spec->updir );
ok( teardown_recurs(), 'teardown' );
}
-
+# ensure the env doesnt pollute our tests
+local $ENV{EU_INSTALL_ALWAYS_COPY};
+local $ENV{EU_ALWAYS_COPY};
+
chdir 'Big-Dummy';
my $stdout = tie *STDOUT, 'TieOut';
{
local @INC = ('install-test/lib/perl');
local $ENV{PERL5LIB} = '';
- local $ENV{EU_ALWAYS_COPY}=1;
+ local $ENV{EU_INSTALL_ALWAYS_COPY}=1;
my $tfile='install-test/other_lib/perl/Big/Dummy.pm';
my $sfile='blib/lib/Big/Dummy.pm';
ok(-r $tfile,"install file already exists");
ok( -d 'install-test/other_lib/perl', 'install made other dir' );
ok( -r 'install-test/other_lib/perl/Big/Dummy.pm', ' .pm file installed' );
ok( -r 'install-test/packlist', ' packlist exists' );
- ok( (stat $tfile)[9]==(stat$sfile)[9],' Times are same');
+SKIP: {
+ skip "Times not preserved during copy by default", 1 if $^O eq 'VMS';
+ ok( (stat $tfile)[9]==(stat $sfile)[9],' Times are same');
+}
ok( !$result{install_unchanged},' $result{install_unchanged} should be empty');
}
# Test nothing is copied.
{
local @INC = ('install-test/lib/perl');
local $ENV{PERL5LIB} = '';
- local $ENV{EU_ALWAYS_COPY}=0;
+ local $ENV{EU_INSTALL_ALWAYS_COPY}=0;
my $tfile='install-test/other_lib/perl/Big/Dummy.pm';
my $sfile='blib/lib/Big/Dummy.pm';
ok(-r $tfile,"install file already exists");
ok( (stat $tfile)[9]!=(stat$sfile)[9],' Times are different');
ok( !$result{install},' nothing should have been installed');
ok( $result{install_unchanged},' install_unchanged should be populated');
-}
\ No newline at end of file
+}