summaryrefslogtreecommitdiffstats
path: root/tests/auto/qprocess
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-06 14:37:07 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-08-06 15:16:18 (GMT)
commita488f0784b265d350441f5e38dc9021e9c2a50fc (patch)
tree12b483cd7225e2541838811230626f726cfdc61d /tests/auto/qprocess
parent8bd1ac790c9b336d64e407a94b1ae6a4e195fc30 (diff)
downloadQt-a488f0784b265d350441f5e38dc9021e9c2a50fc.zip
Qt-a488f0784b265d350441f5e38dc9021e9c2a50fc.tar.gz
Qt-a488f0784b265d350441f5e38dc9021e9c2a50fc.tar.bz2
Fix a bug in QProcess. QProcess was not reentrant on Unix
QProcess is supposed to be reentrant but was not on Unix. The constructor of QProcessManager could be exectued several time when QProcess is created. The construction is now protected by a mutex. Task-number: 254246 Reviewed-by: Olivier Goffart
Diffstat (limited to 'tests/auto/qprocess')
-rw-r--r--tests/auto/qprocess/tst_qprocess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qprocess/tst_qprocess.cpp b/tests/auto/qprocess/tst_qprocess.cpp
index d235dff..1ffa360 100644
--- a/tests/auto/qprocess/tst_qprocess.cpp
+++ b/tests/auto/qprocess/tst_qprocess.cpp
@@ -1224,7 +1224,7 @@ private:
//-----------------------------------------------------------------------------
void tst_QProcess::processInAThread()
{
- for (int i = 0; i < 3; ++i) {
+ for (int i = 0; i < 10; ++i) {
TestThread thread;
thread.start();
QVERIFY(thread.wait(10000));