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
Willemt Raft
Commits
64c1560b
Commit
64c1560b
authored
May 24, 2018
by
Yossi Gottlieb
Committed by
Willem
May 24, 2018
Browse files
Fix fuzz test issue with python 3.x. (#68)
parent
296c7e0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/log_fuzzer.py
View file @
64c1560b
...
@@ -28,7 +28,10 @@ class Libraft(object):
...
@@ -28,7 +28,10 @@ class Libraft(object):
self
.
lib
=
ffi
.
dlopen
(
library
)
self
.
lib
=
ffi
.
dlopen
(
library
)
def
load
(
fname
):
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.h'
))
ffi
.
cdef
(
load
(
'include/raft_log.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