selftests/nolibc: Add tests for strlcat() and strlcpy()
authorRodrigo Campos <rodrigo@sdfg.com.ar>
Sun, 18 Feb 2024 19:51:06 +0000 (16:51 -0300)
committerThomas Weißschuh <linux@weissschuh.net>
Wed, 10 Apr 2024 21:19:02 +0000 (23:19 +0200)
commit1063649cf531c276740b7f011df2eed82227ba92
treea8fa22fa970973cf51c5d0aeb8701bab31cfce2f
parentfbffce819e5ac151e137f881b89a9c1da0ebb76c
selftests/nolibc: Add tests for strlcat() and strlcpy()

I've verified that the tests matches libbsd's strlcat()/strlcpy()
implementation.

Please note that as strlcat()/strlcpy() are not part of the libc, the
tests are only compiled when using nolibc.

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/nolibc-test.c