Stubbed subs no longer have CvOUTSIDE set.
authorNicholas Clark <nick@ccl4.org>
Fri, 10 May 2013 07:25:13 +0000 (09:25 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 10 May 2013 07:25:13 +0000 (09:25 +0200)
commit75510c888a93290158c2310b4e24495de6f5c692
tree8e81633b1db2fd194aa4f67e94562a248ec760cd
parentcd50b0d77d60aae0711ec4b6e55f0f706a8d4e41
Stubbed subs no longer have CvOUTSIDE set.

t/code.t was testing whether Devel::Size was following CvOUTSIDE by relying
on the implementation detail that CvOUTSIDE is set for a subroutine that is
explicitly stubbed, and not set for one that is implicitly stubbed at runtime.

v5.17.0 changed the compile-time behaviour so that no stubbed subroutine has
CvOUTSIDE set, which breaks the assumption of this test. Hence change the test
to verify the new behaviour. However, this leaves us currently with no test
for CvOUTSIDE.

(Based on a patch by Zefram. see RT #83903 and perl's commit 8be227ab5eaa23f2)
CHANGES
t/code.t