]> git.baikalelectronics.ru Git - uboot.git/commit
test: dm: regmap: Fix the long test delay
authorSimon Glass <sjg@chromium.org>
Mon, 10 Dec 2018 00:11:10 +0000 (17:11 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Jan 2019 00:47:13 +0000 (17:47 -0700)
commit6f40a8a0cf651ca7c1b1798ddd63de567835f63c
treefd2091e5077bf8693db4b8c0df9644ec14a119bd
parent1ea45e4994a56ccda9ee9ec74bad9f324f574ed8
test: dm: regmap: Fix the long test delay

At present one of the regmap tests takes 5 seconds to run since it waits
for a timeout. This should be handled using sandbox_timer_add_offset()
which advances time for test purposes.

This requires a little change to make the regmap_read_poll_timeout()
testable.

Update the macro and the test.

Fixes: 9b22f465df ("test: regmap: add regmap_read_poll_timeout test")
Signed-off-by: Simon Glass <sjg@chromium.org>
include/regmap.h
test/dm/regmap.c