mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 07:27:23 +01:00
fixed CPPUNIT_IGNORE parsing
This commit is contained in:
parent
16885da987
commit
995fcd682c
@ -12,6 +12,7 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <cstdlib>
|
||||
#include <cctype>
|
||||
|
||||
|
||||
namespace CppUnit {
|
||||
@ -41,9 +42,9 @@ void TextTestResult::setup()
|
||||
std::string::const_iterator end = ignored.end();
|
||||
while (it != end)
|
||||
{
|
||||
while (it != end && *it == ' ') ++it;
|
||||
while (it != end && std::isspace(*it)) ++it;
|
||||
std::string test;
|
||||
while (it != end && *it != ' ') test += *it++;
|
||||
while (it != end && !std::isspace(*it)) test += *it++;
|
||||
if (!test.empty()) _ignored.insert(test);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user