[Insight-developers] Redirecting std::cout in a test
Bill Lorensen
bill.lorensen at gmail.com
Tue Oct 4 11:22:41 EDT 2011
Sorry for the noise. I seem to have it working.
Bill
On Tue, Oct 4, 2011 at 9:33 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Folks,
>
> I would like to redirect std::cout to a file in an ITK test.
>
> I'm reassigning cout's rdbuf to the rdbuf of a file.
>
> If I run the test direclty using the test driver, the redirection is successful.
>
> However, when I run using ctest, the output still appears on the console.
>
> Is there a way to get this to work with ctest?
>
> Bill
>
More information about the Insight-developers
mailing list