Commit | Line | Data |
---|---|---|
ccbd73a4 | 1 | #!/usr/bin/perl -w |
ccbd73a4 | 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 | use warnings; | |
15 | ||
3e887aae | 16 | use Test::Builder::NoOutput; |
ccbd73a4 | 17 | |
18 | use Test::More tests => 2; | |
19 | ||
20 | { | |
3e887aae | 21 | my $tb = Test::Builder::NoOutput->create; |
ccbd73a4 | 22 | |
3e887aae | 23 | $tb->note("foo"); |
ccbd73a4 | 24 | |
3e887aae | 25 | $tb->reset_outputs; |
ccbd73a4 | 26 | |
3e887aae | 27 | is $tb->read('out'), "# foo\n"; |
28 | is $tb->read('err'), ''; | |
ccbd73a4 | 29 | } |
30 |