2 if( $ENV{PERL_CORE} ) {
4 @INC = ('../lib', 'lib');
11 # Can't use Test.pm, that's a 5.005 thing.
17 # Utility testing functions.
19 my($test, $name) = @_;
21 $ok .= "not " unless $test;
22 $ok .= "ok $test_num";
23 $ok .= " - $name" if defined $name;
34 require Test::Simple::Catch;
35 my($out, $err) = Test::Simple::Catch::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