2 # $Id: /mirror/googlecode/test-more/t/extra_one.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51 $
5 if( $ENV{PERL_CORE} ) {
7 @INC = ('../lib', 'lib');
10 unshift @INC, 't/lib';
16 require Test::Simple::Catch;
17 my($out, $err) = Test::Simple::Catch::caught();
19 # Can't use Test.pm, that's a 5.005 thing.
22 # This has to be a require or else the END block below runs before
23 # Test::Builder's own and the ending diagnostics don't come out right.
24 require Test::Builder;
25 my $TB = Test::Builder->create;
26 $TB->plan(tests => 2);
28 sub is { $TB->is_eq(@_) }
34 Test::Simple->import(tests => 1);
40 My::Test::is($$out, <<OUT);
47 My::Test::is($$err, <<ERR);
48 # Looks like you planned 1 test but ran 3.
51 # Prevent Test::Simple from existing with non-zero