aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testmodifydocumentation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testmodifydocumentation.cpp')
-rw-r--r--tests/testmodifydocumentation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testmodifydocumentation.cpp b/tests/testmodifydocumentation.cpp
index 33a47865..46151ee8 100644
--- a/tests/testmodifydocumentation.cpp
+++ b/tests/testmodifydocumentation.cpp
@@ -50,7 +50,7 @@ void TestModifyDocumentation::testModifyDocumentation()
QCOMPARE(docMods[0].code().trimmed(), QString("<para>Some changed contents here</para>"));
QCOMPARE(docMods[0].signature(), QString(""));
QtDocParser docParser;
- docParser.setDocumentationDataDirectory(QFileInfo(__FILE__).absoluteDir().absolutePath());
+ docParser.setDocumentationDataDirectory(QCoreApplication::applicationDirPath());
docParser.fillDocumentation(classA);
QVERIFY(!classA->documentation().value().trimmed().isEmpty());