Skip to content

Commit d634862

Browse files
fkjagodzinskiFilip Jagodzinski
authored andcommitted
Tests: Watchdog: Decrease default timeout to 100 ms
1 parent c29cdab commit d634862

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

TESTS/mbed_hal/watchdog/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// Do not set watchdog timeout shorter than 50 ms as it may cause the
4141
// host-test-runner return 'TIMEOUT' instead of 'FAIL' / 'PASS' if watchdog
4242
// performs reset during test suite teardown.
43-
#define WDG_TIMEOUT_MS 500UL
43+
#define WDG_TIMEOUT_MS 100UL
4444

4545
#define MSG_VALUE_DUMMY "0"
4646
#define MSG_VALUE_LEN 24
@@ -243,8 +243,8 @@ Case cases[] = {
243243
test_update_config,
244244
(utest::v1::case_teardown_handler_t) case_teardown_wdg_stop_or_reset),
245245

246-
Case("Init, 500 ms", (utest::v1::case_setup_handler_t) case_setup_sync_on_reset,
247-
test_init<500UL>, (utest::v1::case_teardown_handler_t) case_teardown_sync_on_reset),
246+
Case("Init, 100 ms", (utest::v1::case_setup_handler_t) case_setup_sync_on_reset,
247+
test_init<100UL>, (utest::v1::case_teardown_handler_t) case_teardown_sync_on_reset),
248248
Case("Init, max_timeout", (utest::v1::case_setup_handler_t) case_setup_sync_on_reset,
249249
test_init_max_timeout, (utest::v1::case_teardown_handler_t) case_teardown_sync_on_reset),
250250
};

TESTS/mbed_hal/watchdog_reset/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525
#include "watchdog_reset_tests.h"
2626
#include "mbed.h"
2727

28-
#define TIMEOUT_MS 500UL
2928
#if TARGET_NUMAKER_PFM_NANO130
3029
/* On NUMAKER_PFM_NANO130 target, WDT's clock source is fixed to LIRC, which is more
3130
* inaccurate than other targets. Enlarge this delta define to pass this test. */
31+
#define TIMEOUT_MS 500UL
3232
#define TIMEOUT_DELTA_MS 100UL
3333
#else
34-
#define TIMEOUT_DELTA_MS 50UL
34+
#define TIMEOUT_MS 100UL
35+
#define TIMEOUT_DELTA_MS 10UL
3536
#endif
3637

3738
#define MSG_VALUE_DUMMY "0"

0 commit comments

Comments
 (0)