From a4533b450378cc8910f6491286087207dd097875 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 2 Jan 2012 11:43:48 +0100 Subject: fix invalid connection in tst_QProcess::lockupsInStartDetached Change-Id: I06f2d56f5c45c13bbe08707e6baad4f2aece39b8 Reviewed-by: Thiago Macieira Reviewed-by: Jason McDonald --- tests/auto/corelib/io/qprocess/tst_qprocess.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/auto/corelib') 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"); } -- cgit v1.2.3