From fccca0d31d57cd80b2a7aa7c533294e7ff8eec25 Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Thu, 6 Apr 2017 17:27:44 +0200 Subject: [PATCH] Fix SimpleFibTest We need to spawn another fiber in fibKickoff --- tests/SimplestFibTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/SimplestFibTest.cpp b/tests/SimplestFibTest.cpp index 367a2ce0..789d6914 100644 --- a/tests/SimplestFibTest.cpp +++ b/tests/SimplestFibTest.cpp @@ -11,6 +11,7 @@ #include "BinaryPrivateSemaphore.hpp" #include "CountingPrivateSemaphore.hpp" #include "Debug.hpp" +#include "emper.hpp" typedef struct { int n; @@ -63,7 +64,8 @@ static void fibKickoff() { BPS sem; fibParams params = { fibNum, &result, &sem }; - fib(¶ms); + Fiber* fibFiber = Fiber::from(fib, ¶ms); + async(fibFiber); sem.wait(); -- GitLab