don't rely on the right qdbuscpp2xml/qdbusxml2cpp being in PATH
Change-Id: I50f639632dcb37c9752b41241a21c9fcd9dde0dd Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
91a48160d6
commit
b91558419b
@ -134,7 +134,8 @@ void tst_qdbuscpp2xml::qdbuscpp2xml()
|
||||
}
|
||||
|
||||
// Launch
|
||||
const QString command = QLatin1String("qdbuscpp2xml");
|
||||
const QString binpath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
|
||||
const QString command = binpath + QLatin1String("/qdbuscpp2xml");
|
||||
QProcess process;
|
||||
process.start(command, QStringList() << options << (QFINDTESTDATA(inputfile + QStringLiteral(".h"))));
|
||||
if (!process.waitForFinished()) {
|
||||
|
@ -223,8 +223,10 @@ void tst_qdbusxml2cpp::process()
|
||||
QFETCH_GLOBAL(QString, commandLineArg);
|
||||
|
||||
// Run the tool
|
||||
const QString binpath = QLibraryInfo::location(QLibraryInfo::BinariesPath);
|
||||
const QString command = binpath + QLatin1String("/qdbusxml2cpp");
|
||||
QProcess process;
|
||||
process.start("qdbusxml2cpp", QStringList() << commandLineArg << "-" << "-N");
|
||||
process.start(command, QStringList() << commandLineArg << "-" << "-N");
|
||||
QVERIFY2(process.waitForStarted(), qPrintable(process.errorString()));
|
||||
|
||||
// feed it our XML data
|
||||
|
Loading…
x
Reference in New Issue
Block a user