fix invalid connection in tst_QProcess::lockupsInStartDetached
authorJoerg Bornemann <joerg.bornemann@nokia.com>
Mon, 2 Jan 2012 10:43:48 +0000 (11:43 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Jan 2012 05:01:33 +0000 (06:01 +0100)
Change-Id: I06f2d56f5c45c13bbe08707e6baad4f2aece39b8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
tests/auto/corelib/io/qprocess/tst_qprocess.cpp

index d8b0b38..0482b2d 100644 (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");
 }