projects
/
imager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33931a1
)
avoid a warning during testing on 5.22+
author
Tony Cook
<tony@develop-help.com>
Thu, 29 Oct 2015 23:33:54 +0000
(10:33 +1100)
committer
Tony Cook
<tony@develop-help.com>
Thu, 29 Oct 2015 23:33:54 +0000
(10:33 +1100)
the code puts a file handle into an error state, which confuses the
new diagnostic that triggers when we fail to close a handle implicitly
t/200-file/300-raw.t
patch
|
blob
|
blame
|
history
diff --git
a/t/200-file/300-raw.t
b/t/200-file/300-raw.t
index 52ab8501e1aeb129c2dc6132ea294bef017ef490..ed92efe23b794faff4005a94080f6b91f4071c49 100644
(file)
--- a/
t/200-file/300-raw.t
+++ b/
t/200-file/300-raw.t
@@
-186,6
+186,7
@@
SKIP:
ok(!$im->read(fh => \*RAW, , xsize => 50, ysize=>50, type=>'raw', interleave => 1),
'read a file open for write');
cmp_ok($im->errstr, '=~', '^error reading file: read\(\) failure', "check message");
+ close RAW; # avoid a message on 5.22+
}
}