From 4e3c18f0327d6d24e169f4fc020b3400f8d876b8 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Sun, 18 Jun 2017 22:11:15 +0200
Subject: [PATCH] Fix SimpleActorTest

The CPS already gets incremented by the
SynchronizedFiber. Initializing the CPS with FIBER_COUNT means that
the CPS will never become ready.
---
 tests/SimpleActorTest.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/SimpleActorTest.cpp b/tests/SimpleActorTest.cpp
index ee219205..8fbed14a 100644
--- a/tests/SimpleActorTest.cpp
+++ b/tests/SimpleActorTest.cpp
@@ -37,7 +37,7 @@ static void mainFiber(void* runtime_ptr) {
 	SumActor sumActor(runtime);
 	sumActor.start();
 
-	CPS cps(FIBER_COUNT);
+	CPS cps;
 	for (unsigned int i = 0; i < FIBER_COUNT; ++i) {
 		spawn([&sumActor, i] {
 				WDBG(Dispatcher::getCurrentFiber() << " starts to count to " << FIBERS_COUNT_TO);
-- 
GitLab