File tree Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include " utest/harness.h"
20
20
#include < stdlib.h>
21
- #include " core-util/CriticalSectionLock.h"
22
-
23
-
24
- #ifndef YOTTA_CFG_UTEST_USE_CUSTOM_SCHEDULER
25
- #include " minar/minar.h"
26
-
27
- static void *utest_minar_post (const utest_v1_harness_callback_t callback, const uint32_t delay_ms)
28
- {
29
- void *handle = minar::Scheduler::postCallback (callback).delay (minar::milliseconds (delay_ms)).getHandle ();
30
- return handle;
31
- }
32
- static int32_t utest_minar_cancel (void *handle)
33
- {
34
- int32_t ret = minar::Scheduler::cancelCallback (handle);
35
- return ret;
36
- }
37
- static const utest_v1_scheduler_t utest_minar_scheduler =
38
- {
39
- utest_minar_post,
40
- utest_minar_cancel
41
- };
42
- #endif
43
21
44
22
using namespace utest ::v1;
45
23
@@ -71,11 +49,7 @@ namespace
71
49
72
50
location_t location = LOCATION_UNKNOWN;
73
51
74
- #ifndef YOTTA_CFG_UTEST_USE_CUSTOM_SCHEDULER
75
- utest_v1_scheduler_t scheduler = utest_minar_scheduler;
76
- #else
77
- utest_v1_scheduler_t scheduler = {NULL , NULL };
78
- #endif
52
+ utest_v1_scheduler_t scheduler = utest_v1_scheduler;
79
53
}
80
54
81
55
static void die () {
Original file line number Diff line number Diff line change 22
22
#include < stdint.h>
23
23
#include < stdbool.h>
24
24
#include < stdio.h>
25
- #include " compiler-polyfill/attributes .h"
25
+ #include " shim .h"
26
26
27
27
namespace utest {
28
28
namespace v1 {
You can’t perform that action at this time.
0 commit comments