4 if( $ENV{PERL_CORE} ) {
10 # Can't use Test.pm, that's a 5.005 thing.
14 # Utility testing functions.
16 my($test, $name) = @_;
18 $ok .= "not " unless $test;
19 $ok .= "ok $test_num";
20 $ok .= " - $name" if defined $name;
27 my $Test = Test::Builder->new();
30 my $out = $Test->output('foo');
38 open(IN, 'foo') or die $!;
39 chomp(my $line = <IN>);
44 open(FOO, ">>foo") or die $!;
45 $out = $Test->output(\*FOO);
51 open(IN, 'foo') or die $!;
55 ok($lines[1] =~ /Hello!/);