diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-08-06 11:44:12 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-08-06 11:44:12 (GMT) |
commit | 4a1785247d7e845b3d1c2023e43558f6a372581b (patch) | |
tree | cb9e2d7fdd2ed4fd0ef9da40a62a51761c2ef8df | |
parent | 2397a17862ff61082639bc7a80daa8a8ac7e9949 (diff) | |
download | Qt-4a1785247d7e845b3d1c2023e43558f6a372581b.zip Qt-4a1785247d7e845b3d1c2023e43558f6a372581b.tar.gz Qt-4a1785247d7e845b3d1c2023e43558f6a372581b.tar.bz2 |
Tests: Make uic/uic3 use QLibraryInfo paths as do the linguist tests.
-rw-r--r-- | tests/auto/uic/tst_uic.cpp | 3 | ||||
-rw-r--r-- | tests/auto/uic3/tst_uic3.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/uic/tst_uic.cpp b/tests/auto/uic/tst_uic.cpp index b605aa9..827b3aa 100644 --- a/tests/auto/uic/tst_uic.cpp +++ b/tests/auto/uic/tst_uic.cpp @@ -45,6 +45,7 @@ #include <QtTest/QtTest> #include <QtCore/QProcess> #include <QtCore/QByteArray> +#include <QtCore/QLibraryInfo> #ifndef Q_OS_WINCE @@ -77,7 +78,7 @@ private: tst_uic::tst_uic() : uicExists(true) - , command(QLatin1String("uic")) + , command(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/uic")) { } diff --git a/tests/auto/uic3/tst_uic3.cpp b/tests/auto/uic3/tst_uic3.cpp index cc5a66f..5c6c6bf 100644 --- a/tests/auto/uic3/tst_uic3.cpp +++ b/tests/auto/uic3/tst_uic3.cpp @@ -45,6 +45,7 @@ #include <QtCore/QProcess> #include <QtCore/QByteArray> #include <QtCore/QString> +#include <QtCore/QLibraryInfo> #ifndef Q_OS_WINCE @@ -72,7 +73,7 @@ private: tst_uic3::tst_uic3() : uic3Exists(true) - , command(QLatin1String("uic3")) + , command(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/uic3")) { } |