diff --git "a/frameworks\\utest/source/harness.cpp" "b/frameworks\\utest/source/harness.cpp" index 2c8f7e03f0..a4c6d8f1cb 100644 --- "a/frameworks\\utest/source/harness.cpp" +++ "b/frameworks\\utest/source/harness.cpp" @@ -18,28 +18,6 @@ #include "utest/harness.h" #include -#include "core-util/CriticalSectionLock.h" - - -#ifndef YOTTA_CFG_UTEST_USE_CUSTOM_SCHEDULER -#include "minar/minar.h" - -static void *utest_minar_post(const utest_v1_harness_callback_t callback, const uint32_t delay_ms) -{ - void *handle = minar::Scheduler::postCallback(callback).delay(minar::milliseconds(delay_ms)).getHandle(); - return handle; -} -static int32_t utest_minar_cancel(void *handle) -{ - int32_t ret = minar::Scheduler::cancelCallback(handle); - return ret; -} -static const utest_v1_scheduler_t utest_minar_scheduler = -{ - utest_minar_post, - utest_minar_cancel -}; -#endif using namespace utest::v1; @@ -71,11 +49,7 @@ namespace location_t location = LOCATION_UNKNOWN; -#ifndef YOTTA_CFG_UTEST_USE_CUSTOM_SCHEDULER - utest_v1_scheduler_t scheduler = utest_minar_scheduler; -#else - utest_v1_scheduler_t scheduler = {NULL, NULL}; -#endif + utest_v1_scheduler_t scheduler = utest_v1_scheduler; } static void die() { diff --git "a/frameworks\\utest/utest/types.h" "b/frameworks\\utest/utest/types.h" index 9cf0955545..ef8c6c3ccf 100644 --- "a/frameworks\\utest/utest/types.h" +++ "b/frameworks\\utest/utest/types.h" @@ -22,7 +22,7 @@ #include #include #include -#include "compiler-polyfill/attributes.h" +#include "shim.h" namespace utest { namespace v1 {