aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/language
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-01-29 14:33:52 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-01-29 16:02:37 +0100
commitecc425798f7a38f8c2c48b274dcd20965dfa792f (patch)
treed2459f196261ccde61e307b97323a080d3b07e9a /tests/auto/language
parentc9fffc08bdd9ab1dc8003030a182fe7ffc7fb08e (diff)
Fix language test.
The loader needs an absolute project file path now. Change-Id: I3fc19e7c27a7afd81d187dec779d1793d6733442 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/language')
-rw-r--r--tests/auto/language/tst_language.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/tests/auto/language/tst_language.cpp b/tests/auto/language/tst_language.cpp
index 460bca2cc..754a46eba 100644
--- a/tests/auto/language/tst_language.cpp
+++ b/tests/auto/language/tst_language.cpp
@@ -574,7 +574,7 @@ void TestLanguage::wildcards()
QFETCH(QStringList, expected);
// create test directory
- const QString wildcardsTestDir = "_wildcards_test_dir_";
+ const QString wildcardsTestDir = QDir::currentPath() + "/_wildcards_test_dir_";
{
QString errorMessage;
if (QFile::exists(wildcardsTestDir)) {
@@ -614,16 +614,13 @@ void TestLanguage::wildcards()
}
// create files
- {
- foreach (QString filePath, filesToCreate) {
- filePath.prepend(wildcardsTestDir + '/');
- QFileInfo fi(filePath);
- QVERIFY(fi.isRelative());
- if (!QDir(fi.path()).exists())
- QVERIFY(QDir().mkpath(fi.path()));
- QFile file(filePath);
- QVERIFY(file.open(QIODevice::WriteOnly));
- }
+ foreach (QString filePath, filesToCreate) {
+ filePath.prepend(wildcardsTestDir + '/');
+ QFileInfo fi(filePath);
+ if (!QDir(fi.path()).exists())
+ QVERIFY(QDir().mkpath(fi.path()));
+ QFile file(filePath);
+ QVERIFY(file.open(QIODevice::WriteOnly));
}
// read the project