Skip to content

Commit dbebcb0

Browse files
committed
clar: don't use a variable named time
1 parent 59f1e47 commit dbebcb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/clar/summary.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ int clar_summary_testsuites(void)
2020
return fprintf(summary, "<testsuites>\n");
2121
}
2222

23-
int clar_summary_testsuite(int idn, const char *name, const char *pkg, time_t timestamp, double time, int test_count, int fail_count, int error_count)
23+
int clar_summary_testsuite(int idn, const char *name, const char *pkg, time_t timestamp, double elapsed, int test_count, int fail_count, int error_count)
2424
{
2525
struct tm *tm = localtime(&timestamp);
2626
char iso_dt[20];
@@ -38,12 +38,12 @@ int clar_summary_testsuite(int idn, const char *name, const char *pkg, time_t ti
3838
" tests=\"%d\""
3939
" failures=\"%d\""
4040
" errors=\"%d\">\n",
41-
idn, name, pkg, iso_dt, time, test_count, fail_count, error_count);
41+
idn, name, pkg, iso_dt, elapsed, test_count, fail_count, error_count);
4242
}
4343

44-
int clar_summary_testcase(const char *name, const char *classname, double time)
44+
int clar_summary_testcase(const char *name, const char *classname, double elapsed)
4545
{
46-
return fprintf(summary, "\t\t<testcase name=\"%s\" classname=\"%s\" time=\"%.2f\">\n", name, classname, time);
46+
return fprintf(summary, "\t\t<testcase name=\"%s\" classname=\"%s\" time=\"%.2f\">\n", name, classname, elapsed);
4747
}
4848

4949
int clar_summary_failure(const char *type, const char *message, const char *desc)

0 commit comments

Comments
 (0)