1 # Can't use Test.pm, that's a 5.005 thing.
4 # This feature requires a fairly new version of Test::Harness
7 if( $Test::Harness::VERSION < 1.20 ) {
16 # Utility testing functions.
18 my($test, $name) = @_;
20 $ok .= "not " unless $test;
21 $ok .= "ok $test_num";
22 $ok .= " - $name" if defined $name;
34 require Test::Simple::Catch::More;
35 my($out, $err) = Test::Simple::Catch::More::caught();
38 Test::Simple->import('no_plan');
44 My::Test::ok($$out eq <<OUT);
49 My::Test::ok($$err eq <<ERR);
52 # Prevent Test::Simple from exiting with non zero