diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-09 09:47:44 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-20 06:27:50 +0300 |
commit | 3884c98c32cd5fb5b5b42185d5d0575659434bbf (patch) | |
tree | e19f19bdea17ed69e35014aed74df9963500bb7f /test/dm/usb.c | |
parent | 9723563aa821e9c9b881dfe6a082f6301ca69826 (diff) | |
download | u-boot-3884c98c32cd5fb5b5b42185d5d0575659434bbf.tar.xz |
dm: usb: Avoid time delays in sandbox tests
Currently the USB tests take around two seconds to run. Remove these
unnecessary time delays so that the tests run quickly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/usb.c')
-rw-r--r-- | test/dm/usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dm/usb.c b/test/dm/usb.c index 9939d837a9..4300bbd5c9 100644 --- a/test/dm/usb.c +++ b/test/dm/usb.c @@ -8,6 +8,8 @@ #include <dm.h> #include <usb.h> #include <asm/io.h> +#include <asm/state.h> +#include <dm/device-internal.h> #include <dm/test.h> #include <test/ut.h> @@ -35,6 +37,7 @@ static int dm_test_usb_flash(struct unit_test_state *uts) block_dev_desc_t *dev_desc; char cmp[1024]; + state_set_skip_delays(true); ut_assertok(usb_init()); ut_assertok(uclass_get_device(UCLASS_MASS_STORAGE, 0, &dev)); ut_assertok(get_device("usb", "0", &dev_desc)); |