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:
parent
0328eec6a4
commit
7b4c02d527
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user