14
14
* limitations under the License.
15
15
*/
16
16
17
- #if MBED_CONF_RTOS_PRESENT
18
-
19
17
#include " greentea-client/test_env.h"
20
18
#include " utest/utest.h"
21
19
#include " unity/unity.h"
@@ -349,15 +347,19 @@ utest::v1::status_t test_setup(const size_t number_of_cases)
349
347
Case cases[] = {
350
348
Case (" Test error counting and reset" , test_error_count_and_reset),
351
349
Case (" Test error encoding, value capture, first and last errors" , test_error_capturing),
350
+ #if MBED_CONF_RTOS_PRESENT
352
351
Case (" Test error context capture" , test_error_context_capture),
352
+ #endif // MBED_CONF_RTOS_PRESENT
353
353
Case (" Test error hook" , test_error_hook),
354
354
#ifndef MBED_CONF_ERROR_HIST_DISABLED
355
355
Case (" Test error logging" , test_error_logging),
356
+ #if MBED_CONF_RTOS_PRESENT
356
357
Case (" Test error handling multi-threaded" , test_error_logging_multithread),
358
+ #endif // MBED_CONF_RTOS_PRESENT
357
359
#ifdef MBED_TEST_SIM_BLOCKDEVICE
358
360
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
361
363
};
362
364
363
365
utest::v1::Specification specification (test_setup, cases);
@@ -366,5 +368,3 @@ int main()
366
368
{
367
369
return !utest::v1::Harness::run (specification);
368
370
}
369
-
370
- #endif // MBED_CONF_RTOS_PRESENT
0 commit comments