|
13 | 13 | * See the License for the specific language governing permissions and
|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
| 16 | + |
16 | 17 | #include "greentea-client/test_env.h"
|
17 | 18 | #include "utest/utest.h"
|
18 | 19 | #include "unity/unity.h"
|
@@ -124,7 +125,7 @@ void test_error_context_capture()
|
124 | 125 | mbed_error_status_t status = mbed_get_last_error_info( &error_ctx );
|
125 | 126 | TEST_ASSERT(status == MBED_SUCCESS);
|
126 | 127 | TEST_ASSERT_EQUAL_UINT(error_value, error_ctx.error_value);
|
127 |
| - TEST_ASSERT_EQUAL_UINT(osThreadGetId(), error_ctx.thread_id); |
| 128 | + TEST_ASSERT_EQUAL_UINT((uint32_t)osThreadGetId(), error_ctx.thread_id); |
128 | 129 |
|
129 | 130 | //Capture thread info and compare
|
130 | 131 | osRtxThread_t *current_thread = osRtxInfo.thread.run.curr;
|
@@ -346,15 +347,19 @@ utest::v1::status_t test_setup(const size_t number_of_cases)
|
346 | 347 | Case cases[] = {
|
347 | 348 | Case("Test error counting and reset", test_error_count_and_reset),
|
348 | 349 | Case("Test error encoding, value capture, first and last errors", test_error_capturing),
|
| 350 | +#if MBED_CONF_RTOS_PRESENT |
349 | 351 | Case("Test error context capture", test_error_context_capture),
|
| 352 | +#endif //MBED_CONF_RTOS_PRESENT |
350 | 353 | Case("Test error hook", test_error_hook),
|
351 | 354 | #ifndef MBED_CONF_ERROR_HIST_DISABLED
|
352 | 355 | Case("Test error logging", test_error_logging),
|
| 356 | +#if MBED_CONF_RTOS_PRESENT |
353 | 357 | Case("Test error handling multi-threaded", test_error_logging_multithread),
|
| 358 | +#endif //MBED_CONF_RTOS_PRESENT |
354 | 359 | #ifdef MBED_TEST_SIM_BLOCKDEVICE
|
355 | 360 | Case("Test error save log", test_save_error_log),
|
356 |
| -#endif |
357 |
| -#endif |
| 361 | +#endif //MBED_TEST_SIM_BLOCKDEVICE |
| 362 | +#endif //MBED_CONF_ERROR_HIST_DISABLED |
358 | 363 | };
|
359 | 364 |
|
360 | 365 | utest::v1::Specification specification(test_setup, cases);
|
|
0 commit comments