6 # Can't use Test.pm, that's a 5.005 thing.
9 # This feature requires a fairly new version of Test::Harness
11 require Test::Harness;
12 if( $Test::Harness::VERSION < 1.20 ) {
13 print "1..0 # Skipped: Need Test::Harness 1.20 or up\n";
21 # Utility testing functions.
23 my($test, $name) = @_;
25 $ok .= "not " unless $test;
26 $ok .= "ok $test_num";
27 $ok .= " - $name" if defined $name;
38 push @INC, '../t/lib';
39 require Test::Simple::Catch;
40 my($out, $err) = Test::Simple::Catch::caught();
43 Test::Simple->import('no_plan');
49 My::Test::ok($$out eq <<OUT);
54 My::Test::ok($$err eq <<ERR);
57 # Prevent Test::Simple from exiting with non zero