]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: Drop mallinfo() work-around
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:34:53 +0000 (17:34 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:30 +0000 (09:57 -0500)
This is not needed now. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/dm/test-dm.c
test/test-main.c

index 18877c7ae56601723e43d56e24841a4f199f8e0c..d1d83e34782c5e7112b9a4c02ddd6a4067b671d5 100644 (file)
@@ -73,8 +73,6 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
               !of_live ? " (flat tree)" : "");
        ut_assertok(dm_test_init(uts, of_live));
 
-       uts->start = mallinfo();
-
        ut_assertok(test_pre_run(uts, test));
 
        if (!state->show_test_output)
index fe96d739dc417c3b842e2d4ed71a0297d1513c87..db0d82e36c32ad82364d62c4c9f2de1b12970258 100644 (file)
@@ -30,9 +30,7 @@ static int do_autoprobe(struct unit_test_state *uts)
 
 int test_pre_run(struct unit_test_state *uts, struct unit_test *test)
 {
-       /* DM tests have already done this */
-       if (!(test->flags & UT_TESTF_DM))
-               uts->start = mallinfo();
+       uts->start = mallinfo();
 
        if (test->flags & UT_TESTF_SCAN_PDATA)
                ut_assertok(dm_scan_plat(false));