reading tied scalar shrinks it
authorZefram <zefram@fysh.org>
Tue, 27 Aug 2013 15:19:34 +0000 (16:19 +0100)
committerNicholas Clark <nick@ccl4.org>
Sat, 28 Feb 2015 14:17:20 +0000 (15:17 +0100)
commit8f3a45df6c12628273451c4921a73c9a9a85c3f5
tree6d00f93f37e1865924113e46d2525ac49ec69b5c
parentad06a65004e9646ccce249df1783cc23f441f946
reading tied scalar shrinks it

One of Devel-Size's tests, for a tied scalar visibly growing when the
underlying tie object grows, is failing on Perl 5.19.3 because an earlier
read of the scalar clears its PV buffer, causing the scalar to shrink.
Attached patch makes the test allow for such shrinkage.
t/magic.t