stdhandle.t: unlink the right file.
authorDavid Mitchell <davem@iabyn.com>
Wed, 23 Oct 2013 15:40:55 +0000 (16:40 +0100)
committerDavid 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

index 861bdab..ff2a18b 100644 (file)
@@ -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");