| 142 | } |
| 143 | |
| 144 | void TestProjectFile::getSearchPaths() const |
| 145 | { |
| 146 | #ifdef FILESDIR |
| 147 | const QString f(FILESDIR "\n" // example: "/usr/local/share/cppcheck\n" |
| 148 | FILESDIR "/dir\n"); // example: "/usr/local/share/cppcheck/dir\n" |
| 149 | #else |
| 150 | const QString f; |
| 151 | #endif |
| 152 | |
| 153 | QCOMPARE(ProjectFile::getSearchPaths("projectPath", "appPath", "datadir", "dir").join("\n"), |
| 154 | "appPath\n" |
| 155 | "appPath/dir\n" |
| 156 | "projectPath\n" + |
| 157 | f + |
| 158 | "datadir\n" |
| 159 | "datadir/dir"); |
| 160 | } |
| 161 | |
| 162 | void TestProjectFile::getInlineSuppressionDefaultValue() const |
| 163 | { |