Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
3df3611d
Commit
3df3611d
authored
Jan 10, 2023
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst: improve sync_no_mult test
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
aa37825d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
test_hmq.py
tests/test_hmq.py
+5
-11
No files found.
tests/test_hmq.py
View file @
3df3611d
...
...
@@ -179,19 +179,13 @@ class TestHmq(object):
proc
.
append
((
q
,
p
))
p
.
start
()
count_busy
=
0
count_timeout
=
0
errs
=
[]
for
q
,
p
in
proc
:
err
=
q
.
get
(
)
err
s
.
append
(
q
.
get
()
)
p
.
join
()
assert
err
!=
0
if
err
==
errno
.
EBUSY
:
count_busy
=
count_busy
+
1
if
err
==
PyMockTurtle
.
ETRTL_MSG_SYNC_FAILED_RECV_TIMEOUT
:
count_timeout
=
count_timeout
+
1
assert
count_timeout
==
1
assert
count_busy
==
nproc
-
1
assert
count_timeout
+
count_busy
==
nproc
assert
errs
.
count
(
0
)
==
0
assert
errs
.
count
(
errno
.
EBUSY
)
==
nproc
-
1
assert
errs
.
count
(
PyMockTurtle
.
ETRTL_MSG_SYNC_FAILED_RECV_TIMEOUT
)
==
1
def
test_sync_mult
(
self
,
trtl_cpu
,
trtl_msg
,
trtl_binary_hmq_sync
):
"""Test Multiprocess sync messages. The firmware will copy back
...
...
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