Try to make Travis happy

This commit is contained in:
Daniel Marjamäki 2019-08-11 17:57:59 +02:00
parent 016340f77d
commit db57769c64
2 changed files with 0 additions and 15 deletions

View File

@ -102,18 +102,4 @@ void TestProjectFile::loadSimpleNoroot()
QCOMPARE(defines[0], QString("FOO"));
}
void TestProjectFile::checkSuppressions()
{
ProjectFile projectFile("/foo/bar/test.cppcheck");
QList<Suppressions::Suppression> suppressions;
suppressions.append(Suppressions::Suppression("id", "file.c"));
suppressions.append(Suppressions::Suppression("id", "/abc/file.c"));
projectFile.setSuppressions(suppressions);
const QList<Suppressions::Suppression> s = projectFile.getCheckSuppressions();
QCOMPARE(s.size(), 2);
QCOMPARE(s[0].fileName, std::string("/foo/bar/file.c"));
QCOMPARE(s[1].fileName, std::string("/abc/file.c"));
}
QTEST_MAIN(TestProjectFile)

View File

@ -27,5 +27,4 @@ private slots:
void loadSimple();
void loadSimpleWithIgnore();
void loadSimpleNoroot();
void checkSuppressions();
};