4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
15 require Test::Simple::Catch;
16 my($out, $err) = Test::Simple::Catch::caught();
17 local $ENV{HARNESS_ACTIVE} = 0;
20 # Can't use Test.pm, that's a 5.005 thing.
26 # Utility testing functions.
28 my($test, $name) = @_;
30 $ok .= "not " unless $test;
31 $ok .= "ok $test_num";
32 $ok .= " - $name" if defined $name;
44 Test::Simple->import(tests => 1);
50 My::Test::ok($$out eq <<OUT);
55 My::Test::ok($$err eq <<ERR) || print $$err;
56 # Failed test in $0 at line 45.
57 # Looks like you failed 1 test of 1.
60 # Prevent Test::Simple from existing with non-zero