summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}