Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
74649973
Commit
74649973
authored
Feb 05, 2013
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check whether mailbox is empty at end of unit test
parent
e1f51dc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
unit_testing/test__sync_send.cpp
unit_testing/test__sync_send.cpp
+9
-1
No files found.
unit_testing/test__sync_send.cpp
View file @
74649973
...
@@ -132,12 +132,20 @@ int main() {
...
@@ -132,12 +132,20 @@ int main() {
others
()
>>
CPPA_UNEXPECTED_MSG_CB
()
others
()
>>
CPPA_UNEXPECTED_MSG_CB
()
);
);
// we should have received two DOWN messages with normal exit reason
// we should have received two DOWN messages with normal exit reason
// plus 'NoWay'
int
i
=
0
;
int
i
=
0
;
receive_for
(
i
,
2
)
(
receive_for
(
i
,
3
)
(
on
(
atom
(
"DOWN"
),
exit_reason
::
normal
)
>>
CPPA_CHECKPOINT_CB
(),
on
(
atom
(
"DOWN"
),
exit_reason
::
normal
)
>>
CPPA_CHECKPOINT_CB
(),
on
(
atom
(
"NoWay"
))
>>
CPPA_CHECKPOINT_CB
(),
others
()
>>
CPPA_UNEXPECTED_MSG_CB
(),
others
()
>>
CPPA_UNEXPECTED_MSG_CB
(),
after
(
std
::
chrono
::
seconds
(
0
))
>>
CPPA_UNEXPECTED_TOUT_CB
()
after
(
std
::
chrono
::
seconds
(
0
))
>>
CPPA_UNEXPECTED_TOUT_CB
()
);
);
CPPA_CHECKPOINT
();
// mailbox should be empty now
receive
(
others
()
>>
CPPA_UNEXPECTED_MSG_CB
(),
after
(
std
::
chrono
::
seconds
(
0
))
>>
CPPA_CHECKPOINT_CB
()
);
shutdown
();
shutdown
();
return
CPPA_TEST_RESULT
;
return
CPPA_TEST_RESULT
;
}
}
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