[PATCH u-boot v4 05/36] test/py: improve regular expression for ut subtest symbol matcher

Tom Rini trini at konsulko.com
Tue May 25 02:54:34 CEST 2021


On Thu, May 20, 2021 at 01:23:54PM +0200, Marek Behún wrote:

> Improve the regular expression that matches unittest symbols in
> u-boot.sym.
> 
> Currently we do not enforce no prefix in symbol string, but with the
> soon to come change in linker lists declaring lists and entries with the
> __ADDRESSABLE macro (because of LTO), the symbol file will contain for
> every symbol of the form
>   _u_boot_list_2_ut_X_2_Y
> also symbol
>   __UNIQUE_ID___addressable__u_boot_list_2_ut_X_2_YN,
> (where N at the end is some number).
> 
> In order to avoid matching these additional symbols, ensure that the
> character before "_u_boot_list_2_ut" is not a symbol name character.
> 
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/20a30170/attachment.sig>


More information about the U-Boot mailing list