diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-08-06 14:37:07 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-08-06 15:16:18 (GMT) |
commit | a488f0784b265d350441f5e38dc9021e9c2a50fc (patch) | |
tree | 12b483cd7225e2541838811230626f726cfdc61d /tests/auto | |
parent | 8bd1ac790c9b336d64e407a94b1ae6a4e195fc30 (diff) | |
download | Qt-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')
-rw-r--r-- | tests/auto/qprocess/tst_qprocess.cpp | 2 |
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)); |