Upgrade to Test::Simple 0.33.
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / filehandles.t
CommitLineData
33459055 1#!perl -w
2
3use Test::More tests => 1;
4
5tie *STDOUT, "Dev::Null" or die $!;
6
7print "not ok 1\n"; # this should not print.
8pass 'STDOUT can be mucked with';
9
10
11package Dev::Null;
12
13sub TIEHANDLE { bless {} }
14sub PRINT { 1 }
4bd4e70a 15#!perl -w
16
17use Test::More tests => 1;
18
19tie *STDOUT, "Dev::Null" or die $!;
20
21print "not ok 1\n"; # this should not print.
22pass 'STDOUT can be mucked with';
23
24
25package Dev::Null;
26
27sub TIEHANDLE { bless {} }
28sub PRINT { 1 }