aboutsummaryrefslogtreecommitdiff
path: root/test/dm/virtio.c
diff options
context:
space:
mode:
authorSimon Glass2020-07-28 19:41:12 -0600
committerTom Rini2020-08-07 22:31:32 -0400
commite180c2b129016baf21086eca73767844e7eff185 (patch)
tree9024230dcb1a4f3480cc18a4bed4e965ff406d51 /test/dm/virtio.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/virtio.c')
-rw-r--r--test/dm/virtio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dm/virtio.c b/test/dm/virtio.c
index 6361cd53339..2e876c36e43 100644
--- a/test/dm/virtio.c
+++ b/test/dm/virtio.c
@@ -36,7 +36,7 @@ static int dm_test_virtio_base(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_virtio_base, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_virtio_base, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
/* Test all of the virtio uclass ops */
static int dm_test_virtio_all_ops(struct unit_test_state *uts)
@@ -85,7 +85,7 @@ static int dm_test_virtio_all_ops(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_virtio_all_ops, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_virtio_all_ops, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
/* Test of the virtio driver that does not have required driver ops */
static int dm_test_virtio_missing_ops(struct unit_test_state *uts)
@@ -103,7 +103,7 @@ static int dm_test_virtio_missing_ops(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_virtio_missing_ops, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_virtio_missing_ops, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);
/* Test removal of virtio device driver */
static int dm_test_virtio_remove(struct unit_test_state *uts)
@@ -127,4 +127,4 @@ static int dm_test_virtio_remove(struct unit_test_state *uts)
return 0;
}
-DM_TEST(dm_test_virtio_remove, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);
+DM_TEST(dm_test_virtio_remove, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);