mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-02 15:41:36 +02:00
Replace \n by std:endl. Remove log of CPPUNIT_IGNORE tests set
This commit is contained in:
parent
c2a9162223
commit
b5ca9353be
@ -48,7 +48,6 @@ void TextTestResult::setup()
|
|||||||
std::string test;
|
std::string test;
|
||||||
while (it != end && *it != ',' && *it != '"' && *it != '\'') test += *it++;
|
while (it != end && *it != ',' && *it != '"' && *it != '\'') test += *it++;
|
||||||
if (!test.empty()) _ignored.insert(test);
|
if (!test.empty()) _ignored.insert(test);
|
||||||
_ostr << "ignored: " << test << std::endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -94,7 +93,7 @@ void TextTestResult::printErrors(std::ostream& stream)
|
|||||||
{
|
{
|
||||||
if (testErrors() != 0)
|
if (testErrors() != 0)
|
||||||
{
|
{
|
||||||
stream << "\n";
|
stream << std::endl;
|
||||||
|
|
||||||
if (testErrors() == 1)
|
if (testErrors() == 1)
|
||||||
stream << "There was " << testErrors() << " error: " << std::endl;
|
stream << "There was " << testErrors() << " error: " << std::endl;
|
||||||
@ -109,8 +108,8 @@ void TextTestResult::printErrors(std::ostream& stream)
|
|||||||
|
|
||||||
stream << std::setw(2) << i
|
stream << std::setw(2) << i
|
||||||
<< ": "
|
<< ": "
|
||||||
<< failure->failedTest()->toString() << "\n"
|
<< failure->failedTest()->toString() << std::endl
|
||||||
<< " \"" << (e ? e->what() : "") << "\"\n"
|
<< " \"" << (e ? e->what() : "") << "\"" << std::endl
|
||||||
<< " in \""
|
<< " in \""
|
||||||
<< (e ? e->fileName() : std::string())
|
<< (e ? e->fileName() : std::string())
|
||||||
<< "\", line ";
|
<< "\", line ";
|
||||||
@ -131,7 +130,7 @@ void TextTestResult::printErrors(std::ostream& stream)
|
|||||||
stream << " data line " << e->data1LineNumber();
|
stream << " data line " << e->data1LineNumber();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stream << "\n";
|
stream << std::endl;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -157,8 +156,8 @@ void TextTestResult::printFailures(std::ostream& stream)
|
|||||||
|
|
||||||
stream << std::setw(2) << i
|
stream << std::setw(2) << i
|
||||||
<< ": "
|
<< ": "
|
||||||
<< failure->failedTest()->toString() << "\n"
|
<< failure->failedTest()->toString() << std::endl
|
||||||
<< " \"" << (e ? e->what() : "") << "\"\n"
|
<< " \"" << (e ? e->what() : "") << "\"" << std::endl
|
||||||
<< " in \""
|
<< " in \""
|
||||||
<< (e ? e->fileName() : std::string())
|
<< (e ? e->fileName() : std::string())
|
||||||
<< "\", line ";
|
<< "\", line ";
|
||||||
@ -180,7 +179,7 @@ void TextTestResult::printFailures(std::ostream& stream)
|
|||||||
stream << " data line " << e->data1LineNumber();
|
stream << " data line " << e->data1LineNumber();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stream << "\n";
|
stream << std::endl;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user