1 # Can't use Test.pm, that's a 5.005 thing.
4 # This feature requires a fairly new version of Test::Harness
9 if( $Test::Harness::VERSION < 1.20 ) {
18 # Utility testing functions.
20 my($test, $name) = @_;
22 $ok .= "not " unless $test;
23 $ok .= "ok $test_num";
24 $ok .= " - $name" if defined $name;
35 push @INC, '../t/lib';
36 require Test::Simple::Catch::More;
37 my($out, $err) = Test::Simple::Catch::More::caught();
40 Test::Simple->import('no_plan');
46 My::Test::ok($$out eq <<OUT);
51 My::Test::ok($$err eq <<ERR);
54 # Prevent Test::Simple from exiting with non zero