All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] rtc: Work around race conditions
@ 2022-08-01 13:58 Simon Glass
  2022-08-01 13:58 ` [PATCH 1/5] dm: rtc: Make use of ut_assertnonnull() Simon Glass
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Simon Glass @ 2022-08-01 13:58 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Heinrich Schuchardt, Tom Rini, Simon Glass, Andrew Scull,
	Marek Vasut, Pavel Herrmann, Rui Miguel Silva

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(-)

-- 
2.37.1.455.g008518b4e5-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-09-03  1:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 13:58 [PATCH 0/5] rtc: Work around race conditions Simon Glass
2022-08-01 13:58 ` [PATCH 1/5] dm: rtc: Make use of ut_assertnonnull() Simon Glass
2022-09-03  1:55   ` Tom Rini
2022-08-01 13:58 ` [PATCH 2/5] test: Allow running tests multiple times Simon Glass
2022-08-01 13:58 ` [PATCH 3/5] dm: rtc: Avoid a race in the rtc_reset test Simon Glass
2022-08-01 13:58 ` [PATCH 4/5] dm: rtc: Try to avoid a race in rtc_set_get test Simon Glass
2022-08-01 13:58 ` [PATCH 5/5] dm: rtc: Try to handle the localtime() race Simon Glass
2022-08-01 15:00   ` Heinrich Schuchardt
2022-08-01 19:13     ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.