projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf71573
)
Fix File::Copy test failure on Windows
author
Steve Hay
<steve.m.hay@googlemail.com>
Mon, 27 Aug 2012 17:09:11 +0000
(18:09 +0100)
committer
Steve Hay
<steve.m.hay@googlemail.com>
Tue, 28 Aug 2012 17:29:11 +0000
(18:29 +0100)
Failure was introduced by
43ddfa5614
which looks for a warning message from
code that isn't run on Windows.
lib/File/Copy.pm
patch
|
blob
|
history
diff --git
a/lib/File/Copy.pm
b/lib/File/Copy.pm
index
b5ca436
..
fd7403d
100644
(file)
--- a/
lib/File/Copy.pm
+++ b/
lib/File/Copy.pm
@@
-148,6
+148,10
@@
sub copy {
}
}
}
+ elsif (_eq($from, $to)) {
+ carp("'$from' and '$to' are identical (not copied)");
+ return 0;
+ }
if (defined &syscopy && !$Syscopy_is_copy
&& !$to_a_handle