summaryrefslogtreecommitdiffstats
path: root/tests/auto/qprocess
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-02-04 14:32:35 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-02-06 19:23:17 (GMT)
commitfa9b8b6420b0805000435a0b312f47f990dab9a5 (patch)
treedddcbea27e2c78b87fbac745a49278883b813913 /tests/auto/qprocess
parentc696b4fe5a0acd85bc739fb148b8f76965f12d20 (diff)
downloadQt-fa9b8b6420b0805000435a0b312f47f990dab9a5.zip
Qt-fa9b8b6420b0805000435a0b312f47f990dab9a5.tar.gz
Qt-fa9b8b6420b0805000435a0b312f47f990dab9a5.tar.bz2
Autotest: simple improvements
Diffstat (limited to 'tests/auto/qprocess')
-rw-r--r--tests/auto/qprocess/tst_qprocess.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qprocess/tst_qprocess.cpp b/tests/auto/qprocess/tst_qprocess.cpp
index 4ee8957..b0f7a9f 100644
--- a/tests/auto/qprocess/tst_qprocess.cpp
+++ b/tests/auto/qprocess/tst_qprocess.cpp
@@ -249,6 +249,8 @@ void tst_QProcess::constructing()
char c;
QCOMPARE(process.read(&c, 1), qlonglong(-1));
QCOMPARE(process.write(&c, 1), qlonglong(-1));
+
+ QProcess proc2;
}
void tst_QProcess::simpleStart()
@@ -265,7 +267,7 @@ void tst_QProcess::simpleStart()
process->start("testProcessNormal/testProcessNormal");
if (process->state() != QProcess::Starting)
QCOMPARE(process->state(), QProcess::Running);
- QVERIFY(process->waitForStarted(5000));
+ QVERIFY2(process->waitForStarted(5000), qPrintable(process->errorString()));
QCOMPARE(process->state(), QProcess::Running);
#if defined(Q_OS_WINCE)
// Note: This actually seems incorrect, it will only exit the while loop when finishing fails
@@ -277,7 +279,7 @@ void tst_QProcess::simpleStart()
while (process->waitForReadyRead(5000))
{ }
#endif
- QCOMPARE(process->state(), QProcess::NotRunning);
+ QCOMPARE(int(process->state()), int(QProcess::NotRunning));
delete process;
process = 0;