Commit 01b1d8d0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7b79065f
...@@ -175,12 +175,11 @@ def test_wcfs_client(): ...@@ -175,12 +175,11 @@ 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
# verify that on Conn/FileH down/closed -> Mappings switch to EFAULT on access. # verify that on Conn/FileH down/closed -> Mappings switch to EFAULT on access.
@func @func
def test_wcfs_client_down_efault(): def test_wcfs_client_down_efault():
# XXX all fileh / mappings become invalid after wconn.close
t = tDB(); zf = t.zfile; at0=t.at0 t = tDB(); zf = t.zfile; at0=t.at0
defer(t.close) defer(t.close)
pinned = lambda fh: fhpinned(t, fh) pinned = lambda fh: fhpinned(t, fh)
...@@ -199,6 +198,7 @@ def test_wcfs_client_down_efault(): ...@@ -199,6 +198,7 @@ def test_wcfs_client_down_efault():
tm1 = tMapping(t, m1) tm1 = tMapping(t, m1)
tm1.assertBlk(2, 'c1', {}) tm1.assertBlk(2, 'c1', {})
tm1.assertBlk(3, 'd1', {}) tm1.assertBlk(3, 'd1', {})
tm1.assertBlk(4, '', {})
with panics("not faulted"): tm1.assertBlkFaults(2) with panics("not faulted"): tm1.assertBlkFaults(2)
with panics("not faulted"): tm1.assertBlkFaults(3) with panics("not faulted"): tm1.assertBlkFaults(3)
...@@ -207,3 +207,4 @@ def test_wcfs_client_down_efault(): ...@@ -207,3 +207,4 @@ def test_wcfs_client_down_efault():
fh.close() fh.close()
tm1.assertBlkFaults(2) tm1.assertBlkFaults(2)
tm1.assertBlkFaults(3) tm1.assertBlkFaults(3)
tm1.assertBlkFaults(4)
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