aboutsummaryrefslogtreecommitdiff
path: root/string/Makefile
diff options
context:
space:
mode:
authorJoe Simmons-Talbott <josimmon@redhat.com>2023-04-21 09:24:24 -0400
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-04-21 10:50:42 -0300
commit0c48aa0551151ea201f7f528492e89a0b08a6890 (patch)
treec31ae037cb2d5613832d9b64b826394c6d49f5f4 /string/Makefile
parenteaaad78db41724e5a18a42becb238bfc4e683998 (diff)
downloadglibc-0c48aa0551151ea201f7f528492e89a0b08a6890.zip
glibc-0c48aa0551151ea201f7f528492e89a0b08a6890.tar.gz
glibc-0c48aa0551151ea201f7f528492e89a0b08a6890.tar.bz2
string: Add tests for strndup (BZ #30266)
Copy strncpy tests for strndup. Covers some basic testcases with random strings. Remove tests that set the destination's bytes and checked the resulting buffer's bytes. Remove wide character test support since wcsndup() doesn't exist. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'string/Makefile')
-rw-r--r--string/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/string/Makefile b/string/Makefile
index 472e318..2eef6f1 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -163,6 +163,7 @@ tests := \
test-strncat \
test-strncmp \
test-strncpy \
+ test-strndup \
test-strnlen \
test-strpbrk \
test-strrchr \