Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
7a9f9be2
Commit
7a9f9be2
authored
8 years ago
by
Harris Hancock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence two unused result warnings
parent
2b1dfaac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fuzz-test.c++
c++/src/capnp/fuzz-test.c++
+1
-1
io-test.c++
c++/src/kj/io-test.c++
+1
-1
No files found.
c++/src/capnp/fuzz-test.c++
View file @
7a9f9be2
...
@@ -36,7 +36,7 @@ struct SkipTestHack {
...
@@ -36,7 +36,7 @@ struct SkipTestHack {
SkipTestHack
()
{
SkipTestHack
()
{
if
(
getenv
(
"CAPNP_SKIP_FUZZ_TEST"
)
!=
nullptr
)
{
if
(
getenv
(
"CAPNP_SKIP_FUZZ_TEST"
)
!=
nullptr
)
{
char
message
[]
=
"Skipping test because CAPNP_SKIP_FUZZ_TEST is set in environment.
\n
"
;
char
message
[]
=
"Skipping test because CAPNP_SKIP_FUZZ_TEST is set in environment.
\n
"
;
write
(
STDOUT_FILENO
,
message
,
sizeof
(
message
));
KJ_SYSCALL
(
write
(
STDOUT_FILENO
,
message
,
sizeof
(
message
)
));
_exit
(
0
);
_exit
(
0
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
c++/src/kj/io-test.c++
View file @
7a9f9be2
...
@@ -56,7 +56,7 @@ TEST(Io, WriteVec) {
...
@@ -56,7 +56,7 @@ TEST(Io, WriteVec) {
KJ_TEST
(
"stringify AutoCloseFd"
)
{
KJ_TEST
(
"stringify AutoCloseFd"
)
{
int
fds
[
2
];
int
fds
[
2
];
miniposix
::
pipe
(
fds
);
KJ_SYSCALL
(
miniposix
::
pipe
(
fds
)
);
AutoCloseFd
in
(
fds
[
0
]),
out
(
fds
[
1
]);
AutoCloseFd
in
(
fds
[
0
]),
out
(
fds
[
1
]);
KJ_EXPECT
(
kj
::
str
(
in
)
==
kj
::
str
(
fds
[
0
]),
in
,
fds
[
0
]);
KJ_EXPECT
(
kj
::
str
(
in
)
==
kj
::
str
(
fds
[
0
]),
in
,
fds
[
0
]);
...
...
This diff is collapsed.
Click to expand it.
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