X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=test%2Fdm%2Fcore.c;h=990d390d0150da5edb8b52a6e5887f1d94e68dc4;hb=d38190d14b8c4c71d807785bea47b36952b7888c;hp=7be28e4701124256863fd51f01e80d544c6ba8ad;hpb=8bbb187ba2b565121d1e651dff1842411d1a0027;p=karo-tx-uboot.git diff --git a/test/dm/core.c b/test/dm/core.c index 7be28e4701..990d390d01 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -141,6 +141,7 @@ static int dm_test_autoprobe(struct dm_test_state *dms) ut_assert(uc); ut_asserteq(1, dm_testdrv_op_count[DM_TEST_OP_INIT]); + ut_asserteq(0, dm_testdrv_op_count[DM_TEST_OP_PRE_PROBE]); ut_asserteq(0, dm_testdrv_op_count[DM_TEST_OP_POST_PROBE]); /* The root device should not be activated until needed */ @@ -167,8 +168,12 @@ static int dm_test_autoprobe(struct dm_test_state *dms) ut_assert(dms->root->flags & DM_FLAG_ACTIVATED); } - /* Our 3 dm_test_infox children should be passed to post_probe */ + /* + * Our 3 dm_test_info children should be passed to pre_probe and + * post_probe + */ ut_asserteq(3, dm_testdrv_op_count[DM_TEST_OP_POST_PROBE]); + ut_asserteq(3, dm_testdrv_op_count[DM_TEST_OP_PRE_PROBE]); /* Also we can check the per-device data */ expected_base_add = 0;