Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tansiv
TANSIV
Commits
e96df6eb
Commit
e96df6eb
authored
Apr 16, 2020
by
RILLING Louis
Browse files
tansiv/tests: Use write(2) instead of printf(3) in signal context
parent
63347786
Pipeline
#137312
failed with stages
in 2 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/tests/tests.cpp
View file @
e96df6eb
...
...
@@ -148,7 +148,9 @@ private:
void
recv_cb
(
const
struct
vsg_context
*
context
,
uint32_t
msglen
,
const
uint8_t
*
msg
)
{
printf
(
"callback called
\n
"
);
// Try not to deadlock with libc's stdout
const
char
hey
[]
=
"callback called
\n
"
;
write
(
STDOUT_FILENO
,
hey
,
sizeof
(
hey
)
-
1
);
};
void
TestTansiv
::
setUp
(
void
)
{}
...
...
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