4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib/');
9 unshift @INC, 't/lib/';
14 use ExtUtils::Command;
15 use Test::More tests => 1;
17 open FILE, ">source" or die $!;
21 # Instead of sleeping to make the file time older
22 utime time - 900, time - 900, "source";
24 END { 1 while unlink "source", "dest"; }
26 # Win32 bug, cp wouldn't update mtime.
28 local @ARGV = qw(source dest);
30 my $mtime = (stat("dest"))[9];
32 cmp_ok( abs($mtime - $now), '<=', 1, 'cp updated mtime' );