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:
Joerg Bornemann 2012-01-02 11:43:48 +01:00 committed by Qt by Nokia
parent e570cad9d7
commit a4533b4503

View File

@ -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");
}