summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Marc <aderien@gmail.com>2016-10-04 16:18:42 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2016-10-04 16:55:39 (GMT)
commit26717f4909039803b231434740ef3ce005258dae (patch)
tree67c36619008a9ca2ec3de9ed2f1f94ac18634b58
parent93d9b7748298a00e0fc42190072db16d678eb974 (diff)
downloadcmocka-26717f4909039803b231434740ef3ce005258dae.zip
cmocka-26717f4909039803b231434740ef3ce005258dae.tar.gz
cmocka-26717f4909039803b231434740ef3ce005258dae.tar.bz2
Fixed xUnit output durations
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/cmocka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 3fd1af8..e21ad26 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -2216,7 +2216,7 @@ static void cmprintf_group_finish_xml(const char *group_name,
fprintf(fp, " <testsuite name=\"%s\" time=\"%.3f\" "
"tests=\"%u\" failures=\"%u\" errors=\"%u\" skipped=\"%u\" >\n",
group_name,
- total_runtime * 1000, /* miliseconds */
+ total_runtime, /* seconds */
(unsigned)total_executed,
(unsigned)total_failed,
(unsigned)total_errors,
@@ -2226,7 +2226,7 @@ static void cmprintf_group_finish_xml(const char *group_name,
struct CMUnitTestState *cmtest = &cm_tests[i];
fprintf(fp, " <testcase name=\"%s\" time=\"%.3f\" >\n",
- cmtest->test->name, cmtest->runtime * 1000);
+ cmtest->test->name, cmtest->runtime);
switch (cmtest->status) {
case CM_TEST_ERROR: