Backport from the develop branch

This commit is contained in:
Francis ANDRE
2018-05-27 16:26:50 +02:00
parent 53c225fea2
commit 24ebf9858d

View File

@@ -41,9 +41,10 @@ void TextTestResult::setup()
std::string::const_iterator end = ignored.end(); std::string::const_iterator end = ignored.end();
while (it != end) while (it != end)
{ {
while (it != end && std::isspace(*it)) ++it; while (it != end && (std::isspace(*it) || *it == '"' || *it == '\'')) ++it;
std::string test; std::string test;
while (it != end && !std::isspace(*it)) test += *it++; while (it != end && *it != ',' && *it != '"' && *it != '\'') test += *it++;
if (it != end && (*it == ',' || *it == '"' || *it == '\'')) ++it;
if (!test.empty()) _ignored.insert(test); if (!test.empty()) _ignored.insert(test);
} }
} }