Commit 98c935e9 authored by Dominik Charousset's avatar Dominik Charousset

Fix test_unpublish logging

parent 81efd569
Subproject commit 1bb52222b026d7b6b2129149571e78d8226545b1 Subproject commit ed82a66c334c345db8084d072beb715f31144792
Subproject commit bed16a7a7338312e954b525084ec45fa64fc1577 Subproject commit 4e815913730589b1592d111dc67133e76bf923c4
Subproject commit 5e36359def0b74dee3606e68e8fa70687622dafc Subproject commit 90d42335ff3a2fe67ac4ae41a844f0b245bb123c
...@@ -76,7 +76,14 @@ int main() { ...@@ -76,7 +76,14 @@ int main() {
CAF_TEST(test_unpublish); CAF_TEST(test_unpublish);
test_unpublish(); test_unpublish();
await_all_actors_done(); await_all_actors_done();
CAF_CHECK_EQUAL(s_dtor_called.load(), 2);
shutdown(); shutdown();
// we cannot use CAF_CHECK_EQUAL here because it will also log
// an error (logger has been destroyed in shutdown)
auto dtors_called = s_dtor_called.load();
if (s_dtor_called.load() != 2) {
std::cerr << "ERROR: " << caf_strip_path(__FILE__) << ":" << __LINE__
<< " expected value: 2, found: " << dtors_called << std::endl;
caf_inc_error_count();
}
return CAF_TEST_RESULT(); return CAF_TEST_RESULT();
} }
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