summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2012-01-02 11:43:48 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-04 06:01:33 +0100
commita4533b450378cc8910f6491286087207dd097875 (patch)
treebe233c01b34c9062d11c3fe98edeef0f8fbdabe3 /tests/auto
parente570cad9d7c980ca13f4342c124c06b4bde0e313 (diff)
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>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/corelib/io/qprocess/tst_qprocess.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp
index d8b0b38b0c..0482b2d85e 100644
--- a/tests/auto/corelib/io/qprocess/tst_qprocess.cpp
+++ b/tests/auto/corelib/io/qprocess/tst_qprocess.cpp
@@ -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");
}