4 if( $ENV{PERL_CORE} ) {
10 # Can't use Test.pm, that's a 5.005 thing.
13 # This has to be a require or else the END block below runs before
14 # Test::Builder's own and the ending diagnostics don't come out right.
15 require Test::Builder;
16 my $TB = Test::Builder->create;
17 $TB->plan(tests => 3);
25 push @INC, '../t/lib/';
26 require Test::Simple::Catch;
27 my($out, $err) = Test::Simple::Catch::caught();
28 local $ENV{HARNESS_ACTIVE} = 0;
30 Test::Simple->import(tests => 1);
34 $TB->is_eq($out->read, <<OUT);
38 $TB->is_eq($err->read, <<ERR);
39 # Looks like your test exited with 250 before it could output anything.
42 $TB->is_eq($?, 250, "exit code");
44 exit grep { !$_ } $TB->summary;