Commit 0ef5bb4e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ef99b52f
......@@ -30,6 +30,7 @@ from __future__ import print_function, absolute_import
from golang import func, defer, b
from wendelin.wcfs.wcfs_test import tDB, tAt
from wendelin.wcfs import wcfs_test
from wendelin.wcfs.internal.wcfs_test import read_mustfault
# XXX so that e.g. testdb is set up + ...
def setup_module(): wcfs_test.setup_module()
......@@ -160,3 +161,12 @@ def test_wcfs_client():
# XXX wconn.open() after wconn.close() -> error
# XXX wconn.resync() after wconn.close() -> error
# 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)
......@@ -51,9 +51,9 @@ from golang import context, errors, sync, time
from zodbtools.util import ashex as h, fromhex
import pytest; xfail = pytest.mark.xfail
from pytest import raises, fail
from .internal import io, mm
from .internal.wcfs_test import _tDB, read_nogil, install_sigbus_trap, fadvise_dontneed
from .client._wcfs import _tpywlinkwrite as _twlinkwrite
from wendelin.wcfs.internal import io, mm
from wendelin.wcfs.internal.wcfs_test import _tDB, read_nogil, install_sigbus_trap, fadvise_dontneed
from wendelin.wcfs.client._wcfs import _tpywlinkwrite as _twlinkwrite
# setup:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment