Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
RedisLabs Raft
Commits
ca1ef4df
Commit
ca1ef4df
authored
May 23, 2018
by
Yossi Gottlieb
Browse files
Fix fuzz test issue with python 3.x.
parent
01e1b599
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/log_fuzzer.py
View file @
ca1ef4df
...
...
@@ -28,7 +28,10 @@ class Libraft(object):
self
.
lib
=
ffi
.
dlopen
(
library
)
def
load
(
fname
):
return
subprocess
.
check_output
([
"gcc"
,
"-E"
,
fname
])
return
'
\n
'
.
join
(
[
line
for
line
in
subprocess
.
check_output
(
[
"gcc"
,
"-E"
,
fname
]).
decode
(
'utf-8'
).
split
(
'
\n
'
)
if
not
line
.
startswith
(
'#'
)])
ffi
.
cdef
(
load
(
'include/raft.h'
))
ffi
.
cdef
(
load
(
'include/raft_log.h'
))
...
...
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