projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfeca2c
)
Really check that sysread(I, $x, 1, -4) dies with "Offset outside string"
author
Vincent Pit
<perl@profvince.com>
Mon, 27 Jul 2009 16:21:14 +0000
(18:21 +0200)
committer
Vincent Pit
<perl@profvince.com>
Mon, 27 Jul 2009 16:21:14 +0000
(18:21 +0200)
t/op/sysio.t
patch
|
blob
|
history
diff --git
a/t/op/sysio.t
b/t/op/sysio.t
index
c777afb
..
966a516
100644
(file)
--- a/
t/op/sysio.t
+++ b/
t/op/sysio.t
@@
-28,7
+28,7
@@
is($x, 'abc');
# should not be able to read before the buffer
eval { sysread(I, $x, 1, -4) };
-
is($x, 'abc'
);
+
like($@, qr/^Offset outside string /
);
# $x should be intact
is($x, 'abc');