summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocess/testDetached
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-09-25 13:52:31 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-09-30 04:29:56 +0000
commita2995c180b6b21031dc10d39bc99dbdb3d6212d2 (patch)
treebe5840aa8da1166349ca5f1ef2eb9354e5608153 /tests/auto/corelib/io/qprocess/testDetached
parent78f9b16d60357b544353cb7d525ffdf56ab72680 (diff)
tst_qprocess: Improve handling of helpers.
Verify exit status and code where applicable. Avoid unnecessary data conversions in fileWriterProcess. Improve error handling in helper processes. Task-number: QTBUG-47370 Task-number: QTBUG-48455 Change-Id: Ib5c4f546027131db02caaa05154a5880edac5cf7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qprocess/testDetached')
-rw-r--r--tests/auto/corelib/io/qprocess/testDetached/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qprocess/testDetached/main.cpp b/tests/auto/corelib/io/qprocess/testDetached/main.cpp
index bbcc7033c7..760306ea17 100644
--- a/tests/auto/corelib/io/qprocess/testDetached/main.cpp
+++ b/tests/auto/corelib/io/qprocess/testDetached/main.cpp
@@ -57,7 +57,8 @@ int main(int argc, char **argv)
QFile f(args.at(1));
if (!f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text)) {
- fprintf(stderr, "Cannot open %s for writing", qPrintable(f.fileName()));
+ fprintf(stderr, "Cannot open %s for writing: %s\n",
+ qPrintable(f.fileName()), qPrintable(f.errorString()));
return 1;
}