1 ################################################################################
3 # !!!!! Do NOT edit this file directly! !!!!!
5 # Edit mktests.PL and/or parts/inc/sv_xpvf instead.
7 # This file was automatically generated from the definition files in the
8 # parts/inc/ subdirectory by mktests.PL. To learn more about how all this
9 # works, please read the F<HACKERS> file that came with this distribution.
11 ################################################################################
14 if ($ENV{'PERL_CORE'}) {
16 @INC = ('../lib', '../ext/Devel-PPPort/t') if -d '../lib' && -d '../ext';
17 require Config; import Config;
19 if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) {
20 print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
30 require 'testutil.pl' if $@;
43 package Devel::PPPort;
46 @ISA = qw(DynaLoader);
47 bootstrap Devel::PPPort;
53 tie %h, 'Tie::StdHash';
57 ok(&Devel::PPPort::vnewSVpvf(), $] >= 5.004 ? 'Perl-42' : '%s-%d');
58 ok(&Devel::PPPort::sv_vcatpvf('1-2-3-'), $] >= 5.004 ? '1-2-3-Perl-42' : '1-2-3-%s-%d');
59 ok(&Devel::PPPort::sv_vsetpvf('1-2-3-'), $] >= 5.004 ? 'Perl-42' : '%s-%d');
61 &Devel::PPPort::sv_catpvf_mg($h{foo});
62 ok($h{foo}, $] >= 5.004 ? 'foo-Perl-42' : 'foo-');
64 &Devel::PPPort::Perl_sv_catpvf_mg($h{foo});
65 ok($h{foo}, $] >= 5.004 ? 'foo-Perl-42-Perl-43' : 'foo-');
67 &Devel::PPPort::sv_catpvf_mg_nocontext($h{foo});
68 ok($h{foo}, $] >= 5.004 ? 'foo-Perl-42-Perl-43-Perl-44' : 'foo-');
70 &Devel::PPPort::sv_setpvf_mg($h{bar});
71 ok($h{bar}, $] >= 5.004 ? 'mhx-42' : '');
73 &Devel::PPPort::Perl_sv_setpvf_mg($h{bar});
74 ok($h{bar}, $] >= 5.004 ? 'foo-43' : '');
76 &Devel::PPPort::sv_setpvf_mg_nocontext($h{bar});
77 ok($h{bar}, $] >= 5.004 ? 'bar-44' : '');