diff --git a/tests/UnblockOnMainActorTest.cpp b/tests/UnblockOnMainActorTest.cpp index 6ae3883f27974b786f8df82b848c03096b375e5d..2469437a3c40dd5b56c0e8e86d680d352c14502b 100644 --- a/tests/UnblockOnMainActorTest.cpp +++ b/tests/UnblockOnMainActorTest.cpp @@ -9,9 +9,11 @@ #include "Actor.hpp" // for Actor #include "BinaryPrivateSemaphore.hpp" // for BPS #include "CountingPrivateSemaphore.hpp" // for CPS -#include "Fiber.hpp" // for Fiber -#include "Runtime.hpp" // for Runtime -#include "emper.hpp" // for spawn +#include "Debug.hpp" +#include "Fiber.hpp" +#include "Runtime.hpp" +#include "emper-config.h" +#include "emper.hpp" #include "lib/adt/LockedUnboundedQueue.hpp" /* @@ -37,7 +39,7 @@ class AlarmActor : public Actor<BPS*> { auto main(int argc, char* argv[]) -> int { unsigned int sleeper_count = std::thread::hardware_concurrency(); - unsigned int sleeps = 1000; + unsigned int sleeps = EMPER_LOG_LEVEL > Info ? 100 : 1000; if (argc > 3) { std::cerr << "Usage: " << argv[0] << " [fiber count] [block count]" << std::endl;