From: Joe Hershberger Date: Tue, 21 Apr 2015 18:57:20 +0000 (-0500) Subject: test: dm: eth: Skip timeouts on ping tests X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=172a31bf87bf299130a68320f08aa492c34ea3e0;p=u-boot.git 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 Acked-by: Simon Glass --- diff --git a/test/dm/eth.c b/test/dm/eth.c index 4891f3ad34..196eba85a2 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"));