]> git.ipfire.org Git - thirdparty/u-boot.git/commit
test: string: add test of new strcasestr() function
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Wed, 8 Jul 2026 20:37:08 +0000 (22:37 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 21 Jul 2026 19:51:07 +0000 (13:51 -0600)
commitd589aa4417c57b2f02f674ccd0ebe4f2ba9bb221
tree406aa82c478fa24cc624af86889037e29bf3b04b
parent13822d7f42706da356368f1389f8de10ac9869a5
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.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
test/lib/string.c