mbed-os/TESTS/mbedmicro-rtos-mbed
Russ Butler 472ababfef Update deep sleep lock check in tests
When the define LPTICKER_DELAY_TICKS is set deep sleep can be randomly
disallowed when using the low power ticker. This is because a Timer
object, which locks deep sleep, is used to protect from back-to-back
writes to lp tickers which can't support that. This causes tests which
assert that deep sleep is allowed to intermittently fail.

To fix this intermittent failure this patch adds the function
sleep_manager_can_deep_sleep_test_check() which checks if deep sleep
is allowed over a duration. It updates all the tests to use
sleep_manager_can_deep_sleep_test_check() rather
than sleep_manager_can_deep_sleep() so the tests work even if deep
sleep is spuriously blocked.
2018-08-17 09:29:41 -05:00
..
CircularBuffer tests: astyle fix 2018-08-03 10:23:38 +01:00
MemoryPool tests: astyle fix 2018-08-03 10:23:38 +01:00
basic tests: astyle fix 2018-08-03 10:23:38 +01:00
condition_variable tests: astyle fix 2018-08-03 10:23:38 +01:00
event_flags tests: astyle fix 2018-08-03 10:23:38 +01:00
heap_and_stack tests: astyle fix 2018-08-03 10:23:38 +01:00
kernel_tick_count add kernel ticker test 2018-07-02 13:48:06 +02:00
mail tests: astyle fix 2018-08-03 10:23:38 +01:00
malloc tests: astyle fix 2018-08-03 10:23:38 +01:00
mutex tests: astyle fix 2018-08-03 10:23:38 +01:00
queue tests: astyle fix 2018-08-03 10:23:38 +01:00
rtostimer tests: astyle fix 2018-08-03 10:23:38 +01:00
semaphore tests: astyle fix 2018-08-03 10:23:38 +01:00
signals tests: astyle fix 2018-08-03 10:23:38 +01:00
systimer Update deep sleep lock check in tests 2018-08-17 09:29:41 -05:00
threads tests: astyle fix 2018-08-03 10:23:38 +01:00