Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
7da712fa
Commit
7da712fa
authored
May 24, 2019
by
Loic Hausammann
Browse files
Logger: cleanup test
parent
a74623cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testLogger.c
View file @
7da712fa
...
...
@@ -32,7 +32,7 @@
/* Local headers. */
#include
"swift.h"
void
test_log_parts
(
struct
logger
*
log
)
{
void
test_log_parts
(
struct
logger
_writer
*
log
)
{
struct
dump
*
d
=
&
log
->
dump
;
/* Write several copies of a part to the dump. */
...
...
@@ -109,7 +109,7 @@ void test_log_parts(struct logger *log) {
}
}
void
test_log_gparts
(
struct
logger
*
log
)
{
void
test_log_gparts
(
struct
logger
_writer
*
log
)
{
struct
dump
*
d
=
&
log
->
dump
;
/* Write several copies of a part to the dump. */
...
...
@@ -183,7 +183,7 @@ void test_log_gparts(struct logger *log) {
}
}
void
test_log_timestamps
(
struct
logger
*
log
)
{
void
test_log_timestamps
(
struct
logger
_writer
*
log
)
{
struct
dump
*
d
=
&
log
->
dump
;
/* The timestamp to log. */
...
...
@@ -255,7 +255,7 @@ void test_log_timestamps(struct logger *log) {
int
main
(
int
argc
,
char
*
argv
[])
{
/* Prepare a logger. */
struct
logger
log
;
struct
logger
_writer
log
;
struct
swift_params
params
;
parser_read_file
(
"logger.yml"
,
&
params
);
logger_init
(
&
log
,
&
params
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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