Skip to content

Commit e93aaab

Browse files
authored
Only exclude RTOS-specifc tests in error_handling
Allows for other tests to run if no RTOS is present.
1 parent 5fe241b commit e93aaab

File tree

1 file changed

+6
-6
lines changed
  • TESTS/mbed_platform/error_handling

1 file changed

+6
-6
lines changed

TESTS/mbed_platform/error_handling/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
#if MBED_CONF_RTOS_PRESENT
18-
1917
#include "greentea-client/test_env.h"
2018
#include "utest/utest.h"
2119
#include "unity/unity.h"
@@ -349,15 +347,19 @@ utest::v1::status_t test_setup(const size_t number_of_cases)
349347
Case cases[] = {
350348
Case("Test error counting and reset", test_error_count_and_reset),
351349
Case("Test error encoding, value capture, first and last errors", test_error_capturing),
350+
#if MBED_CONF_RTOS_PRESENT
352351
Case("Test error context capture", test_error_context_capture),
352+
#endif //MBED_CONF_RTOS_PRESENT
353353
Case("Test error hook", test_error_hook),
354354
#ifndef MBED_CONF_ERROR_HIST_DISABLED
355355
Case("Test error logging", test_error_logging),
356+
#if MBED_CONF_RTOS_PRESENT
356357
Case("Test error handling multi-threaded", test_error_logging_multithread),
358+
#endif //MBED_CONF_RTOS_PRESENT
357359
#ifdef MBED_TEST_SIM_BLOCKDEVICE
358360
Case("Test error save log", test_save_error_log),
359-
#endif
360-
#endif
361+
#endif //MBED_TEST_SIM_BLOCKDEVICE
362+
#endif //MBED_CONF_ERROR_HIST_DISABLED
361363
};
362364

363365
utest::v1::Specification specification(test_setup, cases);
@@ -366,5 +368,3 @@ int main()
366368
{
367369
return !utest::v1::Harness::run(specification);
368370
}
369-
370-
#endif //MBED_CONF_RTOS_PRESENT

0 commit comments

Comments
 (0)