Skip to content

Commit b4b4d51

Browse files
committed
test
1 parent ef06efb commit b4b4d51

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

gui/test/projectfile/testprojectfile.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,18 @@ void TestProjectFile::getAddonFilePath() const
138138

139139
void TestProjectFile::getSearchPaths() const
140140
{
141+
#ifdef FILESDIR
142+
const QString f(FILESDIR "\n" // example: "/usr/local/share/cppcheck\n"
143+
FILESDIR "/dir\n"); // example: "/usr/local/share/cppcheck/dir\n"
144+
#else
145+
const QString f;
146+
#endif
147+
141148
QCOMPARE(ProjectFile::getSearchPaths("projectPath", "appPath", "datadir", "dir").join("\n"),
142149
"appPath\n"
143150
"appPath/dir\n"
144-
"projectPath\n"
145-
#ifdef FILESDIR
146-
FILESDIR "\n" // example: "/usr/local/share/cppcheck\n"
147-
FILESDIR "/dir\n" // example: "/usr/local/share/cppcheck/dir\n"
148-
#endif
151+
"projectPath\n" +
152+
f +
149153
"datadir\n"
150154
"datadir/dir");
151155
}

0 commit comments

Comments
 (0)