summaryrefslogtreecommitdiff
path: root/cppunit/TextTestResult.cpp
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-13 23:38:14 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-13 23:38:14 +0000
commitb7e66b5d745f82649dfaa1955310749232b9cb38 (patch)
treecd6e70a62950489342142fb6bcdc9849ac8df2d5 /cppunit/TextTestResult.cpp
parent605e750186314420809c829eb5fcb9d4d21f3cf0 (diff)
downloadcppunit-b7e66b5d745f82649dfaa1955310749232b9cb38.tar.gz
Fix bug #232636: TextTestResult::printHeader(ostream& stream) outputs to cout.
Diffstat (limited to 'cppunit/TextTestResult.cpp')
-rw-r--r--cppunit/TextTestResult.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppunit/TextTestResult.cpp b/cppunit/TextTestResult.cpp
index 482e003..be1602d 100644
--- a/cppunit/TextTestResult.cpp
+++ b/cppunit/TextTestResult.cpp
@@ -111,9 +111,9 @@ void
TextTestResult::printHeader (ostream& stream)
{
if (wasSuccessful ())
- cout << endl << "OK (" << runTests () << " tests)" << endl;
+ stream << endl << "OK (" << runTests () << " tests)" << endl;
else
- cout << endl
+ stream << endl
<< "!!!FAILURES!!!" << endl
<< "Test Results:" << endl
<< "Run: "