Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Michael G Schwern
On Tue, Mar 08, 2005 at 07:59:04PM +, Fergal Daly wrote: > > Darcs runs on non-Unix. 2>&1 is not cross-platform. > > I ported something form linux to win not so long ago and it worked. Googling > for > > "2>&1" windows > > turns a few batch files that use it and also > > http://mailman.lyr

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Fergal Daly
On Tue, Mar 08, 2005 at 10:14:01AM -0800, Michael G Schwern wrote: > On Tue, Mar 08, 2005 at 05:48:28PM +, Fergal Daly wrote: > > In the case of though darcs though, is Perl just testing the output of > > commands that have been systemed? If so they could just add 2>&1 to the > > command line a

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Mark Stosberg
On Tue, Mar 08, 2005 at 05:48:28PM +, Fergal Daly wrote: > > In the case of though darcs though, is Perl just testing the output of > commands that have been systemed? If so they could just add 2>&1 to the > command line and then ignore stderr, I thought that wouldn't be portable. Mark

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Mark Stosberg
On 2005-03-08, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Tue, Mar 08, 2005 at 05:27:34PM +, Fergal Daly wrote: >> On Tue, Mar 08, 2005 at 04:56:08PM +, Mark Stosberg wrote: >> > Hmm...maybe Test::Output just needs a new feature: >> > >> > # Because sometimes you don't care who sai

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Michael G Schwern
On Tue, Mar 08, 2005 at 05:48:28PM +, Fergal Daly wrote: > In the case of though darcs though, is Perl just testing the output of > commands that have been systemed? If so they could just add 2>&1 to the > command line and then ignore stderr, Darcs runs on non-Unix. 2>&1 is not cross-platform

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Fergal Daly
On Tue, Mar 08, 2005 at 09:34:17AM -0800, Michael G Schwern wrote: > There's no equivalent to this? > > my $output = `some_program 2>&1`; > > Where STDOUT and STDERR are combined into one stream, keeping the order > correct. If there is it's not in the docs. They show things like output_l

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Michael G Schwern
On Tue, Mar 08, 2005 at 05:27:34PM +, Fergal Daly wrote: > On Tue, Mar 08, 2005 at 04:56:08PM +, Mark Stosberg wrote: > > Hmm...maybe Test::Output just needs a new feature: > > > > # Because sometimes you don't care who said it. > > stdout_or_stderr_is() > > Test::Output allows > > my

Re: testing STDOUT and STDERR at the same time with Test::Output

2005-03-08 Thread Fergal Daly
On Tue, Mar 08, 2005 at 04:56:08PM +, Mark Stosberg wrote: > Hmm...maybe Test::Output just needs a new feature: > > # Because sometimes you don't care who said it. > stdout_or_stderr_is() Test::Output allows my ($stdout, $stderr) = output_from {...}; then you can do your own tests, other