| 1 | ################################################################################ |
| 2 | # |
| 3 | # !!!!! Do NOT edit this file directly! !!!!! |
| 4 | # |
| 5 | # Edit mktests.PL and/or parts/inc/newSV_type instead. |
| 6 | # |
| 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. |
| 10 | # |
| 11 | ################################################################################ |
| 12 | |
| 13 | use FindBin (); |
| 14 | |
| 15 | BEGIN { |
| 16 | if ($ENV{'PERL_CORE'}) { |
| 17 | chdir 't' if -d 't'; |
| 18 | unshift @INC, '../lib' if -d '../lib' && -d '../ext'; |
| 19 | require Config; Config->import; |
| 20 | use vars '%Config'; |
| 21 | if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) { |
| 22 | print "1..0 # Skip -- Perl configured without Devel::PPPort module\n"; |
| 23 | exit 0; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | use lib "$FindBin::Bin"; |
| 28 | use lib "$FindBin::Bin/../parts/inc"; |
| 29 | |
| 30 | die qq[Cannot find "$FindBin::Bin/../parts/inc"] unless -d "$FindBin::Bin/../parts/inc"; |
| 31 | |
| 32 | sub load { |
| 33 | require 'testutil.pl'; |
| 34 | require 'inctools'; |
| 35 | } |
| 36 | |
| 37 | if (1) { |
| 38 | load(); |
| 39 | plan(tests => 1); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | use Devel::PPPort; |
| 44 | use strict; |
| 45 | BEGIN { $^W = 1; } |
| 46 | |
| 47 | package Devel::PPPort; |
| 48 | use vars '@ISA'; |
| 49 | require DynaLoader; |
| 50 | @ISA = qw(DynaLoader); |
| 51 | Devel::PPPort->bootstrap; |
| 52 | |
| 53 | package main; |
| 54 | |
| 55 | is(Devel::PPPort::newSV_type(), 4); |
| 56 | |