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
926c30b4
Commit
926c30b4
authored
Jun 27, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5b409637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+13
-13
No files found.
wcfs/wcfs_test.py
View file @
926c30b4
...
...
@@ -203,7 +203,7 @@ class tDB:
# whether head/ ZBigFile(s) blocks were ever accessed via wcfs.
# this is updated only explicitly via ._blkheadaccess() .
t
.
_blkaccessedViaHead
=
{}
# ZBigFile -> set(blk)
t
.
_blkaccessedViaHead
=
{}
# ZBigFile -> set(blk)
XXX ZF -> foid ? (threads)
# tracked opened tFiles & tWatches
t
.
_files
=
set
()
...
...
@@ -689,7 +689,7 @@ class tWatchLink:
t
.
_serveWG
.
go
(
t
.
_serveRX
)
# this tWatchLink currently watches the following files at particular state.
t
.
_watching
=
{}
# {} ZBigFile -> tWatch
t
.
_watching
=
{}
# {} ZBigFile -> tWatch
XXX ZBigFile -> foid
tdb
.
_wlinks
.
add
(
t
)
...
...
@@ -1883,8 +1883,8 @@ def zfiles(t):
# dump_history prints t's change history in tabular form.
#
# the output is useful while developing
: to get overview of how file(s) are
# changed in tests.
# the output is useful while developing
or analyzing a test failure: to get
#
overview of how file(s) are
changed in tests.
@
func
(
tDB
)
def
dump_history
(
t
):
print
(
'>>> Change history by file:
\
n
'
)
...
...
@@ -1908,6 +1908,15 @@ def dump_history(t):
print
()
# ready reports whether chan ch is ready.
def
ready
(
ch
):
_
,
_rx
=
select
(
default
,
# 0
ch
.
recv
,
# 1
)
return
bool
(
_
)
# xdefer is like defer, but makes sure exception raised before deferred
# function is called is not lost.
#
...
...
@@ -1939,12 +1948,3 @@ def _xdefer(f):
# replace defer with xdefer
defer
=
xdefer
del
xdefer
# ready reports whether chan ch is ready.
def
ready
(
ch
):
_
,
_rx
=
select
(
default
,
# 0
ch
.
recv
,
# 1
)
return
bool
(
_
)
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