2 # $Id: /mirror/googlecode/test-more/t/no_tests.t 60310 2008-09-07T23:47:22.837229Z schwern $
5 if( $ENV{PERL_CORE} ) {
11 # Can't use Test.pm, that's a 5.005 thing.
14 # This has to be a require or else the END block below runs before
15 # Test::Builder's own and the ending diagnostics don't come out right.
16 require Test::Builder;
17 my $TB = Test::Builder->create;
18 $TB->plan(tests => 3);
26 push @INC, '../t/lib/';
27 require Test::Simple::Catch;
28 my($out, $err) = Test::Simple::Catch::caught();
29 local $ENV{HARNESS_ACTIVE} = 0;
31 Test::Simple->import(tests => 1);
34 $TB->is_eq($out->read, <<OUT);
38 $TB->is_eq($err->read, <<ERR);
42 $TB->is_eq($?, 255, "exit code");
44 exit grep { !$_ } $TB->summary;