]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
wcsmbs: Add wcsdup() tests. (BZ #30266)
authorJoe Simmons-Talbott <josimmon@redhat.com>
Fri, 21 Apr 2023 13:24:25 +0000 (09:24 -0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 21 Apr 2023 13:50:52 +0000 (10:50 -0300)
Enable wide character testcases for wcsdup().

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
wcsmbs/Makefile
wcsmbs/test-wcsdup.c [new file with mode: 0644]

index 4aa43252d7c5deae9861780b3200cf1c2753acdd..0dc264e9714883ec47a08daf8641a1329c28d357 100644 (file)
@@ -127,6 +127,7 @@ tests := \
   test-wcsncat \
   test-wcsncmp \
   test-wcsncpy \
+  test-wcsdup \
   test-wcsnlen \
   test-wcspbrk \
   test-wcsrchr \
diff --git a/wcsmbs/test-wcsdup.c b/wcsmbs/test-wcsdup.c
new file mode 100644 (file)
index 0000000..e39e063
--- /dev/null
@@ -0,0 +1,2 @@
+#define WIDE 1
+#include "../string/test-strdup.c"