summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-04-21 13:57:20 -0500
committerSimon Glass <sjg@chromium.org>2015-05-05 20:58:18 -0600
commit172a31bf87bf299130a68320f08aa492c34ea3e0 (patch)
treec1378125021749e815ad13f6d63dac209c3b07d4 /test/dm
parent6f2707c6b135681f821b55cac484a7512f5fe79a (diff)
downloadu-boot-imx-172a31bf87bf299130a68320f08aa492c34ea3e0.zip
u-boot-imx-172a31bf87bf299130a68320f08aa492c34ea3e0.tar.gz
u-boot-imx-172a31bf87bf299130a68320f08aa492c34ea3e0.tar.bz2
test: dm: eth: Skip timeouts on ping tests
Indicate to the emulated sandbox Ethernet driver when we expect a timeout and tell it to leap forward. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dm/eth.c b/test/dm/eth.c
index 4891f3a..196eba8 100644
--- a/test/dm/eth.c
+++ b/test/dm/eth.c
@@ -135,6 +135,7 @@ static int dm_test_net_retry(struct dm_test_state *dms)
sandbox_eth_disable_response(1, true);
setenv("ethact", "eth@10004000");
setenv("netretry", "yes");
+ sandbox_eth_skip_timeout();
ut_assertok(net_loop(PING));
ut_asserteq_str("eth@10002000", getenv("ethact"));
@@ -144,6 +145,7 @@ static int dm_test_net_retry(struct dm_test_state *dms)
*/
setenv("ethact", "eth@10004000");
setenv("netretry", "no");
+ sandbox_eth_skip_timeout();
ut_asserteq(-ETIMEDOUT, net_loop(PING));
ut_asserteq_str("eth@10004000", getenv("ethact"));