diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-09-03 19:56:58 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 11:18:59 +0200 |
commit | 4028f54213c26bb1952415879afc6b5c76bfe038 (patch) | |
tree | dc2ed66ab6eeb9df9487605039fa36f8d9bc7f35 /tests/auto/corelib/io/qprocess/testForwarding | |
parent | 60f8b2f4d019e49402fbfd91fddeb4139dd973ac (diff) |
make error reporting in forwardedChannelsOutput test more useful
Change-Id: I0350ddfd6740d2a2cd3e0f49220cdaa83b854abf
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/corelib/io/qprocess/testForwarding')
-rw-r--r-- | tests/auto/corelib/io/qprocess/testForwarding/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/corelib/io/qprocess/testForwarding/main.cpp b/tests/auto/corelib/io/qprocess/testForwarding/main.cpp index d9571141ae..2987705b1a 100644 --- a/tests/auto/corelib/io/qprocess/testForwarding/main.cpp +++ b/tests/auto/corelib/io/qprocess/testForwarding/main.cpp @@ -47,22 +47,22 @@ int main() QProcess process; process.setProcessChannelMode(QProcess::ForwardedChannels); if (process.processChannelMode() != QProcess::ForwardedChannels) - return -1; + return 1; process.start("testProcessEcho/testProcessEcho"); if (!process.waitForStarted(5000)) - return -1; + return 2; if (process.write("forwarded\n") != 10) - return -1; + return 3; process.closeWriteChannel(); if (!process.waitForFinished(5000)) - return -1; + return 4; if (process.bytesAvailable() != 0) - return -1; + return 5; #endif return 0; } |