From 995fcd682c975a33fa4f5c02ba69689e54a3d8b2 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Thu, 16 Jan 2014 18:15:24 +0100 Subject: [PATCH] fixed CPPUNIT_IGNORE parsing --- CppUnit/src/TextTestResult.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CppUnit/src/TextTestResult.cpp b/CppUnit/src/TextTestResult.cpp index 8121def5a..509ad2145 100644 --- a/CppUnit/src/TextTestResult.cpp +++ b/CppUnit/src/TextTestResult.cpp @@ -12,6 +12,7 @@ #include #include #include +#include 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); } }