Skip to content
Snippets Groups Projects
Commit 0ecb2e24 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

[test] Call Actor.stop() in SimpleActorTest

This should not change much, but ensure that this method is also
invoked in the test (even though it is not explicitly tested).
parent 66563ae8
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ class SumActor : public Actor<uint64_t> {
std::atomic_thread_fence(std::memory_order::memory_order_acquire);
return sum;
}
void stop() { Actor::stop(); }
};
static void mainFiber(void* runtime_ptr) {
......@@ -62,6 +64,8 @@ static void mainFiber(void* runtime_ptr) {
exit(EXIT_FAILURE);
}
sumActor.stop();
if (sumActor.getSum() != EXPECTED_SUM) {
std::cerr << "FAILURE: Actor sum " << sumActor.getSum() << " is not equal to expected sum "
<< EXPECTED_SUM << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment