1 ################################################################################
3 # !!!!! Do NOT edit this file directly! !!!!!
5 # Edit mktests.PL and/or parts/inc/variables 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;
51 ok(Devel::PPPort::compare_PL_signals());
53 ok(!defined(&Devel::PPPort::PL_sv_undef()));
54 ok(&Devel::PPPort::PL_sv_yes());
55 ok(!&Devel::PPPort::PL_sv_no());
56 ok(&Devel::PPPort::PL_na("abcd"), 4);
57 ok(&Devel::PPPort::PL_Sv(), "mhx");
58 ok(defined &Devel::PPPort::PL_tokenbuf());
59 ok($] >= 5.009005 || &Devel::PPPort::PL_parser());
60 ok(&Devel::PPPort::PL_hexdigit() =~ /^[0-9a-zA-Z]+$/);
61 ok(defined &Devel::PPPort::PL_hints());
62 ok(&Devel::PPPort::PL_ppaddr("mhx"), "MHX");
64 for (&Devel::PPPort::other_variables()) {
72 local $SIG{'__WARN__'} = sub { push @w, @_ };
73 ok(&Devel::PPPort::dummy_parser_warning());
79 unless (/^warning: dummy PL_bufptr used in.*module3.*:\d+/i) {
91 ok(&Devel::PPPort::no_dummy_parser_vars(1) >= ($] < 5.009005 ? 1 : 0));
93 eval { &Devel::PPPort::no_dummy_parser_vars(0) };
101 ok($@ =~ /^panic: PL_parser == NULL in.*module2.*:\d+/i);