summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-12-15 17:48:05 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-12-15 17:51:35 (GMT)
commit038927f1208ff346cbe8d2cfefbd39808ffb5711 (patch)
tree8887d4eaafea1d48ff16210d8caded77e9013bee
parente1955231478df8990cf8b1f80438abf957c5d6f2 (diff)
downloadQt-038927f1208ff346cbe8d2cfefbd39808ffb5711.zip
Qt-038927f1208ff346cbe8d2cfefbd39808ffb5711.tar.gz
Qt-038927f1208ff346cbe8d2cfefbd39808ffb5711.tar.bz2
Autotest: Add some comments about this obscure test.
More information, see commit d9bf386d917c64ad5d8f11f9daadf82b2be9d531 (old qt-history) and old TT task 90183. Reviewed-By: Trust Me
-rw-r--r--tests/auto/qprocess/tst_qprocess.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qprocess/tst_qprocess.cpp b/tests/auto/qprocess/tst_qprocess.cpp
index fd310f4..13f1d26 100644
--- a/tests/auto/qprocess/tst_qprocess.cpp
+++ b/tests/auto/qprocess/tst_qprocess.cpp
@@ -1999,11 +1999,15 @@ void tst_QProcess::spaceInName()
void tst_QProcess::lockupsInStartDetached()
{
#if !defined(Q_OS_SYMBIAN)
- // What exactly is this call supposed to achieve anyway?
+ // Check that QProcess doesn't cause a lock up at this program's
+ // exit if a thread was started and we tried to run a program that
+ // 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);
-#endif
QProcess::execute("yjhbrty");
QProcess::startDetached("yjhbrty");
+#endif
}
//-----------------------------------------------------------------------------