
This series includes some patches to work around race conditions in the rtc tests, as well as a mechanism to run unit tests more than once.
With 1000 runs I normally see three failures in the tests addressed here. With this series no failures are seen.
This also includes a work-around for the daylight-saving changeover.
Simon Glass (5): dm: rtc: Make use of ut_assertnonnull() test: Allow running tests multiple times dm: rtc: Avoid a race in the rtc_reset test dm: rtc: Try to avoid a race in rtc_set_get test dm: rtc: Try to handle the localtime() race
arch/sandbox/cpu/spl.c | 2 +- doc/develop/tests_sandbox.rst | 24 ++++++++++++++++ include/test/test.h | 2 ++ include/test/ut.h | 3 +- test/cmd_ut.c | 12 ++++++-- test/dm/rtc.c | 53 +++++++++++++++++++++++++---------- test/dm/test-dm.c | 13 +++++++-- test/test-main.c | 14 +++++++-- 8 files changed, 98 insertions(+), 25 deletions(-)