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