This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to Devel::PPPort 3.08_02
[perl5.git] / ext / Devel / PPPort / t / snprintf.t
1 ################################################################################
2 #
3 #            !!!!!   Do NOT edit this file directly!   !!!!!
4 #
5 #            Edit mktests.PL and/or parts/inc/snprintf instead.
6 #
7 ################################################################################
8
9 BEGIN {
10   if ($ENV{'PERL_CORE'}) {
11     chdir 't' if -d 't';
12     @INC = ('../lib', '../ext/Devel/PPPort/t') if -d '../lib' && -d '../ext';
13     require Config; import Config;
14     use vars '%Config';
15     if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) {
16       print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
17       exit 0;
18     }
19   }
20   else {
21     unshift @INC, 't';
22   }
23
24   sub load {
25     eval "use Test";
26     require 'testutil.pl' if $@;
27   }
28
29   if (2) {
30     load();
31     plan(tests => 2);
32   }
33 }
34
35 use Devel::PPPort;
36 use strict;
37 $^W = 1;
38
39 my($l, $s) = Devel::PPPort::my_snprintf();
40 ok($l, 8);
41 ok($s, "foobar42");
42