[U-Boot] [PATCH] test: call lmb tests vi 'ut lib'

Simon Goldschmidt simon.k.r.goldschmidt at gmail.com
Mon Feb 11 21:35:09 UTC 2019


Am Mo., 11. Feb. 2019, 22:27 hat Heinrich Schuchardt <xypron.glpk at gmx.de>
geschrieben:

> On 2/11/19 8:58 PM, Simon Goldschmidt wrote:
> > The unit tests in test/lib/lmb.c are not related to the device tree.
> > So they should be executed via `ut lib` and not via `ut dm`.
> >
> > Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> > ---
>
> With sandbox_defconfig:
>
> ./u-boot -D
> => ut lib
> Running 12 lib tests
> Test: lib_memcpy
> Test: lib_memmove
> Test: lib_memset
> Test: lib_test_lmb_alloc_addr
> ERROR: Failed to allocate 0x1 bytes below 0x0.
> ERROR: Failed to allocate 0x1 bytes below 0x0.
> Test: lib_test_lmb_at_0
> ERROR: Failed to allocate 0x4 bytes below 0x0.
> Test: lib_test_lmb_big
> ERROR: Failed to allocate 0x10000000 bytes below 0x0.
> ERROR: Failed to allocate 0x20000000 bytes below 0x0.
> ERROR: Failed to allocate 0x10000000 bytes below 0x0.
> ERROR: Failed to allocate 0x20000000 bytes below 0x0.
> Test: lib_test_lmb_get_free_size
> Test: lib_test_lmb_noreserved
> Test: lib_test_lmb_overlapping_reserve
> Test: lib_test_lmb_simple
> Test: lib_test_lmb_simple_x2
> Test: lib_test_lmb_unaligned_size
> Failures: 0
> =>
>

Well, these are not test errors but output of the functions the test calls.
That could be improved...


> Without your patch
>
> => ut dm
>
> simply hangs. So I cannot judge if these are new errors.
>

Hmm, I have no idea what's wrong when it hangs. I ran 'ut dm' about a week
or two ago and it worked for me...

Regards,
Simon


More information about the U-Boot mailing list