]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Add test function to advance time
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 21 Apr 2015 18:57:18 +0000 (13:57 -0500)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 02:58:18 +0000 (20:58 -0600)
commit909bd6d9729cb0c6ba6b80cdc283bbd3e1e12770
tree8e7c974481e3b8979f76a8f687c09bd04b4b6529
parent905e8f9e53766e606bd4a0ed46d804889e613f32
sandbox: Add test function to advance time

Add a function that maintains an offset to include in the system timer
values returned from the lib/time.c APIs.

This will allow timeouts to be skipped instantly in tests

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
arch/sandbox/include/asm/test.h
board/sandbox/sandbox.c