diff --git a/tests/SimplestFibTest.cpp b/tests/SimplestFibTest.cpp index 367a2ce09c1d27fbe875ea16baf1a3011bcee210..789d6914130864fe63e86478f9363778621a4de9 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();