Commit 34706f13 authored by Dominik Charousset's avatar Dominik Charousset

Call previously missed unit tests

parent c62249f6
...@@ -683,7 +683,7 @@ void test_constructor_attach() { ...@@ -683,7 +683,7 @@ void test_constructor_attach() {
class exception_testee : public event_based_actor { class exception_testee : public event_based_actor {
public: public:
exception_testee() { exception_testee() {
set_exception_handler([](const std::exception_ptr& eptr) -> optional<uint32_t> { set_exception_handler([](const std::exception_ptr&) -> optional<uint32_t> {
return exit_reason::user_defined + 2; return exit_reason::user_defined + 2;
}); });
} }
...@@ -744,7 +744,7 @@ using abc_atom = atom_constant<atom("abc")>; ...@@ -744,7 +744,7 @@ using abc_atom = atom_constant<atom("abc")>;
using typed_testee = typed_actor<replies_to<abc_atom>::with<std::string>>; using typed_testee = typed_actor<replies_to<abc_atom>::with<std::string>>;
typed_testee::behavior_type testee(typed_testee::pointer self) { typed_testee::behavior_type testee() {
return { return {
[](abc_atom) { [](abc_atom) {
CAF_PRINT("received abc_atom"); CAF_PRINT("received abc_atom");
...@@ -780,6 +780,10 @@ int main() { ...@@ -780,6 +780,10 @@ int main() {
CAF_CHECKPOINT(); CAF_CHECKPOINT();
await_all_actors_done(); await_all_actors_done();
CAF_CHECKPOINT(); CAF_CHECKPOINT();
test_constructor_attach();
CAF_CHECKPOINT();
test_custom_exception_handler();
CAF_CHECKPOINT();
// test setting exit reasons for scoped actors // test setting exit reasons for scoped actors
{ // lifetime scope of self { // lifetime scope of self
scoped_actor self; scoped_actor self;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment