4 if( $ENV{PERL_CORE} ) {
9 unless ($Config{usedl}) {
10 print "1..0 # no usedl, skipping\n";
17 use ExtUtils::MakeMaker;
18 use ExtUtils::Constant qw (constant_types C_constant XS_constant autoload);
22 my $do_utf_tests = $] > 5.006;
23 my $better_than_56 = $] > 5.007;
24 # For debugging set this to 1.
28 # Because were are going to be changing directory before running Makefile.PL
30 # 5.005 doesn't have new enough File::Spec to have rel2abs. But actually we
31 # only need it when $^X isn't absolute, which is going to be 5.8.0 or later
32 # (where ExtUtils::Constant is in the core, and tests against the uninstalled
34 $perl = File::Spec->rel2abs ($perl) unless $] < 5.006;
35 # ExtUtils::Constant::C_constant uses $^X inside a comment, and we want to
36 # compare output to ensure that it is the same. We were probably run as ./perl
37 # whereas we will run the child with the full path in $perl. So make $^X for
38 # us the same as our child will see.
40 my $lib = $ENV{PERL_CORE} ? '../../../lib' : '../../blib/lib';
41 my $runperl = "$perl \"-I$lib\"";
42 print "# perl=$perl\n";
44 my $make = $Config{make};
45 $make = $ENV{MAKE} if exists $ENV{MAKE};
46 if ($^O eq 'MSWin32' && $make eq 'nmake') { $make .= " -nologo"; }
48 # Renamed by make clean
49 my $makefile = ($^O eq 'VMS' ? 'descrip' : 'Makefile');
50 my $makefile_ext = ($^O eq 'VMS' ? '.mms' : '');
51 my $makefile_rename = $makefile . ($^O eq 'VMS' ? '.mms' : '.old');
53 my $output = "output";
54 my $package = "ExtTest";
57 # The real test counter.
61 my $updir = File::Spec->updir;
62 die "Can't get current directory: $!" unless defined $orig_cwd;
64 print "# $dir being created...\n";
65 mkdir $dir, 0777 or die "mkdir: $!\n";
68 if (defined $orig_cwd and length $orig_cwd) {
69 chdir $orig_cwd or die "Can't chdir back to '$orig_cwd': $!";
71 print "# $dir being removed...\n";
72 rmtree($dir) unless $keep_files;
75 die "cwd at start was empty, but directory '$dir' was created" if $dir;
80 push @INC, '../../lib', '../../../lib';
82 sub check_for_bonus_files {
84 my %expect = map {($^O eq 'VMS' ? lc($_) : $_), 1} @_;
87 opendir DIR, $dir or die "opendir '$dir': $!";
88 while (defined (my $entry = readdir DIR)) {
89 $entry =~ s/\.$// if $^O eq 'VMS'; # delete trailing dot that indicates no extension
90 next if $expect{$entry};
91 print "# Extra file '$entry'\n";
95 closedir DIR or warn "closedir '.': $!";
97 print "not ok $realtest\n";
99 print "ok $realtest\n";
105 my ($tests, $expect, $files) = @_;
106 my $core = $ENV{PERL_CORE} ? ' PERL_CORE=1' : '';
107 my @perlout = `$runperl Makefile.PL $core`;
109 print "not ok $realtest # $runperl Makefile.PL failed: $?\n";
110 print "# $_" foreach @perlout;
113 print "ok $realtest\n";
117 if (-f "$makefile$makefile_ext") {
118 print "ok $realtest\n";
120 print "not ok $realtest\n";
126 if ($^O eq 'VMS') { $make .= ' all'; }
128 # Sometimes it seems that timestamps can get confused
131 # Makefile out-of-date with respect to Makefile.PL
132 # Cleaning current config before rebuilding Makefile...
133 # make -f Makefile.old clean > /dev/null 2>&1 || /bin/sh -c true
134 # ../../perl "-I../../../lib" "-I../../../lib" Makefile.PL "PERL_CORE=1"
135 # Checking if your kit is complete...
137 # Writing Makefile for ExtTest
138 # ==> Your Makefile has been rebuilt. <==
139 # ==> Please rerun the make command. <==
142 my $timewarp = (-M "Makefile.PL") - (-M "$makefile$makefile_ext");
143 # Convert from days to seconds
145 print "# Makefile.PL is $timewarp second(s) older than $makefile$makefile_ext\n";
147 # Sleep for a while to catch up.
148 $timewarp = -$timewarp;
150 $timewarp = 10 if $timewarp > 10;
151 print "# Sleeping for $timewarp second(s) to try to resolve this\n";
155 print "# make = '$make'\n";
158 print "not ok $realtest # $make failed: $?\n";
159 print "# $_" foreach @makeout;
162 print "ok $realtest\n";
166 if ($^O eq 'VMS') { $make =~ s{ all}{}; }
168 if ($Config{usedl}) {
169 print "ok $realtest # This is dynamic linking, so no need to make perl\n";
171 my $makeperl = "$make perl";
172 print "# make = '$makeperl'\n";
173 @makeout = `$makeperl`;
175 print "not ok $realtest # $makeperl failed: $?\n";
176 print "# $_" foreach @makeout;
179 print "ok $realtest\n";
184 my $maketest = "$make test";
185 print "# make = '$maketest'\n";
187 @makeout = `$maketest`;
189 if (open OUTPUT, "<$output") {
190 local $/; # Slurp it - faster.
192 close OUTPUT or print "# Close $output failed: $!\n";
194 # Harness will report missing test results at this point.
195 print "# Open <$output failed: $!\n";
200 print "not ok $realtest # $maketest failed: $?\n";
201 print "# $_" foreach @makeout;
203 print "ok $realtest - maketest\n";
207 # -x is busted on Win32 < 5.6.1, so we emulate it.
209 if( $^O eq 'MSWin32' && $] <= 5.006001 ) {
210 open(REGENTMP, ">regentmp") or die $!;
211 open(XS, "$package.xs") or die $!;
214 $saw_shebang++ if /^#!.*/i ;
215 print REGENTMP $_ if $saw_shebang;
217 close XS; close REGENTMP;
218 $regen = `$runperl regentmp`;
222 $regen = `$runperl -x $package.xs`;
225 print "not ok $realtest # $runperl -x $package.xs failed: $?\n";
227 print "ok $realtest - regen\n";
231 if ($expect eq $regen) {
232 print "ok $realtest - regen worked\n";
234 print "not ok $realtest - regen worked\n";
235 # open FOO, ">expect"; print FOO $expect;
236 # open FOO, ">regen"; print FOO $regen; close FOO;
240 my $makeclean = "$make clean";
241 print "# make = '$makeclean'\n";
242 @makeout = `$makeclean`;
244 print "not ok $realtest # $make failed: $?\n";
245 print "# $_" foreach @makeout;
247 print "ok $realtest\n";
251 check_for_bonus_files ('.', @$files, $output, $makefile_rename, '.', '..');
253 rename $makefile_rename, $makefile
254 or die "Can't rename '$makefile_rename' to '$makefile': $!";
256 unlink $output or warn "Can't unlink '$output': $!";
258 # Need to make distclean to remove ../../lib/ExtTest.pm
259 my $makedistclean = "$make distclean";
260 print "# make = '$makedistclean'\n";
261 @makeout = `$makedistclean`;
263 print "not ok $realtest # $make failed: $?\n";
264 print "# $_" foreach @makeout;
266 print "ok $realtest\n";
270 check_for_bonus_files ('.', @$files, '.', '..');
272 unless ($keep_files) {
274 unlink $_ or warn "unlink $_: $!";
278 check_for_bonus_files ('.', '.', '..');
283 ################ Makefile.PL
284 # We really need a Makefile.PL because make test for a no dynamic linking perl
285 # will run Makefile.PL again as part of the "make perl" target.
286 my $makefilePL = "Makefile.PL";
287 open FH, ">$makefilePL" or die "open >$makefilePL: $!\n";
290 use ExtUtils::MakeMaker;
292 'NAME' => "$package",
293 'VERSION_FROM' => "$package.pm", # finds \$VERSION
295 (#ABSTRACT_FROM => "$package.pm", # XXX add this
296 AUTHOR => "$0") : ())
300 close FH or die "close $makefilePL: $!\n";
306 ################ MANIFEST
307 # We really need a MANIFEST because make distclean checks it.
308 my $manifest = "MANIFEST";
309 push @files, $manifest;
310 open FH, ">$manifest" or die "open >$manifest: $!\n";
311 print FH "$_\n" foreach @files;
312 close FH or die "close $manifest: $!\n";
316 sub write_and_run_extension {
317 my ($name, $items, $export_names, $package, $header, $testfile, $num_tests)
320 my $constant_types = constant_types(); # macro defs
321 my $C_constant = join "\n",
322 C_constant ($package, undef, "IV", $types, undef, undef, @$items);
323 my $XS_constant = XS_constant ($package, $types); # XS for ExtTest::constant
325 my $expect = $constant_types . $C_constant .
326 "\n#### XS Section:\n" . $XS_constant;
328 print "# $name\n# $dir/$subdir being created...\n";
329 mkdir $subdir, 0777 or die "mkdir: $!\n";
330 chdir $subdir or die $!;
334 ################ Header
335 my $header_name = "test.h";
336 push @files, $header_name;
337 open FH, ">$header_name" or die "open >$header_name: $!\n";
338 print FH $header or die $!;
339 close FH or die "close $header_name: $!\n";
342 my $xs = "$package.xs";
344 open FH, ">$xs" or die "open >$xs: $!\n";
352 # XXX Here doc these:
353 print FH "#include \"$header_name\"\n\n";
354 print FH $constant_types;
355 print FH $C_constant, "\n";
356 print FH "MODULE = $package PACKAGE = $package\n";
357 print FH "PROTOTYPES: ENABLE\n";
358 print FH $XS_constant;
359 close FH or die "close $xs: $!\n";
362 my $pm = "$package.pm";
364 open FH, ">$pm" or die "open >$pm: $!\n";
365 print FH "package $package;\n";
366 print FH "use $];\n";
372 printf FH "use warnings;\n" unless $] < 5.006;
378 use vars qw ($VERSION @ISA @EXPORT_OK $AUTOLOAD);
381 @ISA = qw(Exporter DynaLoader);
383 # Having this qw( in the here doc confuses cperl mode far too much to be
384 # helpful. And I'm using cperl mode to edit this, even if you're not :-)
385 print FH "\@EXPORT_OK = qw(\n";
387 # Print the names of all our autoloaded constants
388 print FH "\t$_\n" foreach (@$export_names);
390 # Print the AUTOLOAD subroutine ExtUtils::Constant generated for us
391 print FH autoload ($package, $]);
392 print FH "bootstrap $package \$VERSION;\n1;\n__END__\n";
393 close FH or die "close $pm: $!\n";
395 ################ test.pl
396 my $testpl = "test.pl";
397 push @files, $testpl;
398 open FH, ">$testpl" or die "open >$testpl: $!\n";
399 # Standard test header (need an option to suppress this?)
400 print FH <<"EOT" or die $!;
402 use $package qw(@$export_names);
405 if (open OUTPUT, ">$output") {
409 print "not ok 1 # Failed to open '$output': \$!\n";
413 print FH $testfile or die $!;
414 print FH <<"EOT" or die $!;
419 print "not ok 2 # Failed to close '$output': \$!\n";
422 close FH or die "close $testpl: $!\n";
424 push @files, Makefile_PL($package);
425 @files = MANIFEST (@files);
427 build_and_run ($num_tests, $expect, \@files);
429 chdir $updir or die "chdir '$updir': $!";
432 # Tests are arrayrefs of the form
433 # $name, [items], [export_names], $package, $header, $testfile, $num_tests
435 my $before_tests = 4; # Number of "ok"s emitted to build extension
436 my $after_tests = 8; # Number of "ok"s emitted after make test run
441 $dummytest += $before_tests;
445 my ($name, $items, $export_names, $header, $testfile) = @_;
446 push @tests, [$name, $items, $export_names, $package, $header, $testfile,
448 $dummytest += $after_tests;
452 if (ord('A') == 193) { # EBCDIC platform
453 $pound = chr 177; # A pound sign. (Currency)
454 } else { # ASCII platform
455 $pound = chr 163; # A pound sign. (Currency)
458 {name=>"perl", type=>"PV",},
459 {name=>"*/", type=>"PV", value=>'"CLOSE"', macro=>1},
460 {name=>"/*", type=>"PV", value=>'"OPEN"', macro=>1},
461 {name=>$pound, type=>"PV", value=>'"Sterling"', macro=>1},
468 'A Standard for the Transmission of IP Datagrams on Avian Carriers';
469 # Test the code that generates 1 and 2 letter name comparisons.
471 N => 0, 'NE' => 45, E => 90, SE => 135,
472 S => 180, SW => 225, W => 270, NW => 315
475 my $header = << "EOT";
477 #define OK6 "ok 6\\n"
479 #define FARTHING 0.25
484 #define RFC1149 "$parent_rfc1149"
489 while (my ($point, $bearing) = each %compass) {
490 $header .= "#define $point $bearing\n"
493 my @items = ("FIVE", {name=>"OK6", type=>"PV",},
494 {name=>"OK7", type=>"PVN",
495 value=>['"not ok 7\\n\\0ok 7\\n"', 15]},
496 {name => "FARTHING", type=>"NV"},
497 {name => "NOT_ZERO", type=>"UV", value=>"~(UV)0"},
498 {name => "OPEN", type=>"PV", value=>'"/*"', macro=>1},
499 {name => "CLOSE", type=>"PV", value=>'"*/"',
500 macro=>["#if 1\n", "#endif\n"]},
501 {name => "ANSWER", default=>["UV", 42]}, "NOTDEF",
502 {name => "Yes", type=>"YES"},
503 {name => "No", type=>"NO"},
504 {name => "Undef", type=>"UNDEF"},
505 # OK. It wasn't really designed to allow the creation of dual valued
507 # It was more for INADDR_ANY INADDR_BROADCAST INADDR_LOOPBACK INADDR_NONE
508 {name=>"RFC1149", type=>"SV", value=>"sv_2mortal(temp_sv)",
509 pre=>"SV *temp_sv = newSVpv(RFC1149, 0); "
510 . "(void) SvUPGRADE(temp_sv,SVt_PVIV); SvIOK_on(temp_sv); "
511 . "SvIVX(temp_sv) = 1149;"},
514 push @items, $_ foreach keys %compass;
516 # Automatically compile the list of all the macro names, and make them
517 # exported constants.
518 my @export_names = map {(ref $_) ? $_->{name} : $_} @items;
520 # Exporter::Heavy (currently) isn't able to export the last 3 of these:
521 push @items, @common_items;
523 # XXX there are hardwired still.
524 my $test_body = <<'EOT';
525 # What follows goes to the temporary file.
531 print "not ok 5 # \$five\n";
537 # PVN containing embedded \0s
543 my $farthing = FARTHING;
544 if ($farthing == 0.25) {
547 print "not ok 8 # $farthing\n";
551 my $not_zero = NOT_ZERO;
552 if ($not_zero > 0 && $not_zero == ~0) {
555 print "not ok 9 # \$not_zero=$not_zero ~0=" . (~0) . "\n";
558 # Value includes a "*/" in an attempt to bust out of a C comment.
559 # Also tests custom cpp #if clauses
561 if ($close eq '*/') {
564 print "not ok 10 # \$close='$close'\n";
567 # Default values if macro not defined.
572 print "not ok 11 # What do you get if you multiply six by nine? '$answer'\n";
576 my $notdef = eval { NOTDEF; };
577 if (defined $notdef) {
578 print "not ok 12 # \$notdef='$notdef'\n";
579 } elsif ($@ !~ /Your vendor has not defined ExtTest macro NOTDEF/) {
580 print "not ok 12 # \$@='$@'\n";
586 my $notthere = eval { &ExtTest::NOTTHERE; };
587 if (defined $notthere) {
588 print "not ok 13 # \$notthere='$notthere'\n";
589 } elsif ($@ !~ /NOTTHERE is not a valid ExtTest macro/) {
591 print "not ok 13 # \$@='$@'\n";
601 print "not ok 14 # $yes='\$yes'\n";
606 if (defined $no and !$no) {
609 print "not ok 15 # \$no=" . defined ($no) ? "'$no'\n" : "undef\n";
614 unless (defined $undef) {
617 print "not ok 16 # \$undef='$undef'\n";
620 # invalid macro (chosen to look like a mix up between No and SW)
621 $notdef = eval { &ExtTest::So };
622 if (defined $notdef) {
623 print "not ok 17 # \$notdef='$notdef'\n";
624 } elsif ($@ !~ /^So is not a valid ExtTest macro/) {
625 print "not ok 17 # \$@='$@'\n";
630 # invalid defined macro
631 $notdef = eval { &ExtTest::EW };
632 if (defined $notdef) {
633 print "not ok 18 # \$notdef='$notdef'\n";
634 } elsif ($@ !~ /^EW is not a valid ExtTest macro/) {
635 print "not ok 18 # \$@='$@'\n";
643 while (my ($point, $bearing) = each %compass) {
644 $test_body .= "'$point' => $bearing, "
647 $test_body .= <<'EOT';
652 while (my ($point, $bearing) = each %compass) {
653 my $val = eval $point;
655 print "# $point: \$@='$@'\n";
657 } elsif (!defined $bearing) {
658 print "# $point: \$val=undef\n";
660 } elsif ($val != $bearing) {
661 print "# $point: \$val=$val, not $bearing\n";
673 $test_body .= <<"EOT";
674 my \$rfc1149 = RFC1149;
675 if (\$rfc1149 ne "$parent_rfc1149") {
676 print "not ok 20 # '\$rfc1149' ne '$parent_rfc1149'\n";
681 if (\$rfc1149 != 1149) {
682 printf "not ok 21 # %d != 1149\n", \$rfc1149;
689 $test_body .= <<'EOT';
695 print "not ok 22 # \$open='$open'\n";
700 end_tests("Simple tests", \@items, \@export_names, $header, $test_body);
706 my ($inf, $pound_bytes, $pound_utf8);
709 # Check that we can distiguish the pathological case of a string, and the
710 # utf8 representation of that string.
711 $pound_utf8 = $pound . '1';
712 if ($better_than_56) {
713 $pound_bytes = $pound_utf8;
714 utf8::encode ($pound_bytes);
716 # Must have that "U*" to generate a zero length UTF string that forces
717 # top bit set chars (such as the pound sign) into UTF8, so that the
718 # unpack 'C*' then gets the byte form of the UTF8.
719 $pound_bytes = pack 'C*', unpack 'C*', $pound_utf8 . pack "U*";
722 my @items = (@common_items,
723 {name=>$inf, type=>"PV", value=>'"Infinity"', macro=>1},
724 {name=>$pound_utf8, type=>"PV", value=>'"1 Pound"', macro=>1},
725 {name=>$pound_bytes, type=>"PV", value=>'"1 Pound (as bytes)"',
731 The above set of names seems to produce a suitably bad set of compile
732 problems on a Unicode naive version of ExtUtils::Constant (ie 0.11):
734 nick@thinking-cap 15439-32-utf$ PERL_CORE=1 ./perl lib/ExtUtils/t/Constant.t
736 # perl=/stuff/perl5/15439-32-utf/perl
737 # ext-30370 being created...
738 Wide character in print at lib/ExtUtils/t/Constant.t line 140.
742 ExtTest.xs: In function `constant_1':
743 ExtTest.xs:80: warning: multi-character character constant
744 ExtTest.xs:80: warning: case value out of range
751 # Do this in 7 bit in case someone is testing with some settings that cause
752 # 8 bit files incapable of storing this character.
754 = map {"'" . join (",", unpack "U*", $_ . pack "U*") . "'"}
755 ($pound, $inf, $pound_bytes, $pound_utf8);
756 # Values is a list of strings, such as ('194,163,49', '163,49')
758 my $test_body .= "my \$test = $dummytest;\n";
759 $dummytest += 7 * 3; # 3 tests for each of the 7 things:
761 $test_body .= << 'EOT';
764 my $better_than_56 = $] > 5.007;
766 my ($pound, $inf, $pound_bytes, $pound_utf8) = map {eval "pack 'U*', $_"}
769 $test_body .= join ",", @values;
771 $test_body .= << 'EOT';
774 foreach (["perl", "rules", "rules"],
775 ["/*", "OPEN", "OPEN"],
776 ["*/", "CLOSE", "CLOSE"],
777 [$pound, 'Sterling', []],
778 [$inf, 'Infinity', []],
779 [$pound_utf8, '1 Pound', '1 Pound (as bytes)'],
780 [$pound_bytes, '1 Pound (as bytes)', []],
782 # Flag an expected error with a reference for the expect string.
783 my ($string, $expect, $expect_bytes) = @$_;
784 (my $name = $string) =~ s/([^ -~])/sprintf '\x{%X}', ord $1/ges;
785 print "# \"$name\" => \'$expect\'\n";
786 # Try to force this to be bytes if possible.
787 if ($better_than_56) {
788 utf8::downgrade ($string, 1);
790 if ($string =~ tr/0-\377// == length $string) {
791 # No chars outside range 0-255
792 $string = pack 'C*', unpack 'U*', ($string . pack 'U*');
797 $test_body .= "my (\$error, \$got) = ${package}::constant (\$string);\n";
799 $test_body .= <<'EOT';
800 if ($error or $got ne $expect) {
801 print "not ok $test # error '$error', got '$got'\n";
806 print "# Now upgrade '$name' to utf8\n";
807 if ($better_than_56) {
808 utf8::upgrade ($string);
810 $string = pack ('U*') . $string;
814 $test_body .= "my (\$error, \$got) = ${package}::constant (\$string);\n";
816 $test_body .= <<'EOT';
817 if ($error or $got ne $expect) {
818 print "not ok $test # error '$error', got '$got'\n";
823 if (defined $expect_bytes) {
824 print "# And now with the utf8 byte sequence for name\n";
825 # Try the encoded bytes.
826 if ($better_than_56) {
827 utf8::encode ($string);
829 $string = pack 'C*', unpack 'C*', $string . pack "U*";
833 $test_body .= "my (\$error, \$got) = ${package}::constant (\$string);\n";
835 $test_body .= <<'EOT';
836 if (ref $expect_bytes) {
839 print "ok $test # error='$error' (as expected)\n";
841 print "not ok $test # expected error, got no error and '$got'\n";
843 } elsif ($got ne $expect_bytes) {
844 print "not ok $test # error '$error', expect '$expect_bytes', got '$got'\n";
853 end_tests("utf8 tests", \@items, [], "#define perl \"rules\"\n", $test_body);
856 # XXX I think that I should merge this into the utf8 test above.
857 sub explict_call_constant {
858 my ($string, $expect) = @_;
859 # This does assume simple strings suitable for ''
860 my $test_body = <<"EOT";
862 my (\$error, \$got) = ${package}::constant ('$string');\n;
865 if (defined $expect) {
867 $test_body .= <<"EOT";
868 if (\$error or \$got ne "$expect") {
869 print "not ok $dummytest # error '\$error', expect '$expect', got '\$got'\n";
871 print "ok $dummytest\n";
877 $test_body .= <<"EOT";
879 print "ok $dummytest # error='\$error' (as expected)\n";
881 print "not ok $dummytest # expected error, got no error and '\$got'\n";
886 return $test_body . <<'EOT';
891 # Simple tests to verify bits of the switch generation system work.
894 # Deliberately leave $name in @_, so that it is indexed from 1.
895 my ($name, @items) = @_;
897 my $test_body = "my \$value;\n";
898 foreach my $counter (1 .. $#_) {
899 my $thisname = $_[$counter];
900 $test_header .= "#define $thisname $counter\n";
901 $test_body .= <<"EOT";
903 if (\$value == $counter) {
904 print "ok $dummytest\n";
906 print "not ok $dummytest # $thisname gave \$value\n";
910 # Yes, the last time round the loop appends a z to the string.
911 for my $i (0 .. length $thisname) {
912 my $copyname = $thisname;
913 substr ($copyname, $i, 1) = 'z';
914 $test_body .= explict_call_constant ($copyname,
915 $copyname eq $thisname
916 ? $thisname : undef);
919 # Ho. This seems to be buggy in 5.005_03:
920 # # Now remove $name from @_:
922 end_tests($name, \@items, \@items, $test_header, $test_body);
925 # Check that the memeq clauses work correctly when there isn't a switch
926 # statement to bump off a character
927 simple ("Singletons", "A", "AB", "ABC", "ABCD", "ABCDE");
928 # Check the three code.
929 simple ("Three start", qw(Bea kea Lea lea nea pea rea sea tea Wea yea Zea));
930 # There were 162 2 letter words in /usr/share/dict/words on FreeBSD 4.6, which
931 # I felt was rather too many. So I used words with 2 vowels.
932 simple ("Twos and three middle", qw(aa ae ai ea eu ie io oe era eta));
933 # Given the choice go for the end, else the earliest point
934 simple ("Three end and four symetry", qw(ean ear eat barb marm tart));
937 # Need this if the single test below is rolled into @tests :
939 print "1..$dummytest\n";
941 write_and_run_extension @$_ foreach @tests;
943 # This was causing an assertion failure (a C<confess>ion)
944 # Any single byte > 128 should do it.
945 C_constant ($package, undef, undef, undef, undef, undef, chr 255);
946 print "ok $realtest\n"; $realtest++;
948 print STDERR "# You were running with \$keep_files set to $keep_files\n"