diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-19 22:13:34 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-19 22:13:34 -0700 |
commit | 228cfb018a162ad3df239f4cb7f2ed2368b6da5e (patch) | |
tree | 9f5cd75c673ab2f14b9176d061b6488a9c3926a9 /wcsmbs | |
parent | 69f07e5fd1a68cc2d2363394fdab3882b83082b2 (diff) | |
download | glibc-228cfb018a162ad3df239f4cb7f2ed2368b6da5e.tar.gz glibc-228cfb018a162ad3df239f4cb7f2ed2368b6da5e.tar.xz glibc-228cfb018a162ad3df239f4cb7f2ed2368b6da5e.zip |
Add wcsmbs IFUNC tests
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/Makefile | 2 | ||||
-rw-r--r-- | wcsmbs/test-wcschr-ifunc.c | 20 | ||||
-rw-r--r-- | wcsmbs/test-wcscmp-ifunc.c | 20 | ||||
-rw-r--r-- | wcsmbs/test-wcscpy-ifunc.c | 20 | ||||
-rw-r--r-- | wcsmbs/test-wcslen-ifunc.c | 20 | ||||
-rw-r--r-- | wcsmbs/test-wcsrchr-ifunc.c | 20 | ||||
-rw-r--r-- | wcsmbs/test-wmemcmp-ifunc.c | 20 |
7 files changed, 122 insertions, 0 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile index 7402ec9fd6..37e379c279 100644 --- a/wcsmbs/Makefile +++ b/wcsmbs/Makefile @@ -45,6 +45,8 @@ strop-tests := wcscmp wmemcmp wcslen wcschr wcsrchr wcscpy 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 $(addprefix test-,$(strop-tests)) +tests-ifunc := $(strop-tests:%=test-%-ifunc) +tests += $(tests-ifunc) include ../Rules diff --git a/wcsmbs/test-wcschr-ifunc.c b/wcsmbs/test-wcschr-ifunc.c new file mode 100644 index 0000000000..f550d51851 --- /dev/null +++ b/wcsmbs/test-wcschr-ifunc.c @@ -0,0 +1,20 @@ +/* Test and measure IFUNC implementations of wcschr function. + Copyright (C) 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define TEST_IFUNC 1 +#include "test-wcschr.c" diff --git a/wcsmbs/test-wcscmp-ifunc.c b/wcsmbs/test-wcscmp-ifunc.c new file mode 100644 index 0000000000..bef97d9a32 --- /dev/null +++ b/wcsmbs/test-wcscmp-ifunc.c @@ -0,0 +1,20 @@ +/* Test and measure IFUNC implementations of wcscmp function. + Copyright (C) 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define TEST_IFUNC 1 +#include "test-wcscmp.c" diff --git a/wcsmbs/test-wcscpy-ifunc.c b/wcsmbs/test-wcscpy-ifunc.c new file mode 100644 index 0000000000..0e38971e36 --- /dev/null +++ b/wcsmbs/test-wcscpy-ifunc.c @@ -0,0 +1,20 @@ +/* Test and measure IFUNC implementations of wcscpy function. + Copyright (C) 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define TEST_IFUNC 1 +#include "test-wcscpy.c" diff --git a/wcsmbs/test-wcslen-ifunc.c b/wcsmbs/test-wcslen-ifunc.c new file mode 100644 index 0000000000..baac78fa47 --- /dev/null +++ b/wcsmbs/test-wcslen-ifunc.c @@ -0,0 +1,20 @@ +/* Test and measure IFUNC implementations of wcslen function. + Copyright (C) 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define TEST_IFUNC 1 +#include "test-wcslen.c" diff --git a/wcsmbs/test-wcsrchr-ifunc.c b/wcsmbs/test-wcsrchr-ifunc.c new file mode 100644 index 0000000000..28a5106c4f --- /dev/null +++ b/wcsmbs/test-wcsrchr-ifunc.c @@ -0,0 +1,20 @@ +/* Test and measure IFUNC implementations of wcsrchr function. + Copyright (C) 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define TEST_IFUNC 1 +#include "test-wcsrchr.c" diff --git a/wcsmbs/test-wmemcmp-ifunc.c b/wcsmbs/test-wmemcmp-ifunc.c new file mode 100644 index 0000000000..a6110b4f9d --- /dev/null +++ b/wcsmbs/test-wmemcmp-ifunc.c @@ -0,0 +1,20 @@ +/* Test and measure IFUNC implementations of wmemcmp function. + Copyright (C) 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ + +#define TEST_IFUNC 1 +#include "test-wmemcmp.c" |