Move wide char tests to wcsmbs directory

This commit is contained in:
Ulrich Drepper 2011-09-08 18:01:07 -04:00
parent 4badf7e8d7
commit 762011fe9f
7 changed files with 23 additions and 9 deletions

View File

@ -1,3 +1,16 @@
2011-09-08 Ulrich Drepper <drepper@gmail.com>
* wcsmbs/test-wcscmp.c: Moved from string/*. Adjust.
* wcsmbs/test-wmemcmp.c: Likewise.
* string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
* wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
2011-09-08 Liubov Dmitrieva <liubov.dmitrieva@gmail.com>
* string/Makefile (strop-tests): Add memcmp.
* string/test-wmemcmp.c: New file.
* string/test-memcmp.c: Add wmemcmp support.
2011-09-08 Roland McGrath <roland@hack.frob.com> 2011-09-08 Roland McGrath <roland@hack.frob.com>
[BZ #13153] [BZ #13153]

View File

@ -1,4 +1,4 @@
# Copyright (C) 1991-2002, 2005-2008, 2009, 2010 Free Software Foundation, Inc. # Copyright (C) 1991-2002, 2005-2010, 2011 Free Software Foundation, Inc.
# This file is part of the GNU C Library. # This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or # The GNU C Library is free software; you can redistribute it and/or
@ -46,11 +46,11 @@ routines := strcat strchr strcmp strcoll strcpy strcspn \
# for -fbounded-pointer compiles. Glibc uses memchr for explicit checks. # for -fbounded-pointer compiles. Glibc uses memchr for explicit checks.
o-objects.ob := memcpy.o memset.o memchr.o o-objects.ob := memcpy.o memset.o memchr.o
strop-tests := wcscmp memchr memcmp memcpy memmove mempcpy memset memccpy \ strop-tests := memchr memcmp memcpy memmove mempcpy memset memccpy \
stpcpy stpncpy strcat strchr strcmp strcpy strcspn \ stpcpy stpncpy strcat strchr strcmp strcpy strcspn \
strlen strncmp strncpy strpbrk strrchr strspn memmem \ strlen strncmp strncpy strpbrk strrchr strspn memmem \
strstr strcasestr strnlen strcasecmp strncasecmp \ strstr strcasestr strnlen strcasecmp strncasecmp \
strncat wmemcmp strncat
tests := tester inl-tester noinl-tester testcopy test-ffs \ tests := tester inl-tester noinl-tester testcopy test-ffs \
tst-strlen stratcliff tst-svc tst-inlcall \ tst-strlen stratcliff tst-svc tst-inlcall \
bug-strncat1 bug-strspn1 bug-strpbrk1 tst-bswap \ bug-strncat1 bug-strspn1 bug-strpbrk1 tst-bswap \

View File

@ -1,2 +0,0 @@
#define WIDE 1
#include "test-strcmp.c"

View File

@ -1,2 +0,0 @@
#define WIDE 1
#include "test-memcmp.c"

View File

@ -1,4 +1,4 @@
# Copyright (C) 1995-2000,2002,2003,2004,2005,2006,2007 # Copyright (C) 1995-2000,2002,2003,2004,2005,2006,2007,2011
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# This file is part of the GNU C Library. # This file is part of the GNU C Library.
@ -42,9 +42,10 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \ isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \
isoc99_swscanf isoc99_vswscanf isoc99_swscanf isoc99_vswscanf
strop-tests := wcscmp wmemcmp
tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \ tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \ tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
wcsatcliff wcsatcliff $(addprefix test-,$(strop-tests))
include ../Rules include ../Rules

2
wcsmbs/test-wcscmp.c Normal file
View File

@ -0,0 +1,2 @@
#define WIDE 1
#include "../string/test-strcmp.c"

2
wcsmbs/test-wmemcmp.c Normal file
View File

@ -0,0 +1,2 @@
#define WIDE 1
#include "../string/test-memcmp.c"