Try to make Travis happy
This commit is contained in:
parent
016340f77d
commit
db57769c64
|
@ -102,18 +102,4 @@ void TestProjectFile::loadSimpleNoroot()
|
||||||
QCOMPARE(defines[0], QString("FOO"));
|
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)
|
QTEST_MAIN(TestProjectFile)
|
||||||
|
|
|
@ -27,5 +27,4 @@ private slots:
|
||||||
void loadSimple();
|
void loadSimple();
|
||||||
void loadSimpleWithIgnore();
|
void loadSimpleWithIgnore();
|
||||||
void loadSimpleNoroot();
|
void loadSimpleNoroot();
|
||||||
void checkSuppressions();
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue