mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
Fix parsing of CPPUNIT_IGNORE for Windows by allowing space in the test name.
Now, in the list, each test name should be separated by a comma instead of a space. Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
@@ -43,9 +43,10 @@ void TextTestResult::setup()
|
||||
std::string::const_iterator end = ignored.end();
|
||||
while (it != end)
|
||||
{
|
||||
while (it != end && std::isspace(*it)) ++it;
|
||||
while (it != end && (std::isspace(*it) || *it == '"')) ++it;
|
||||
std::string test;
|
||||
while (it != end && !std::isspace(*it)) test += *it++;
|
||||
while (it != end && *it != ',' && *it != '"') test += *it++;
|
||||
if (it != end && (*it == ',' || *it == '"')) ++it;
|
||||
if (!test.empty()) _ignored.insert(test);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user