testcppcheck: check that Cppcheck::getErrorMessages output is not empty

This commit is contained in:
Daniel Marjamäki 2011-01-16 17:07:12 +01:00
parent f50971a65a
commit 61aa86f201
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ private:
ErrorLogger2 errorLogger; ErrorLogger2 errorLogger;
CppCheck cppCheck(errorLogger); CppCheck cppCheck(errorLogger);
cppCheck.getErrorMessages(); cppCheck.getErrorMessages();
ASSERT(!errorLogger.id.empty());
// TODO: check if there are duplicate error ids in errorLogger.id // TODO: check if there are duplicate error ids in errorLogger.id
} }