diff --git a/gui/test/projectfile/testprojectfile.cpp b/gui/test/projectfile/testprojectfile.cpp index 59cb6171e..d6a6ea12f 100644 --- a/gui/test/projectfile/testprojectfile.cpp +++ b/gui/test/projectfile/testprojectfile.cpp @@ -102,18 +102,4 @@ void TestProjectFile::loadSimpleNoroot() QCOMPARE(defines[0], QString("FOO")); } -void TestProjectFile::checkSuppressions() -{ - ProjectFile projectFile("/foo/bar/test.cppcheck"); - QList suppressions; - suppressions.append(Suppressions::Suppression("id", "file.c")); - suppressions.append(Suppressions::Suppression("id", "/abc/file.c")); - projectFile.setSuppressions(suppressions); - - const QList 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) diff --git a/gui/test/projectfile/testprojectfile.h b/gui/test/projectfile/testprojectfile.h index bfbb417ba..dddc5eb71 100644 --- a/gui/test/projectfile/testprojectfile.h +++ b/gui/test/projectfile/testprojectfile.h @@ -27,5 +27,4 @@ private slots: void loadSimple(); void loadSimpleWithIgnore(); void loadSimpleNoroot(); - void checkSuppressions(); };