aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2011-03-25 13:00:09 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:15 -0300
commit7297460400873c28a183113ad66d4eec11452306 (patch)
tree48634d840308ff9abbe71dbde569deef79db1515
parent55b5e13e496ba035166af43ba133083d1f95bd6b (diff)
Use QDir::currentPath() to avoid problems with armel-Meego target.
Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
-rw-r--r--tests/testcodeinjection.cpp2
-rw-r--r--tests/testmodifydocumentation.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testcodeinjection.cpp b/tests/testcodeinjection.cpp
index abc33856b..ab1aa8033 100644
--- a/tests/testcodeinjection.cpp
+++ b/tests/testcodeinjection.cpp
@@ -33,7 +33,7 @@ void TestCodeInjections::testReadFileUtf8()
int argc = 0;
char *argv[] = {NULL};
QCoreApplication app(argc, argv);
- QString filePath = QCoreApplication::applicationDirPath();
+ QString filePath = QDir::currentPath();
QString xmlCode = "\
<typesystem package=\"Foo\"> \
<value-type name='A'> \
diff --git a/tests/testmodifydocumentation.cpp b/tests/testmodifydocumentation.cpp
index 49de2797c..7cab9daf2 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(QCoreApplication::applicationDirPath());
+ docParser.setDocumentationDataDirectory(QDir::currentPath());
docParser.fillDocumentation(classA);
QVERIFY(!classA->documentation().value().trimmed().isEmpty());