develooper Front page | perl.moose | Postings from January 2012

Re: Incompatibility between Test::Command and System::Command?

Thread Previous | Thread Next
From:
Grzegorz Dzięgielewski
Date:
January 4, 2012 23:21
Subject:
Re: Incompatibility between Test::Command and System::Command?
Message ID:
4F054F7F.9060006@jabbas.pl
W dniu 04.01.2012 22:17, Buddy Burden pisze:
> Grzegorz,
>
>> I've noticed the same thing, but with STDOUT and with Test::Output
>> and/or FastCGI.
>>
>> There is a hack in System::Command for Catalyst which causes this.
>> See https://rt.cpan.org/Public/Bug/Display.html?id=73614
> Ah, good call on the RT ticket.  I've added a comment there as well.
> I was hoping Philippe might weigh in, since I know he frequents the
> list.  But, either way, it looks like it's not going to be fixed any
> time soon.
I'm trying to figure it out in some spare time, so sooner or later
someone will fix it :-P

In mean time i've made a hack which is "fixing" this hack:

open(my $NULL, '>', '/dev/null');
my $ORIGINAL_STDOUT = select($NULL);

<... do what you need using System::Command and/or Git::Repository ...>

select($ORIGINAL_STDOUT);
close($NULL);

-- 
Grzegorz Dzięgielewski
http://jabbas.eu


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