acpi: Add a method to write tables for a device
[oweals/u-boot.git] / test / dm / eth.c
index 850eabb9dc56c626d3f8e0b3ce9a889dcd1a8a27..ad5354b4bfbf5586faed4df1aad6df7e405890c1 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <env.h>
 #include <fdtdec.h>
 #include <malloc.h>
 #include <net.h>
@@ -237,7 +238,7 @@ static int _dm_test_net_retry(struct unit_test_state *uts)
        env_set("ethact", "eth@10004000");
        env_set("netretry", "no");
        sandbox_eth_skip_timeout();
-       ut_asserteq(-ETIMEDOUT, net_loop(PING));
+       ut_asserteq(-ENONET, net_loop(PING));
        ut_asserteq_str("eth@10004000", env_get("ethact"));
 
        return 0;