Remove broken links for hip communications inc.
[p5sagit/p5-mst-13.2.git] / ext / Test-Simple / t / fail_one.t
1 #!/usr/bin/perl -w
2
3 BEGIN {
4     if( $ENV{PERL_CORE} ) {
5         chdir 't';
6         @INC = ('../lib', 'lib');
7     }
8     else {
9         unshift @INC, 't/lib';
10     }
11 }
12
13 use strict;
14
15 # Normalize the output whether we're running under Test::Harness or not.
16 local $ENV{HARNESS_ACTIVE} = 0;
17
18 use Test::Builder;
19 use Test::Builder::NoOutput;
20
21 my $Test = Test::Builder->new;
22
23 {
24     my $tb = Test::Builder::NoOutput->create;
25
26     $tb->plan( tests => 1 );
27
28 #line 28
29     $tb->ok(0);
30     $tb->_ending;
31
32     $Test->is_eq($tb->read('out'), <<OUT);
33 1..1
34 not ok 1
35 OUT
36
37     $Test->is_eq($tb->read('err'), <<ERR);
38 #   Failed test at $0 line 28.
39 # Looks like you failed 1 test of 1.
40 ERR
41
42     $Test->done_testing(2);
43 }