fix invalid connection in tst_QProcess::lockupsInStartDetached
Change-Id: I06f2d56f5c45c13bbe08707e6baad4f2aece39b8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
parent
e570cad9d7
commit
a4533b4503
@ -1885,7 +1885,8 @@ void tst_QProcess::lockupsInStartDetached()
|
||||
// doesn't exist. Before Qt 4.2, this used to lock up on Unix due
|
||||
// to calling ::exit instead of ::_exit if execve failed.
|
||||
|
||||
QHostInfo::lookupHost(QString("something.invalid"), 0, 0);
|
||||
QObject *dummy = new QObject(this);
|
||||
QHostInfo::lookupHost(QString("something.invalid"), dummy, SLOT(deleteLater()));
|
||||
QProcess::execute("yjhbrty");
|
||||
QProcess::startDetached("yjhbrty");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user