diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-09-14 14:15:54 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-09-14 14:17:11 +0200 |
commit | b3e13c3910fb51c8228e8b2e354047ed24b21db4 (patch) | |
tree | 37e7883513f20e04731de4796e7aaca963ebd87a | |
parent | 8cf8ac3cdee82191a38fbae94ff0549c5e589fa9 (diff) |
Adjust test to the new location
The test got moved one level down in the directory tree,
but tries to find the top level directory. Fix paths
to make it work again.
Change-Id: I7b80a1c6891e7f1aa013a89203f651aa3ea932e8
-rw-r--r-- | tests/auto/other/maketestselftest/tst_maketestselftest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/other/maketestselftest/tst_maketestselftest.cpp b/tests/auto/other/maketestselftest/tst_maketestselftest.cpp index 59dd43cb40..973ab4842f 100644 --- a/tests/auto/other/maketestselftest/tst_maketestselftest.cpp +++ b/tests/auto/other/maketestselftest/tst_maketestselftest.cpp @@ -144,7 +144,7 @@ void tst_MakeTestSelfTest::naming_convention() QFETCH(QString, subdir); QFETCH(QString, target); - QDir dir(SRCDIR "/../" + subdir); + QDir dir(SRCDIR "/../../" + subdir); QStringList cppfiles = dir.entryList(QStringList() << "*.h" << "*.cpp"); if (cppfiles.isEmpty()) { @@ -191,10 +191,10 @@ void tst_MakeTestSelfTest::naming_convention_data() QTest::addColumn<QString>("subdir"); QTest::addColumn<QString>("target"); - foreach (const QString& subdir, find_subdirs(SRCDIR "/../auto.pro", Recursive)) { - if (QFileInfo(SRCDIR "/../" + subdir).isDir()) { + foreach (const QString& subdir, find_subdirs(SRCDIR "/../../auto.pro", Recursive)) { + if (QFileInfo(SRCDIR "/../../" + subdir).isDir()) { QString target; - if (looks_like_testcase(SRCDIR "/../" + subdir + "/" + QFileInfo(subdir).baseName() + ".pro", &target)) { + if (looks_like_testcase(SRCDIR "/../../" + subdir + "/" + QFileInfo(subdir).baseName() + ".pro", &target)) { QTest::newRow(qPrintable(subdir)) << subdir << target.toLower(); } } @@ -428,7 +428,7 @@ void tst_MakeTestSelfTest::make_check() Run `make check' over the whole tests tree with a custom TESTRUNNER, to verify that the TESTRUNNER mechanism works right. */ - QString testsDir(SRCDIR "/.."); + QString testsDir(SRCDIR "/../.."); QString checktest(SRCDIR "/checktest/checktest"); #if defined(Q_OS_WIN32) || defined(Q_OS_MAC) |