the unopened test should use a file handle distinct from "OTHER" blead
authorTony Cook <tony@develop-help.com>
Tue, 17 Oct 2017 03:39:44 +0000 (14:39 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 17 Oct 2017 03:39:44 +0000 (14:39 +1100)
used a name and added a comment so this isn't broken again

t/io/tell.t

index 61ef6c8..7a046ca 100644 (file)
@@ -95,7 +95,8 @@ close(OTHER);
 }
 {
     no warnings 'unopened';
-    is(tell(OTHER), -1, "tell() for unopened file returns -1");
+    # this must be a handle that has never been opened
+    is(tell(UNOPENED), -1, "tell() for unopened file returns -1");
 }
 
 # ftell(STDIN) (or any std streams) is undefined, it can return -1 or