summaryrefslogtreecommitdiffstats
path: root/src/testlib/qabstracttestlogger.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-08-26 17:36:55 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-29 06:48:41 +0200
commit15400d94664f93dc22f71802eb72c34c52e371ac (patch)
tree0de2960f594f7cc4c57dbfe2e492f7696fa63fa3 /src/testlib/qabstracttestlogger.cpp
parent043914bd97f2ad7afc474e13ebd97f2eadf60eae (diff)
Send error messages to stderr rather than stdout
The commit changes printf's that output error and warning messages to send their text to the stderr stream. Non-error output, such as that produced by passing the -help option to a test, still goes to stdout. Change-Id: Iea4d62451e3e7e84c654859cb09ea7e717511d13 Reviewed-on: http://codereview.qt.nokia.com/3636 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qabstracttestlogger.cpp')
-rw-r--r--src/testlib/qabstracttestlogger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qabstracttestlogger.cpp b/src/testlib/qabstracttestlogger.cpp
index a5651317e7..d71addb655 100644
--- a/src/testlib/qabstracttestlogger.cpp
+++ b/src/testlib/qabstracttestlogger.cpp
@@ -76,7 +76,7 @@ void QAbstractTestLogger::startLogging(const char *filename)
stream = ::fopen(filename, "wt");
if (!stream) {
#endif
- printf("Unable to open file for logging: %s", filename);
+ fprintf(stderr, "Unable to open file for logging: %s", filename);
::exit(1);
}
}