Add single quote '\'' as delimiter.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE 2015-12-20 09:13:44 +01:00
parent 33a4d781b9
commit 680b29198c

View File

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