summaryrefslogtreecommitdiff
path: root/test/dm/eth.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-28 19:41:12 -0600
committerTom Rini <trini@konsulko.com>2020-08-07 22:31:32 -0400
commite180c2b129016baf21086eca73767844e7eff185 (patch)
tree9024230dcb1a4f3480cc18a4bed4e965ff406d51 /test/dm/eth.c
parentbd34715599c17e0d3f09af1cdfba8af120bc8602 (diff)
dm: Rename DM test flags to make them more generic
The test flags used by driver model are currently not available to other tests. Rather than creating two sets of flags, make these flags generic by changing the DM_ prefix to UT_ and moving them to the test.h header. This will allow adding other test flags without confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/eth.c')
-rw-r--r--test/dm/eth.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/dm/eth.c b/test/dm/eth.c
index 1a3eb1839c..fa8a69da70 100644
--- a/test/dm/eth.c
+++ b/test/dm/eth.c
@@ -40,7 +40,7 @@ static int dm_test_eth(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_eth, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth, UT_TESTF_SCAN_FDT);
static int dm_test_eth_alias(struct unit_test_state *uts)
{
@@ -64,7 +64,7 @@ static int dm_test_eth_alias(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_eth_alias, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth_alias, UT_TESTF_SCAN_FDT);
static int dm_test_eth_prime(struct unit_test_state *uts)
{
@@ -84,7 +84,7 @@ static int dm_test_eth_prime(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_eth_prime, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth_prime, UT_TESTF_SCAN_FDT);
/**
* This test case is trying to test the following scenario:
@@ -145,7 +145,7 @@ static int dm_test_eth_act(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_eth_act, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth_act, UT_TESTF_SCAN_FDT);
/* The asserts include a return on fail; cleanup in the caller */
static int _dm_test_eth_rotate1(struct unit_test_state *uts)
@@ -217,7 +217,7 @@ static int dm_test_eth_rotate(struct unit_test_state *uts)
return retval;
}
-DM_TEST(dm_test_eth_rotate, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth_rotate, UT_TESTF_SCAN_FDT);
/* The asserts include a return on fail; cleanup in the caller */
static int _dm_test_net_retry(struct unit_test_state *uts)
@@ -260,7 +260,7 @@ static int dm_test_net_retry(struct unit_test_state *uts)
return retval;
}
-DM_TEST(dm_test_net_retry, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_net_retry, UT_TESTF_SCAN_FDT);
static int sb_check_arp_reply(struct udevice *dev, void *packet,
unsigned int len)
@@ -345,7 +345,7 @@ static int dm_test_eth_async_arp_reply(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_eth_async_arp_reply, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth_async_arp_reply, UT_TESTF_SCAN_FDT);
static int sb_check_ping_reply(struct udevice *dev, void *packet,
unsigned int len)
@@ -430,4 +430,4 @@ static int dm_test_eth_async_ping_reply(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_eth_async_ping_reply, DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_eth_async_ping_reply, UT_TESTF_SCAN_FDT);