Merge branch 'test/enlarge_gptimer_test_threshold_v5.1' into 'release/v5.1'

gptimer: enlarge test threshold (v5.1)

See merge request espressif/esp-idf!23622
This commit is contained in:
morris 2023-05-10 10:39:45 +08:00
commit 6b86fc7ad7

View File

@ -121,7 +121,7 @@ TEST_CASE("gptimer_wallclock_with_various_clock_sources", "[gptimer]")
printf("get raw count of gptimer %d: %llu\r\n", i, value); printf("get raw count of gptimer %d: %llu\r\n", i, value);
// convert the raw count to us // convert the raw count to us
value = value * 1000000 / timer_resolution_hz[i]; value = value * 1000000 / timer_resolution_hz[i];
TEST_ASSERT_UINT_WITHIN(2000, 40000, value); TEST_ASSERT_UINT_WITHIN(2500, 40000, value);
} }
printf("disable timers\r\n"); printf("disable timers\r\n");
for (int i = 0; i < SOC_TIMER_GROUP_TOTAL_TIMERS; i++) { for (int i = 0; i < SOC_TIMER_GROUP_TOTAL_TIMERS; i++) {