diff --git a/hal/tests/TESTS/mbed_hal/sleep/main.cpp b/hal/tests/TESTS/mbed_hal/sleep/main.cpp index 6e745f3e94..84eb2627d2 100644 --- a/hal/tests/TESTS/mbed_hal/sleep/main.cpp +++ b/hal/tests/TESTS/mbed_hal/sleep/main.cpp @@ -228,9 +228,9 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases) ticker_suspend(get_us_ticker_data()); #ifdef DEVICE_SEMIHOST - // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and - // cause said call to take several milliseconds, leading to a test failure. - mbed_interface_disconnect(); + // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and + // cause said call to take several milliseconds, leading to a test failure. + mbed_interface_disconnect(); #endif us_ticker_init(); diff --git a/rtos/tests/TESTS/mbed_rtos/MemoryPool/main.cpp b/rtos/tests/TESTS/mbed_rtos/MemoryPool/main.cpp index aef54dc9f7..d7cc09f93c 100644 --- a/rtos/tests/TESTS/mbed_rtos/MemoryPool/main.cpp +++ b/rtos/tests/TESTS/mbed_rtos/MemoryPool/main.cpp @@ -677,9 +677,9 @@ utest::v1::status_t greentea_test_setup(const size_t number_of_cases) GREENTEA_SETUP(20, "default_auto"); #ifdef DEVICE_SEMIHOST - // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and - // cause said call to take several milliseconds, leading to a test failure. - mbed_interface_disconnect(); + // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and + // cause said call to take several milliseconds, leading to a test failure. + mbed_interface_disconnect(); #endif return greentea_test_setup_handler(number_of_cases); diff --git a/rtos/tests/TESTS/mbed_rtos/mail/main.cpp b/rtos/tests/TESTS/mbed_rtos/mail/main.cpp index d7ba68f3df..32a1583b7c 100644 --- a/rtos/tests/TESTS/mbed_rtos/mail/main.cpp +++ b/rtos/tests/TESTS/mbed_rtos/mail/main.cpp @@ -480,9 +480,9 @@ utest::v1::status_t test_setup(const size_t number_of_cases) GREENTEA_SETUP(10, "default_auto"); #ifdef DEVICE_SEMIHOST - // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and - // cause said call to take several milliseconds, leading to a test failure. - mbed_interface_disconnect(); + // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and + // cause said call to take several milliseconds, leading to a test failure. + mbed_interface_disconnect(); #endif return verbose_test_setup_handler(number_of_cases); diff --git a/rtos/tests/TESTS/mbed_rtos/queue/main.cpp b/rtos/tests/TESTS/mbed_rtos/queue/main.cpp index 6be21e1880..1ece5837d0 100644 --- a/rtos/tests/TESTS/mbed_rtos/queue/main.cpp +++ b/rtos/tests/TESTS/mbed_rtos/queue/main.cpp @@ -320,9 +320,9 @@ utest::v1::status_t test_setup(const size_t number_of_cases) GREENTEA_SETUP(5, "default_auto"); #ifdef DEVICE_SEMIHOST - // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and - // cause said call to take several milliseconds, leading to a test failure. - mbed_interface_disconnect(); + // Disconnect semihosting now, because otherwise it will get disconnected on the first sleep call and + // cause said call to take several milliseconds, leading to a test failure. + mbed_interface_disconnect(); #endif return verbose_test_setup_handler(number_of_cases);