develooper Front page | perl.qa | Postings from October 2004

Re: Test::Harness with modules that output to STDOUT

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
October 16, 2004 12:59
Subject:
Re: Test::Harness with modules that output to STDOUT
Message ID:
313c1d13041016125924e4613a@mail.gmail.com
On Tue, 24 Aug 2004 11:04:50 -0400, Peter Kay <peterkayatwork@yahoo.com> wrote:
> Ok, what's the elegent way to ignore/dispose of the output the tested
> module produces?

Tie STDOUT.  Look at Test::More's own test suite for examples.
http://search.cpan.org/src/MSCHWERN/Test-Simple-0.49/t/lib/TieOut.pm

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About