diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2016-02-16 17:09:14 +0100 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2016-03-03 09:56:08 +0000 |
commit | 954bd06bc51a19a65c228124f971ac69dbf8ca79 (patch) | |
tree | c7c1691077c9f44bc3f8e469ba64082b82330f4d /src/testlib/qxunittestlogger.cpp | |
parent | 8619214c5e76c70e32b47cd002be1adb1bc2f5bf (diff) |
Use local result metric instead of global result metric.
This is required for a follow-up commit which adds support for reporting
multiple results in a single benchmark interation.
Change-Id: I8dd7f37ce046cc0f9556be5d0df76f84b82ec1a7
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/testlib/qxunittestlogger.cpp')
-rw-r--r-- | src/testlib/qxunittestlogger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qxunittestlogger.cpp b/src/testlib/qxunittestlogger.cpp index 72faaeb9b1..ec33c29ae5 100644 --- a/src/testlib/qxunittestlogger.cpp +++ b/src/testlib/qxunittestlogger.cpp @@ -256,7 +256,7 @@ void QXunitTestLogger::addBenchmarkResult(const QBenchmarkResult &result) benchmarkElement->addAttribute( QTest::AI_Metric, - QTest::benchmarkMetricName(QBenchmarkTestMethodData::current->result.metric)); + QTest::benchmarkMetricName(result.metric)); benchmarkElement->addAttribute(QTest::AI_Tag, result.context.tag.toUtf8().data()); const qreal valuePerIteration = qreal(result.value) / qreal(result.iterations); |