diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-11-25 23:23:47 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-11-26 17:27:08 +0000 |
commit | d1a3ab2a9d391bbb4ec07920bb243d21910a3e22 (patch) | |
tree | 3561912f8e7fb0002199c1eca1b11ea0170d78e6 /tests/benchmarks | |
parent | 57fe5822c5ed7ce77d45b7c1858585edaa83263b (diff) |
tst_objectcount: fake qbenchmark-like output
Change-Id: I20275e1a1d4d98710db1eadcd51bd17b84503130
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/objectcount/tst_objectcount.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/benchmarks/objectcount/tst_objectcount.cpp b/tests/benchmarks/objectcount/tst_objectcount.cpp index 59956588..2d14e9eb 100644 --- a/tests/benchmarks/objectcount/tst_objectcount.cpp +++ b/tests/benchmarks/objectcount/tst_objectcount.cpp @@ -37,6 +37,7 @@ #include <QtTest> #include <QtQuick> #include <QtCore/private/qhooks_p.h> +#include <iostream> static int qt_verbose = qgetenv("VERBOSE").toInt() != 0; @@ -98,7 +99,9 @@ void tst_ObjectCount::cleanup() static void printItems(const QList<QQuickItem *> &items) { - qInfo() << "QQuickItems:" << items.count() << "(total of QObjects:" << qt_qobjects->count() << ")"; + std::cout << "RESULT tst_ObjectCount::" << QTest::currentTestFunction() << "():\"" << QTest::currentDataTag() << "\":" << std::endl; + std::cout << " QQuickItems: " << items.count() << " (total of QObjects: " << qt_qobjects->count() << ")" << std::endl; + if (qt_verbose) { foreach (QObject *object, *qt_qobjects) qInfo() << "\t" << object; |