[Insight-developers] Redirecting std::cout in a test
Bill Lorensen
bill.lorensen at gmail.com
Tue Oct 4 09:33:51 EDT 2011
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