summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmake
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-08-25 23:19:52 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2010-08-25 23:22:27 +0200
commit49e80b397feb8da5ee64f8dbc905c47723afbf5d (patch)
tree9bf2207bc3828a5b1847d9c407712b6f43ec83f4 /tests/auto/qmake
parentb75cf3cc92f66a849d19b1ea656124f15245c3ce (diff)
Use the full path to qmake in the qmake unit test
Reviewed-By: ossi
Diffstat (limited to 'tests/auto/qmake')
-rw-r--r--tests/auto/qmake/tst_qmake.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qmake/tst_qmake.cpp b/tests/auto/qmake/tst_qmake.cpp
index 277e9f8b46..1d3e128cb0 100644
--- a/tests/auto/qmake/tst_qmake.cpp
+++ b/tests/auto/qmake/tst_qmake.cpp
@@ -99,7 +99,8 @@ private:
tst_qmake::tst_qmake()
{
- QString cmd = QString("qmake \"QT_VERSION=%1\"").arg(QT_VERSION);
+ QString binpath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
+ QString cmd = QString("%2/qmake \"QT_VERSION=%1\"").arg(QT_VERSION).arg(binpath);
#ifdef Q_CC_MSVC
test_compiler.setBaseCommands( "nmake", cmd );
#elif defined(Q_CC_MINGW)