File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,22 @@ class TestCppcheck : public TestFixture {
82
82
// Check for error ids from this class.
83
83
bool foundPurgedConfiguration = false ;
84
84
bool foundTooManyConfigs = false ;
85
+ bool foundMissingInclude = false ; // #11984
86
+ bool foundMissingIncludeSystem = false ; // #11984
85
87
for (const std::string & it : errorLogger.ids ) {
86
88
if (it == " purgedConfiguration" )
87
89
foundPurgedConfiguration = true ;
88
90
else if (it == " toomanyconfigs" )
89
91
foundTooManyConfigs = true ;
92
+ else if (it == " missingInclude" )
93
+ foundMissingInclude = true ;
94
+ else if (it == " missingIncludeSystem" )
95
+ foundMissingIncludeSystem = true ;
90
96
}
91
97
ASSERT (foundPurgedConfiguration);
92
98
ASSERT (foundTooManyConfigs);
99
+ ASSERT (foundMissingInclude);
100
+ ASSERT (foundMissingIncludeSystem);
93
101
}
94
102
95
103
void checkWithFile () const
You can’t perform that action at this time.
0 commit comments