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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
0ef5bb4e
Commit
0ef5bb4e
authored
Mar 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ef99b52f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
wcfs/client/client_test.py
wcfs/client/client_test.py
+10
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-3
No files found.
wcfs/client/client_test.py
View file @
0ef5bb4e
...
@@ -30,6 +30,7 @@ from __future__ import print_function, absolute_import
...
@@ -30,6 +30,7 @@ from __future__ import print_function, absolute_import
from
golang
import
func
,
defer
,
b
from
golang
import
func
,
defer
,
b
from
wendelin.wcfs.wcfs_test
import
tDB
,
tAt
from
wendelin.wcfs.wcfs_test
import
tDB
,
tAt
from
wendelin.wcfs
import
wcfs_test
from
wendelin.wcfs
import
wcfs_test
from
wendelin.wcfs.internal.wcfs_test
import
read_mustfault
# XXX so that e.g. testdb is set up + ...
# XXX so that e.g. testdb is set up + ...
def
setup_module
():
wcfs_test
.
setup_module
()
def
setup_module
():
wcfs_test
.
setup_module
()
...
@@ -160,3 +161,12 @@ def test_wcfs_client():
...
@@ -160,3 +161,12 @@ def test_wcfs_client():
# XXX wconn.open() after wconn.close() -> error
# XXX wconn.open() after wconn.close() -> error
# XXX wconn.resync() after wconn.close() -> error
# XXX wconn.resync() after wconn.close() -> error
# XXX all fileh / mappings become invalid after wconn.close
# XXX all fileh / mappings become invalid after wconn.close
# verify that on Conn/FileH down/closed -> Mappings switch to EFAULT on access.
@
func
def
test_wcfs_client_down_efault
():
t
=
tDB
();
zf
=
t
.
zfile
;
at0
=
t
.
at0
defer
(
t
.
close
)
pinned
=
lambda
fh
:
fhpinned
(
t
,
fh
)
wcfs/wcfs_test.py
View file @
0ef5bb4e
...
@@ -51,9 +51,9 @@ from golang import context, errors, sync, time
...
@@ -51,9 +51,9 @@ from golang import context, errors, sync, time
from
zodbtools.util
import
ashex
as
h
,
fromhex
from
zodbtools.util
import
ashex
as
h
,
fromhex
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
from
pytest
import
raises
,
fail
from
pytest
import
raises
,
fail
from
.internal
import
io
,
mm
from
wendelin.wcfs
.internal
import
io
,
mm
from
.internal.wcfs_test
import
_tDB
,
read_nogil
,
install_sigbus_trap
,
fadvise_dontneed
from
wendelin.wcfs
.internal.wcfs_test
import
_tDB
,
read_nogil
,
install_sigbus_trap
,
fadvise_dontneed
from
.client._wcfs
import
_tpywlinkwrite
as
_twlinkwrite
from
wendelin.wcfs
.client._wcfs
import
_tpywlinkwrite
as
_twlinkwrite
# setup:
# setup:
...
...
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