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
98f17577
Commit
98f17577
authored
Mar 30, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to skip the fuzz test with an environment variable. (It's very long.)
parent
09759e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
fuzz-test.c++
c++/src/capnp/fuzz-test.c++
+12
-0
No files found.
c++/src/capnp/fuzz-test.c++
View file @
98f17577
...
...
@@ -24,12 +24,24 @@
#include "message.h"
#include "serialize.h"
#include <kj/test.h>
#include <stdlib.h>
#include <unistd.h>
#include "test-util.h"
namespace
capnp
{
namespace
_
{
// private
namespace
{
struct
SkipTestHack
{
SkipTestHack
()
{
if
(
getenv
(
"CAPNP_SKIP_FUZZ_TEST"
)
!=
nullptr
)
{
char
message
[]
=
"Skipping test because CAPNP_SKIP_FUZZ_TEST is set in environment.
\n
"
;
write
(
STDOUT_FILENO
,
message
,
sizeof
(
message
));
_exit
(
0
);
}
}
}
skipTestHack
;
uint64_t
traverse
(
AnyPointer
::
Reader
reader
);
uint64_t
traverse
(
AnyStruct
::
Reader
reader
);
uint64_t
traverse
(
AnyList
::
Reader
reader
);
...
...
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