From 61aa86f20198dc4c73d71913daab1750da6580b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 16 Jan 2011 17:07:12 +0100 Subject: [PATCH] testcppcheck: check that Cppcheck::getErrorMessages output is not empty --- test/testcppcheck.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testcppcheck.cpp b/test/testcppcheck.cpp index 838b54e6f..582a6376d 100644 --- a/test/testcppcheck.cpp +++ b/test/testcppcheck.cpp @@ -74,6 +74,7 @@ private: ErrorLogger2 errorLogger; CppCheck cppCheck(errorLogger); cppCheck.getErrorMessages(); + ASSERT(!errorLogger.id.empty()); // TODO: check if there are duplicate error ids in errorLogger.id }