From 27895dda808516d2e00748a19f6648febae7161f Mon Sep 17 00:00:00 2001 From: Todd Rinaldo Date: Mon, 18 Jan 2016 16:30:37 +1100 Subject: Document broken SvSTASH for %version:: in B's test suite RT 126410: This may not be a B bug but we have no test coverage for SvSTASH at the moment. TODO the test until it is working correctly. TonyC: fix syntax error and update MANIFEST --- ext/B/t/sv_stash.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ext/B/t/sv_stash.t (limited to 'ext/B/t') diff --git a/ext/B/t/sv_stash.t b/ext/B/t/sv_stash.t new file mode 100644 index 0000000000..eaaabcf8fe --- /dev/null +++ b/ext/B/t/sv_stash.t @@ -0,0 +1,22 @@ +#!./perl -w + +BEGIN { + unshift @INC, 't'; + require Config; + if ( ( $Config::Config{'extensions'} !~ /\bB\b/ ) ) { + print "1..0 # Skip -- Perl configured without B module\n"; + exit 0; + } + require 'test.pl'; +} +plan 1; + +# RT #126410 = used to coredump when doing SvSTASH on %version:: + +TODO: { + local $TODO = 'Broken since c07f9fb2c7 - revert of a revert: slowed down detruction with no DESTROY'; + fresh_perl_is( + 'use B; version->new("v5.22.0"); $s = B::svref_2object(\%version::); $s->SvSTASH; print "ok\n"', + "ok\n", { stderr => 1 }, 'RT #126410 - SvSTASH against %version::' + ); +} -- cgit v1.2.1