Display ignored tests

This commit is contained in:
Francis ANDRE
2018-06-04 23:22:05 +02:00
parent d7a98bf403
commit b28348c03d

View File

@@ -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