Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
dbebcb04
Commit
dbebcb04
authored
Aug 26, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: don't use a variable named `time`
parent
59f1e477
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/clar/summary.h
+4
-4
No files found.
tests/clar/summary.h
View file @
dbebcb04
...
...
@@ -20,7 +20,7 @@ int clar_summary_testsuites(void)
return
fprintf
(
summary
,
"<testsuites>
\n
"
);
}
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
)
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
)
{
struct
tm
*
tm
=
localtime
(
&
timestamp
);
char
iso_dt
[
20
];
...
...
@@ -38,12 +38,12 @@ int clar_summary_testsuite(int idn, const char *name, const char *pkg, time_t ti
" tests=
\"
%d
\"
"
" failures=
\"
%d
\"
"
" errors=
\"
%d
\"
>
\n
"
,
idn
,
name
,
pkg
,
iso_dt
,
time
,
test_count
,
fail_count
,
error_count
);
idn
,
name
,
pkg
,
iso_dt
,
elapsed
,
test_count
,
fail_count
,
error_count
);
}
int
clar_summary_testcase
(
const
char
*
name
,
const
char
*
classname
,
double
time
)
int
clar_summary_testcase
(
const
char
*
name
,
const
char
*
classname
,
double
elapsed
)
{
return
fprintf
(
summary
,
"
\t\t
<testcase name=
\"
%s
\"
classname=
\"
%s
\"
time=
\"
%.2f
\"
>
\n
"
,
name
,
classname
,
time
);
return
fprintf
(
summary
,
"
\t\t
<testcase name=
\"
%s
\"
classname=
\"
%s
\"
time=
\"
%.2f
\"
>
\n
"
,
name
,
classname
,
elapsed
);
}
int
clar_summary_failure
(
const
char
*
type
,
const
char
*
message
,
const
char
*
desc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment