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
58c160f5
Commit
58c160f5
authored
May 09, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
53127d52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-4
No files found.
wcfs/wcfs_test.py
View file @
58c160f5
...
...
@@ -438,14 +438,14 @@ class tWatch:
# XXX we can get stuck here if wcfs does not behave as we want.
# XXX in particular if there is a silly - e.g. syntax or type error in
# test code - we curently get stuck here.
print
(
'# serveDone.recv() ...'
)
#
# XXX -> better pthread_kill(SIGINT) instead of relying on wcfs proper behaviour?
try
:
t
.
_serveWG
.
wait
()
except
Exception
as
e
:
# canceled is expected and ok
if
e
!=
context
.
canceled
:
reraise
(
e
,
None
,
e
.
__traceback__
)
print
(
'# serveDone ready'
)
t
.
wtx
.
close
()
t
.
wrx
.
close
()
...
...
@@ -462,7 +462,7 @@ class tWatch:
@
func
def
_serveRecv
(
t
,
ctx
):
while
1
:
print
(
'C: watch : rx wait ...'
)
# NOTE: .close() makes sure .wrx.read*() will wake up
l
=
t
.
wrx
.
readline
()
print
(
'C: watch : rx: %r'
%
l
)
if
len
(
l
)
==
0
:
...
...
@@ -565,7 +565,6 @@ class tWatch:
req
=
t
.
recvReq
(
ctx
)
except
Exception
as
e
:
raise
RuntimeError
(
"%s
\
n
not all pin missages received - pending:
\
n
%s"
%
(
e
,
expected
))
assert
False
# XXX temp
assert
req
is
not
None
# channel not closed
assert
req
.
msg
in
expected
expected
.
remove
(
req
.
msg
)
...
...
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