From d1a3ab2a9d391bbb4ec07920bb243d21910a3e22 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 25 Nov 2015 23:23:47 +0100 Subject: tst_objectcount: fake qbenchmark-like output Change-Id: I20275e1a1d4d98710db1eadcd51bd17b84503130 Reviewed-by: Liang Qi --- tests/benchmarks/objectcount/tst_objectcount.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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 #include #include +#include static int qt_verbose = qgetenv("VERBOSE").toInt() != 0; @@ -98,7 +99,9 @@ void tst_ObjectCount::cleanup() static void printItems(const QList &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; -- cgit v1.2.3