summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-11-16 16:06:27 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-11-17 13:01:06 (GMT)
commit0626fc90d79d114402a7cf8727c63d489f13d8cb (patch)
tree930dfd2ef69f721724ee63ac4d12b90062514b5f
parent72ee915bb0465549b7ca8e62d2af146cc44fdeac (diff)
downloadQt-0626fc90d79d114402a7cf8727c63d489f13d8cb.zip
Qt-0626fc90d79d114402a7cf8727c63d489f13d8cb.tar.gz
Qt-0626fc90d79d114402a7cf8727c63d489f13d8cb.tar.bz2
Improve reliability of QFile test readAllStdin
... by catching failure to launch separate process earlier.
-rw-r--r--tests/auto/qfile/tst_qfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index d545909..e4e63ff 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -751,6 +751,7 @@ void tst_QFile::readAllStdin()
QProcess process;
process.start("stdinprocess/stdinprocess all");
+ QVERIFY( process.waitForStarted() );
for (int i = 0; i < 5; ++i) {
QTest::qWait(1000);
process.write(lotsOfData);