mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
Display ignored tests
This commit is contained in:
@@ -39,13 +39,16 @@ void TextTestResult::setup()
|
||||
std::string ignored = env;
|
||||
std::string::const_iterator it = ignored.begin();
|
||||
std::string::const_iterator end = ignored.end();
|
||||
while (it != end)
|
||||
for (;;)
|
||||
{
|
||||
while (it != end && (std::isspace(*it) || *it == '"' || *it == '\'')) ++it;
|
||||
while (it != end && (std::isspace(*it) || *it == '"' || *it == ',' || *it == '\'')) ++it;
|
||||
if (it == end)
|
||||
break;
|
||||
|
||||
std::string test;
|
||||
while (it != end && *it != ',' && *it != '"' && *it != '\'') test += *it++;
|
||||
if (it != end && (*it == ',' || *it == '"' || *it == '\'')) ++it;
|
||||
if (!test.empty()) _ignored.insert(test);
|
||||
_ostr << "ignored: " << test << std::endl;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user