diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-05-20 13:23:54 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-24 14:21:30 -0400 |
commit | 6f243e25e6c81a8ab4e98b57fa5b749e0297cac3 (patch) | |
tree | be8cd90770a628e5cb285a435e383a525bc65ab9 /lib/string.c | |
parent | 998929b535cb5503d0183fec9c9371b56bb89aca (diff) | |
download | u-boot-6f243e25e6c81a8ab4e98b57fa5b749e0297cac3.tar.gz |
test/py: improve regular expression for ut subtest symbol matcher
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@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions