summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMårten Nordheim <[email protected]>2022-09-07 11:07:32 +0200
committerMårten Nordheim <[email protected]>2022-09-08 21:01:54 +0000
commit95e315a66e4cc6bcafc442b6e5d5377b82ba8295 (patch)
tree60bf394c440f16343c59e364ac952a19209dfebd
parent522a93e303932e1c5ce7bc558d98c549589da17a (diff)
JUnit: Don't turn seconds into kilo-seconds
Overlooked in the review where this changed, this value was already in seconds and needs to be converted to millis before converting back. Now printing output such as: <testcase name="initTestCase" classname="tst_QHash" time="0.001"/> Amends bb74e72aa92b599cb4c80c23161ce9b66639ec01 Pick-to: 6.2 6.3 6.4 6.4.0 Fixes: QTBUG-106222 Change-Id: I1f8b774eea3dcbe2b4e822e2b0b2efb1ccc01abb Reviewed-by: Edward Welbourne <[email protected]> Reviewed-by: Tor Arne Vestbø <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
-rw-r--r--src/testlib/qjunittestlogger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qjunittestlogger.cpp b/src/testlib/qjunittestlogger.cpp
index 4a00e51113a..670fecdcc59 100644
--- a/src/testlib/qjunittestlogger.cpp
+++ b/src/testlib/qjunittestlogger.cpp
@@ -179,7 +179,7 @@ void QJUnitTestLogger::leaveTestFunction()
void QJUnitTestLogger::leaveTestCase()
{
currentTestCase->addAttribute(QTest::AI_Time,
- toSecondsFormat(elapsedTestCaseSeconds()).constData());
+ toSecondsFormat(elapsedTestCaseSeconds() * 1000).constData());
if (!systemOutputElement->childElements().empty())
currentTestCase->addChild(systemOutputElement);