This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
00db94a
)
stdhandle.t: unlink the right file.
author
David Mitchell
<davem@iabyn.com>
Wed, 23 Oct 2013 15:40:55 +0000
(16:40 +0100)
committer
David Mitchell
<davem@iabyn.com>
Wed, 23 Oct 2013 15:40:55 +0000
(16:40 +0100)
It writes to "afile", but initially deleted "afile.new" if it already
existed.
lib/Tie/Handle/stdhandle.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/Tie/Handle/stdhandle.t
b/lib/Tie/Handle/stdhandle.t
index
861bdab
..
ff2a18b
100644
(file)
--- a/
lib/Tie/Handle/stdhandle.t
+++ b/
lib/Tie/Handle/stdhandle.t
@@
-13,7
+13,7
@@
tie *tst,Tie::StdHandle;
$f = 'tst';
-unlink("afile
.new
") if -f "afile";
+unlink("afile") if -f "afile";
ok(open($f,"+>afile"), "open +>afile");
ok(open($f, "+<", "afile"), "open +<, afile");