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
ruanhaishen
RedisLabs Raft
Commits
ca1ef4df
"vscode:/vscode.git/clone" did not exist on "79226cb9fad57c958417263e52f7bb7f9b13597c"
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):
...
@@ -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