dslinux/user/perl/t/lib/Test/Simple Catch.pm

cayenne dslinux_cayenne at user.in-berlin.de
Mon Dec 4 18:01:53 CET 2006


Update of /cvsroot/dslinux/dslinux/user/perl/t/lib/Test/Simple
In directory antilope:/tmp/cvs-serv17422/t/lib/Test/Simple

Added Files:
	Catch.pm 
Log Message:
Adding fresh perl source to HEAD to branch from

--- NEW FILE: Catch.pm ---
# For testing Test::Simple;
package Test::Simple::Catch;

use Symbol;
use TieOut;
my($out_fh, $err_fh) = (gensym, gensym);
my $out = tie *$out_fh, 'TieOut';
my $err = tie *$err_fh, 'TieOut';

use Test::Builder;
my $t = Test::Builder->new;
$t->output($out_fh);
$t->failure_output($err_fh);
$t->todo_output($err_fh);

sub caught { return($out, $err) }

1;




More information about the dslinux-commit mailing list