File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
TESTS/mbed_hal/common_tickers_freq
rtos/tests/TESTS/mbedmicro-rtos-mbed/basic Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 29
29
#include " hal/lp_ticker_api.h"
30
30
#include " hal/mbed_lp_ticker_wrapper.h"
31
31
32
- #if defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
33
- #error [NOT_SUPPORTED] test not supported
32
+ #if !DEVICE_USTICKER
33
+ #error [NOT_SUPPORTED] UsTicker need to be enabled for this test
34
34
#else
35
35
36
+ #if defined(SKIP_TIME_DRIFT_TESTS)
37
+ #error [NOT_SUPPORTED] timing accuracy tests skipped
38
+ #endif // defined(SKIP_TIME_DRIFT_TESTS)
39
+
36
40
#define US_PER_S 1000000
37
41
38
42
using namespace utest ::v1;
@@ -208,4 +212,4 @@ int main()
208
212
Harness::run (specification);
209
213
}
210
214
211
- #endif // defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
215
+ #endif // !DEVICE_USTICKER
Original file line number Diff line number Diff line change 23
23
#include " utest/utest.h"
24
24
#include " unity/unity.h"
25
25
26
- #if defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
26
+ #if !DEVICE_USTICKER
27
27
#error [NOT_SUPPORTED] UsTicker need to be enabled for this test.
28
28
#else
29
29
30
+ #if defined(SKIP_TIME_DRIFT_TESTS)
31
+ #error [NOT_SUPPORTED] timing accuracy tests skipped
32
+ #endif // defined(SKIP_TIME_DRIFT_TESTS
33
+
30
34
using utest::v1::Case;
31
35
using std::milli;
32
36
using std::micro;
@@ -122,5 +126,5 @@ int main()
122
126
utest::v1::Harness::run (specification);
123
127
}
124
128
125
- #endif // defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
129
+ #endif // !DEVICE_USTICKER
126
130
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !defined(MBED_CONF_RTOS_PRESENT)
You can’t perform that action at this time.
0 commit comments