From 0ecb2e24bc7f2bd6074eaae3d415fb79ac8674a9 Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Mon, 16 Nov 2020 10:51:40 +0100 Subject: [PATCH] [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). --- tests/SimpleActorTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/SimpleActorTest.cpp b/tests/SimpleActorTest.cpp index 1aa84dbb..cf7e49d0 100644 --- a/tests/SimpleActorTest.cpp +++ b/tests/SimpleActorTest.cpp @@ -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; -- GitLab