Fix finding a helper executable in tst_QLocalSocket

Use QFINDTESTDATA to find the socketprocess helper executable.
Now tst_QLocalSocket::processConnection() passes when started from Qt
Creator without adjusting the working directory.

Change-Id: I97ca3334a381b3cd646647487529bcd90b969528
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Joerg Bornemann 2016-04-08 17:21:07 +02:00
parent 0328eec6a4
commit 7b4c02d527

View File

@ -847,7 +847,8 @@ void tst_QLocalSocket::processConnection()
const QString exeSuffix;
#endif
QString socketProcess = QStringLiteral("socketprocess/socketprocess") + exeSuffix;
const QString socketProcess
= QFINDTESTDATA(QStringLiteral("socketprocess/socketprocess") + exeSuffix);
QVERIFY(QFile::exists(socketProcess));
QFETCH(int, processes);