summaryrefslogtreecommitdiff
path: root/test/dm/test-main.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-08 23:47:44 -0700
committerSimon Glass <sjg@chromium.org>2015-11-19 20:27:50 -0700
commit3884c98c32cd5fb5b5b42185d5d0575659434bbf (patch)
treee19f19bdea17ed69e35014aed74df9963500bb7f /test/dm/test-main.c
parent9723563aa821e9c9b881dfe6a082f6301ca69826 (diff)
downloadu-boot-imx-3884c98c32cd5fb5b5b42185d5d0575659434bbf.zip
u-boot-imx-3884c98c32cd5fb5b5b42185d5d0575659434bbf.tar.gz
u-boot-imx-3884c98c32cd5fb5b5b42185d5d0575659434bbf.tar.bz2
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/test-main.c')
-rw-r--r--test/dm/test-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index 0e43ab9..a36a9c0 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -9,6 +9,7 @@
#include <dm.h>
#include <errno.h>
#include <malloc.h>
+#include <asm/state.h>
#include <dm/test.h>
#include <dm/root.h>
#include <dm/uclass-internal.h>
@@ -113,6 +114,7 @@ static int dm_test_main(const char *test_name)
ut_assertok(dm_scan_fdt(gd->fdt_blob, false));
test->func(uts);
+ state_set_skip_delays(false);
ut_assertok(dm_test_destroy(uts));
}