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
ac8dfb69
Commit
ac8dfb69
authored
Mar 04, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
665ae5ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
wcfs/client/client_test.py
wcfs/client/client_test.py
+20
-21
No files found.
wcfs/client/client_test.py
View file @
ac8dfb69
...
@@ -182,35 +182,34 @@ def test_wcfs_client_down_efault():
...
@@ -182,35 +182,34 @@ def test_wcfs_client_down_efault():
# XXX all fileh / mappings become invalid after wconn.close
# 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
)
at1
=
t
.
commit
(
zf
,
{
2
:
'c1'
,
3
:
'd1'
})
at1
=
t
.
commit
(
zf
,
{
2
:
'c1'
,
3
:
'd1'
})
wconn
=
t
.
wc
.
connect
(
at1
)
wconn
=
t
.
wc
.
connect
(
at1
)
defer
(
wconn
.
close
)
defer
(
wconn
.
close
)
fh
=
wconn
.
open
(
zf
.
_p_oid
)
fh
1
=
wconn
.
open
(
zf
.
_p_oid
)
defer
(
fh
.
close
)
defer
(
fh
1
.
close
)
m1
=
fh
.
mmap
(
1
,
4
);
defer
(
m
1
.
unmap
)
m1
1
=
fh1
.
mmap
(
1
,
4
);
defer
(
m1
1
.
unmap
)
m
2
=
fh
.
mmap
(
3
,
3
);
defer
(
m
2
.
unmap
)
m
12
=
fh1
.
mmap
(
3
,
3
);
defer
(
m1
2
.
unmap
)
tm1
=
tMapping
(
t
,
m
1
)
tm1
1
=
tMapping
(
t
,
m1
1
)
tm
2
=
tMapping
(
t
,
m
2
)
tm
12
=
tMapping
(
t
,
m1
2
)
tm1
.
assertBlk
(
1
,
''
,
{})
tm1
1
.
assertBlk
(
1
,
''
,
{})
tm1
.
assertBlk
(
2
,
'c1'
,
{})
tm1
1
.
assertBlk
(
2
,
'c1'
,
{})
tm1
.
assertBlk
(
3
,
'd1'
,
{});
tm
2
.
assertBlk
(
3
,
'd1'
,
{})
tm1
1
.
assertBlk
(
3
,
'd1'
,
{});
tm1
2
.
assertBlk
(
3
,
'd1'
,
{})
tm1
.
assertBlk
(
4
,
''
,
{});
tm
2
.
assertBlk
(
4
,
''
,
{})
tm1
1
.
assertBlk
(
4
,
''
,
{});
tm1
2
.
assertBlk
(
4
,
''
,
{})
pass
;
tm
2
.
assertBlk
(
5
,
''
,
{})
pass
;
tm1
2
.
assertBlk
(
5
,
''
,
{})
# close f
ileh -> all mmaps must turn into efaulting memory
# close f
h1 -> all fh1 mmaps must turn into efaulting memory.
fh
.
close
()
fh
1
.
close
()
tm1
.
assertBlkFaults
(
1
)
tm1
1
.
assertBlkFaults
(
1
)
tm1
.
assertBlkFaults
(
2
)
tm1
1
.
assertBlkFaults
(
2
)
tm1
.
assertBlkFaults
(
3
);
tm
2
.
assertBlkFaults
(
3
)
tm1
1
.
assertBlkFaults
(
3
);
tm1
2
.
assertBlkFaults
(
3
)
tm1
.
assertBlkFaults
(
4
);
tm
2
.
assertBlkFaults
(
4
)
tm1
1
.
assertBlkFaults
(
4
);
tm1
2
.
assertBlkFaults
(
4
)
pass
;
tm
2
.
assertBlkFaults
(
5
)
pass
;
tm1
2
.
assertBlkFaults
(
5
)
# verify that read_mustfault works as expected.
# verify that read_mustfault works as expected.
...
...
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