Skip to content

Commit 8d880bb

Browse files
committed
Skip deep sleep test when running from US ticker
Skip the systimer deep sleep test when running from the microsecond ticker, since the microsecond ticker doesn't support operation in deep sleep mode.
1 parent 4bead92 commit 8d880bb

File tree

1 file changed

+2
-2
lines changed
  • TESTS/mbedmicro-rtos-mbed/systimer

1 file changed

+2
-2
lines changed

TESTS/mbedmicro-rtos-mbed/systimer/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void test_sleep(void)
288288
TEST_ASSERT_UINT64_WITHIN(DELAY_DELTA_US, DELAY_US, timer.read_high_resolution_us());
289289
}
290290

291-
#if DEVICE_LPTICKER
291+
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
292292
/** Test wake up from deepsleep
293293
*
294294
* Given a SysTimer with a tick scheduled in the future
@@ -342,7 +342,7 @@ Case cases[] = {
342342
Case("Handler called once", test_handler_called_once),
343343
#if DEVICE_SLEEP
344344
Case("Wake up from sleep", test_sleep),
345-
#if DEVICE_LPTICKER
345+
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
346346
Case("Wake up from deep sleep", test_deepsleep),
347347
#endif
348348
#endif

0 commit comments

Comments
 (0)