Skip to content

Commit 61aa86f

Browse files
author
Daniel Marjamäki
committed
testcppcheck: check that Cppcheck::getErrorMessages output is not empty
1 parent f50971a commit 61aa86f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/testcppcheck.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class TestCppcheck : public TestFixture
7474
ErrorLogger2 errorLogger;
7575
CppCheck cppCheck(errorLogger);
7676
cppCheck.getErrorMessages();
77+
ASSERT(!errorLogger.id.empty());
7778

7879
// TODO: check if there are duplicate error ids in errorLogger.id
7980
}

0 commit comments

Comments
 (0)