Skip to content

Commit 64765ff

Browse files
committed
tests-mbed_hal-sleep_manager: fix regression found on since PR #11721
This test is failed since #11721 Bare metal greentea support on many STM32 boards: NUCLEO_F072RB, NUCLEO_F070RB NUCLEO_F411RE, NUCLEO_F439ZI, NUCLEO_F446ZE, DISCO_F407VG NUCLEO_F303RE ...
1 parent 58d6f5f commit 64765ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/mbed_hal/sleep_manager/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void test_lock_eq_ushrt_max()
8888
utest::v1::status_t testcase_setup(const Case *const source, const size_t index_of_case)
8989
{
9090
// Suspend the RTOS kernel scheduler to prevent interference with duration of sleep.
91-
#if defined(MBED_RTOS_PRESENT)
91+
#if defined(MBED_CONF_RTOS_PRESENT)
9292
osKernelSuspend();
9393
#endif
9494
#if DEVICE_LPTICKER
@@ -117,7 +117,7 @@ utest::v1::status_t testcase_teardown(const Case *const source, const size_t pas
117117
#endif
118118
ticker_resume(get_lp_ticker_data());
119119
#endif
120-
#if defined(MBED_RTOS_PRESENT)
120+
#if defined(MBED_CONF_RTOS_PRESENT)
121121
osKernelResume(0);
122122
#endif
123123
return utest::v1::greentea_case_teardown_handler(source, passed, failed, failure);

0 commit comments

Comments
 (0)