aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-06-26 11:27:54 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-01 09:07:34 +0200
commit783d4c0b81889c39a9ddf13b60d0fde4040fb1c0 (patch)
treee676c2383b3b57d4acbf92d728a36b96038baf8b /wcsmbs
parente3b0b3484cac61f9eae373751ac6eaf816a2c9c3 (diff)
downloadglibc-783d4c0b81889c39a9ddf13b60d0fde4040fb1c0.zip
glibc-783d4c0b81889c39a9ddf13b60d0fde4040fb1c0.tar.gz
glibc-783d4c0b81889c39a9ddf13b60d0fde4040fb1c0.tar.bz2
Enhance test coverage for strnlen, wcsnlen
This commit adds string/test-strnlen-nonarray and wcsmbs/test-wcsnlen-nonarray. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/Makefile1
-rw-r--r--wcsmbs/test-wcsnlen-nonarray.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile
index 1cddd8c..c51c9b4 100644
--- a/wcsmbs/Makefile
+++ b/wcsmbs/Makefile
@@ -160,6 +160,7 @@ tests := \
test-wcsncmp \
test-wcsncpy \
test-wcsnlen \
+ test-wcsnlen-nonarray \
test-wcspbrk \
test-wcsrchr \
test-wcsspn \
diff --git a/wcsmbs/test-wcsnlen-nonarray.c b/wcsmbs/test-wcsnlen-nonarray.c
new file mode 100644
index 0000000..a4b21fe
--- /dev/null
+++ b/wcsmbs/test-wcsnlen-nonarray.c
@@ -0,0 +1,5 @@
+#include <wchar.h>
+#define TEST_IDENTIFIER wcsnlen
+#define TEST_NAME "wcsnlen"
+typedef wchar_t CHAR;
+#include "../string/test-Xnlen-nonarray.c"