Message ID | 20230410155934.3503627-5-josimmon@redhat.com |
---|---|
State | New |
Headers | show |
Series | string: Add tests for strdup and strndup (BZ #30266) | expand |
On 10/04/23 12:59, Joe Simmons-Talbott via Libc-alpha wrote: > Enable wide character testcases for wcsdup(). LGTM, thanks. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> > --- > wcsmbs/Makefile | 2 +- > wcsmbs/test-wcsdup.c | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > create mode 100644 wcsmbs/test-wcsdup.c > > diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile > index b12a3b0750..bd39335b0e 100644 > --- a/wcsmbs/Makefile > +++ b/wcsmbs/Makefile > @@ -49,7 +49,7 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \ > > strop-tests := wcscmp wcsncmp wmemcmp wcslen wcschr wcsrchr wcscpy wcsnlen \ > wcpcpy wcsncpy wcpncpy wcscat wcsncat wcschrnul wcsspn wcspbrk \ > - wcscspn wmemchr wmemset > + wcscspn wmemchr wmemset wcsdup > tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \ > tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \ > tst-c16c32-1 wcsatcliff tst-wcstol-locale tst-wcstod-nan-locale \ > 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"
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile index b12a3b0750..bd39335b0e 100644 --- a/wcsmbs/Makefile +++ b/wcsmbs/Makefile @@ -49,7 +49,7 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \ strop-tests := wcscmp wcsncmp wmemcmp wcslen wcschr wcsrchr wcscpy wcsnlen \ wcpcpy wcsncpy wcpncpy wcscat wcsncat wcschrnul wcsspn wcspbrk \ - wcscspn wmemchr wmemset + wcscspn wmemchr wmemset wcsdup tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \ tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \ tst-c16c32-1 wcsatcliff tst-wcstol-locale tst-wcstod-nan-locale \ 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"