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 numberOriginal file lineDiff line numberDiff line change
@@ -288,7 +288,7 @@ void test_sleep(void)
288
TEST_ASSERT_UINT64_WITHIN(DELAY_DELTA_US, DELAY_US, timer.read_high_resolution_us());
288
TEST_ASSERT_UINT64_WITHIN(DELAY_DELTA_US, DELAY_US, timer.read_high_resolution_us());
289
}
289
}
290

290

291-
#if DEVICE_LPTICKER
291+
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
292
/** Test wake up from deepsleep
292
/** Test wake up from deepsleep
293
*
293
*
294
* Given a SysTimer with a tick scheduled in the future
294
* Given a SysTimer with a tick scheduled in the future
@@ -342,7 +342,7 @@ Case cases[] = {
342
Case("Handler called once", test_handler_called_once),
342
Case("Handler called once", test_handler_called_once),
343
#if DEVICE_SLEEP
343
#if DEVICE_SLEEP
344
Case("Wake up from sleep", test_sleep),
344
Case("Wake up from sleep", test_sleep),
345-
#if DEVICE_LPTICKER
345+
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
346
Case("Wake up from deep sleep", test_deepsleep),
346
Case("Wake up from deep sleep", test_deepsleep),
347
#endif
347
#endif
348
#endif
348
#endif

0 commit comments

Comments
 (0)