develooper Front page | perl.perl5.porters | Postings from July 2005

Typo in t/op/stat.t

From:
Gisle Aas
Date:
July 14, 2005 23:20
Subject:
Typo in t/op/stat.t
Message ID:
lr64vcfv4t.fsf@caliper.activestate.com
The $file variable is never used or initialized anywhere else.
This is a fix:

--- t/op/stat.t.orig	2005-07-14 23:16:52.000000000 -0700
+++ t/op/stat.t	2005-07-14 23:17:07.000000000 -0700
@@ -462,7 +462,7 @@
     -T _;
     my $s2 = -s _;
     is($s1, $s2, q(-T _ doesn't break the statbuffer));
-    unlink $file;
+    unlink $tmpfile;
 }
 
 END {



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About