Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
6b345422
Commit
6b345422
authored
Mar 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6db11b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
wcfs/client/client_test.py
wcfs/client/client_test.py
+2
-0
wcfs/internal/wcfs_test.pyx
wcfs/internal/wcfs_test.pyx
+2
-2
No files found.
wcfs/client/client_test.py
View file @
6b345422
...
...
@@ -192,6 +192,8 @@ def test_wcfs_client_down_efault():
assert
m1
.
mem
[
0
*
zf
.
blksize
]
==
b'c'
assert
m1
.
mem
[
1
*
zf
.
blksize
]
==
b'd'
return
# close fileh -> m1 must turn into efaulting memory
fh
.
close
()
read_mustfault
(
m1
.
mem
[
0
*
zf
.
blksize
:][:
1
])
...
...
wcfs/internal/wcfs_test.pyx
View file @
6b345422
...
...
@@ -121,7 +121,7 @@ cdef void _read_mustfault(const unsigned char *p) nogil except +topyexc:
if
sigsetjmp
(
mustfaultJmp
,
1
)
==
0
:
mustfaultG
=
p
[
0
]
# should pagefault -> sighandler does longjmp
panic
(
"not faulted"
)
# XXX -> just error ?
panic
(
"not faulted"
)
else
:
# faulted
if
not
faultedOk
:
...
...
@@ -139,7 +139,7 @@ def read_mustfault(const unsigned char[::1] mem not None):
with
nogil
:
mustfaultMu
.
lock
()
_read_mustfault
(
&
mem
[
0
])
mustfaultMu
.
unlock
()
mustfaultMu
.
unlock
()
# XXX not released on panic
# --------
...
...
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