diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2012-01-16 15:12:39 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-17 01:17:35 +0100 |
commit | 2ba0d1e550d5ec8624a4c6a52ff2ce48f9557cf0 (patch) | |
tree | 8aec65f0d22c3aa71db2cccee43303c606bcce68 /src/testlib/qplaintestlogger.cpp | |
parent | 6acdb3256113a5cdc9633077ada5674e5ee694d1 (diff) |
Move pass/fail/skip counters from QTestResult to QTestLog.
This change will enable further simplification of QTestResult and
QTestLog in the future, including removing a circular dependency between
the two classes.
The "getter" functions in QTestResult are retained for now, but will be
removed in a future commit, once QtQuickTest has been changed to call
the getters that this commit adds to QTestLog.
This commit is adapted from an unfinished change by Henrik Hartz.
Change-Id: Ife7f80ac6a4310449a4712e96e0bea6c02139a5a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qplaintestlogger.cpp')
-rw-r--r-- | src/testlib/qplaintestlogger.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp index f0e83183ec..9810a8029a 100644 --- a/src/testlib/qplaintestlogger.cpp +++ b/src/testlib/qplaintestlogger.cpp @@ -344,14 +344,14 @@ void QPlainTestLogger::stopLogging() char buf[1024]; if (QTestLog::verboseLevel() < 0) { qsnprintf(buf, sizeof(buf), "Totals: %d passed, %d failed, %d skipped\n", - QTestResult::passCount(), QTestResult::failCount(), - QTestResult::skipCount()); + QTestLog::passCount(), QTestLog::failCount(), + QTestLog::skipCount()); } else { qsnprintf(buf, sizeof(buf), "Totals: %d passed, %d failed, %d skipped\n" "********* Finished testing of %s *********\n", - QTestResult::passCount(), QTestResult::failCount(), - QTestResult::skipCount(), QTestResult::currentTestObjectName()); + QTestLog::passCount(), QTestLog::failCount(), + QTestLog::skipCount(), QTestResult::currentTestObjectName()); } outputMessage(buf); |