OVMS3-idf/tools/unit-test-app/components/unity
Ivan Grokhotkov 742f8e7f8a esp_timer: fix occasional failures in "monotonic values" test
1. ref_clock used in unit tests occasionally produces time off by ~100
microseconds shortly after being started. Add a delay to let
ref_clock stabilise, until the cause is found.

2. Reduce roundoff error accumulation which would occasionally cause
the test to fail, by choosing an overflow value which can be divided
by APB frequency.

3. Move time sampling part of the test into an IRAM function to
reduce variations due to cache behavior.

4. Remove calculation of "standard deviation" in the test, as what was
calculated was not actually standard deviation, and it did not add any
useful information.
2019-02-28 20:38:31 +08:00
..
include unit tests: Only initialise tcpip_adapter() when needed by the test 2018-10-17 22:53:46 +00:00
CMakeLists.txt cmake: Add support for test build 2018-10-20 12:07:24 +08:00
component.mk build system: Add a compatible old GCC flag 2018-09-20 18:53:14 +08:00
Kconfig unity: allow test task stack size to be configured 2018-06-11 23:26:56 +08:00
license.txt add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
ref_clock.c esp_timer: fix occasional failures in "monotonic values" test 2019-02-28 20:38:31 +08:00
test_utils.c unit tests: Only initialise tcpip_adapter() when needed by the test 2018-10-17 22:53:46 +00:00
unity.c test: update the format of TEST_ASSERT macro series in `unity.c` 2017-09-27 19:56:46 +08:00
unity_platform.c unit tests: Only initialise tcpip_adapter() when needed by the test 2018-10-17 22:53:46 +00:00