diff options
author | Adrien Marc <aderien@gmail.com> | 2016-10-04 18:18:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-10-04 18:55:39 +0200 |
commit | 26717f4909039803b231434740ef3ce005258dae (patch) | |
tree | 67c36619008a9ca2ec3de9ed2f1f94ac18634b58 | |
parent | 93d9b7748298a00e0fc42190072db16d678eb974 (diff) | |
download | cmocka-26717f4909039803b231434740ef3ce005258dae.tar.gz cmocka-26717f4909039803b231434740ef3ce005258dae.tar.bz2 cmocka-26717f4909039803b231434740ef3ce005258dae.zip |
Fixed xUnit output durations
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/cmocka.c | 4 |
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: |