Skip to content

Commit 3f4a0b6

Browse files
committed
add test
1 parent ce026a9 commit 3f4a0b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/testcppcheck.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,22 @@ class TestCppcheck : public TestFixture {
8282
// Check for error ids from this class.
8383
bool foundPurgedConfiguration = false;
8484
bool foundTooManyConfigs = false;
85+
bool foundMissingInclude = false; // #11984
86+
bool foundMissingIncludeSystem = false; // #11984
8587
for (const std::string & it : errorLogger.ids) {
8688
if (it == "purgedConfiguration")
8789
foundPurgedConfiguration = true;
8890
else if (it == "toomanyconfigs")
8991
foundTooManyConfigs = true;
92+
else if (it == "missingInclude")
93+
foundMissingInclude = true;
94+
else if (it == "missingIncludeSystem")
95+
foundMissingIncludeSystem = true;
9096
}
9197
ASSERT(foundPurgedConfiguration);
9298
ASSERT(foundTooManyConfigs);
99+
ASSERT(foundMissingInclude);
100+
ASSERT(foundMissingIncludeSystem);
93101
}
94102

95103
void checkWithFile() const

0 commit comments

Comments
 (0)