[PATCH 7/8] test: string: add test of new strcasestr() function

Simon Glass sjg at chromium.org
Thu Jul 2 10:30:08 CEST 2026


On 2026-07-01T17:15:27, Rasmus Villemoes <rv at rasmusvillemoes.dk> wrote:
> test: string: add test of new strcasestr() function
>
> Change the existing strstr() test a little so that the substring not
> found is 'bits', i.e. one that is actually found when doing case
> insensitive search.
>
> Then copy all of lib_strstr(), adapt the expectation for the
> strcasestr(s1, s3) result, and add another "not found" case.
>
> Signed-off-by: Rasmus Villemoes <rv at rasmusvillemoes.dk>
>
> test/lib/string.c | 24 +++++++++++++++++++++---
>  1 file changed, 21 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list