This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
test various types of SVs with call_sv
authorDaniel Dragan <bulk88@hotmail.com>
Sun, 22 Dec 2013 05:54:14 +0000 (00:54 -0500)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 23 Dec 2013 16:25:08 +0000 (08:25 -0800)
commita85ce6f00e06e5b8cbd3c9bd115058b4e9b08f8d
tree0f11dfe158cd208b9f084241dbc73a8952dbe574
parente0b7b5e2d45f1c3adc7e7f4afb29a4cfa6ca788c
test various types of SVs with call_sv

call_sv takes RVs, PVs, CVs, GVs, and an immortal. This isn't well
documented. CVs and immortals can't, or can't easily be tested from
pure perl, so do it from XS. SVt_PVLV with isGV_with_GP is one thing
call_sv takes but is not tested by this commit. Part of [perl #120826] .
ext/XS-APItest/APItest.pm
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/call.t