]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:12 +0000 (22:37 +0200)
commit4ec8ca83f7dfd20572a77b258ca82b5c4dd58f95
treef7b11528c84f1980f9ec99559c90c0dab4ea1dd5
parent28f07451dd1d2bd2beef4eadc7bec9440168e0ba
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