Re: Capturing STDOUT from unit test
Re: Capturing STDOUT from unit test
- Subject: Re: Capturing STDOUT from unit test
- From: "Jason Sallis" <email@hidden>
- Date: Tue, 24 Jul 2007 16:31:57 -0600
Perfect! Thanks, Nick.
Ok, that gets me to the point where I can redirect to a file. Ideally, I'd
like to redirect to an in-memory buffer instead to avoid the overhead of a
file. Can anyone provide an example to accomplish that with freopen? Or is
that even possible (or necessary)? Unfortunately, my Unix programming
experience is all but nonexistant. :-(
On 7/24/07, Nick Zitzmann <email@hidden> wrote:
On Jul 24, 2007, at 4:14 PM, Jason Sallis wrote:
> Anybody else out there able to answer the HOW part since I now know
> the IF part?
Use freopen() to redirect stderr to somewhere else.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden