about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoe Simmons-Talbott <josimmon@redhat.com>2023-04-21 09:24:25 -0400
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-04-21 10:50:52 -0300
commit0aa5b28a504c6f1f17b387d8147715d1496fff62 (patch)
tree7fa7b04527a542bee135d2c16ad44c113ed06291
parent0c48aa0551151ea201f7f528492e89a0b08a6890 (diff)
downloadglibc-azanella/bz30266.tar.gz
glibc-azanella/bz30266.tar.xz
glibc-azanella/bz30266.zip
wcsmbs: Add wcsdup() tests. (BZ #30266) azanella/bz30266
Enable wide character testcases for wcsdup().

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
-rw-r--r--wcsmbs/Makefile1
-rw-r--r--wcsmbs/test-wcsdup.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile
index 4aa43252d7..0dc264e971 100644
--- a/wcsmbs/Makefile
+++ b/wcsmbs/Makefile
@@ -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
index 0000000000..e39e063d0b
--- /dev/null
+++ b/wcsmbs/test-wcsdup.c
@@ -0,0 +1,2 @@
+#define WIDE 1
+#include "../string/test-strdup.c"