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
7b79065f
Commit
7b79065f
authored
Mar 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a8e2c5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
wcfs/client/client_test.py
wcfs/client/client_test.py
+2
-11
No files found.
wcfs/client/client_test.py
View file @
7b79065f
...
...
@@ -32,6 +32,7 @@ from golang.golang_test import panics
from
wendelin.wcfs.wcfs_test
import
tDB
,
tAt
from
wendelin.wcfs
import
wcfs_test
from
wendelin.wcfs.internal.wcfs_test
import
read_mustfault
from
wendelin.wcfs.internal
import
mm
# XXX so that e.g. testdb is set up + ...
def
setup_module
():
wcfs_test
.
setup_module
()
...
...
@@ -94,7 +95,7 @@ class tMapping(object):
fh
=
t
.
mmap
.
fileh
blkview
=
t
.
mmap
.
mem
[
blk_inmmap
*
fh
.
blksize
:][:
fh
.
blksize
]
for
i
in
range
(
0
,
len
(
blkview
),
8
):
# XXX 8 too frequent?
for
i
in
range
(
0
,
len
(
blkview
),
mm
.
PAGE_SIZE
):
read_mustfault
(
blkview
[
i
:][:
1
])
...
...
@@ -201,18 +202,8 @@ def test_wcfs_client_down_efault():
with
panics
(
"not faulted"
):
tm1
.
assertBlkFaults
(
2
)
with
panics
(
"not faulted"
):
tm1
.
assertBlkFaults
(
3
)
#with panics("not faulted"): read_mustfault(m1.mem[0*zf.blksize:][:1])
#with panics("not faulted"): read_mustfault(m1.mem[1*zf.blksize:][:1])
#assert m1.mem[0*zf.blksize] == b'c'
#assert m1.mem[1*zf.blksize] == b'd'
# close fileh -> m1 must turn into efaulting memory
# XXX verify whole block?
fh
.
close
()
read_mustfault
(
m1
.
mem
[
0
*
zf
.
blksize
:][:
1
])
read_mustfault
(
m1
.
mem
[
1
*
zf
.
blksize
:][:
1
])
tm1
.
assertBlkFaults
(
1
)
# XXX
tm1
.
assertBlkFaults
(
2
)
tm1
.
assertBlkFaults
(
3
)
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