6 # 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;
32 require Test::Harness;
35 if( $Test::Harness::VERSION < 1.20 ) {
36 plan(skip_all => 'Need Test::Harness 1.20 or up');
39 push @INC, '../t/lib';
40 require Test::Simple::Catch;
41 ($out, $err) = Test::Simple::Catch::caught();
46 ok(1, 'Testing again');
49 My::Test::ok($$out eq <<OUT);
55 My::Test::ok($$err eq '');