8 # Can't use Test.pm, that's a 5.005 thing.
12 # Utility testing functions.
14 my($test, $name) = @_;
16 $ok .= "not " unless $test;
17 $ok .= "ok $test_num";
18 $ok .= " - $name" if defined $name;
25 my $Test = Test::Builder->new();
28 my $out = $Test->output('foo');
36 open(IN, 'foo') or die $!;
37 chomp(my $line = <IN>);
41 open(FOO, ">>foo") or die $!;
42 $out = $Test->output(\*FOO);
48 open(IN, 'foo') or die $!;
52 ok($lines[1] =~ /Hello!/);