uClibc-ng - small C library for embedded systems branch master updated. v1.0.19-2-g99ef271
by wbx@helium.openadk.org
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 99ef2719fb3d703fe38c4113cd7f5adec516dd3a (commit)
from 543308f6c46cf2edf8a524bc9c631e472570fe72 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 99ef2719fb3d703fe38c4113cd7f5adec516dd3a
Author: Waldemar Brodkorb <wbx(a)uclibc-ng.org>
Date: Fri Oct 28 20:29:21 2016 +0200
test: remove test suite
The test suite is now a developed in a separate git repository.
See here:
http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git
The test suite should be just like every other software compiled
with the cross-toolchain. In the past strange problems where found
when the test suite got build in the toolchain creation step.
-----------------------------------------------------------------------
Summary of changes:
Makefile.help | 2 -
Makefile.in | 13 -
Makerules | 2 +-
docs/PORTING | 2 +-
test/.gitignore | 334 -
test/Makefile | 91 -
test/README | 87 -
test/Rules.mak | 165 -
test/Test.mak | 155 -
test/argp/Makefile | 8 -
test/argp/Makefile.in | 10 -
test/argp/argp-ex1.c | 15 -
test/argp/argp-ex2.c | 45 -
test/argp/argp-ex3.c | 153 -
test/argp/argp-ex4.c | 167 -
test/argp/argp-test.c | 208 -
test/argp/bug-argp1.c | 26 -
test/argp/tst-argp1.c | 117 -
test/argp/tst-argp2.c | 100 -
test/args/Makefile | 8 -
test/args/Makefile.in | 9 -
test/args/arg_test.c | 40 -
test/args/arg_test.out.good | 13 -
test/args/arg_test_glibc.out.good | 13 -
test/assert/Makefile | 8 -
test/assert/Makefile.in | 5 -
test/assert/assert.c | 47 -
test/build/Makefile | 8 -
test/build/check_config_options.sh | 21 -
test/crypt/Makefile | 8 -
test/crypt/Makefile.in | 15 -
test/crypt/crypt.c | 103 -
test/crypt/crypt.input | 171 -
test/crypt/crypt.out.good | 172 -
test/crypt/md5c-test.c | 19 -
test/crypt/sha256c-test.c | 62 -
test/crypt/sha512c-test.c | 63 -
test/ctype/Makefile | 8 -
test/ctype/Makefile.in | 4 -
test/ctype/ctype.c | 250 -
test/dlopen/Makefile | 8 -
test/dlopen/Makefile.in | 84 -
test/dlopen/dladdr.c | 25 -
test/dlopen/dlafk.c | 36 -
test/dlopen/dlstatic.c | 43 -
test/dlopen/dltest.c | 41 -
test/dlopen/dltest2.c | 1 -
test/dlopen/dlundef.c | 29 -
test/dlopen/libA.c | 7 -
test/dlopen/libB.c | 7 -
test/dlopen/libC.c | 30 -
test/dlopen/libafk-temp.c | 1 -
test/dlopen/libafk.c | 1 -
test/dlopen/libstatic.c | 15 -
test/dlopen/libtest.c | 11 -
test/dlopen/libtest1.c | 40 -
test/dlopen/libtest2.c | 38 -
test/dlopen/libtest3.c | 1 -
test/dlopen/libundef.c | 1 -
test/dlopen/nodelete.c | 205 -
test/dlopen/nodelete1.c | 59 -
test/dlopen/nodelmod1.c | 10 -
test/dlopen/nodelmod2.c | 10 -
test/dlopen/nodelmod3.c | 8 -
test/dlopen/nodelmod4.c | 10 -
test/dlopen/test1.c | 33 -
test/dlopen/test2.c | 39 -
test/dlopen/test3.c | 13 -
test/dlopen/testscope.c | 29 -
test/dlopen/tst-origin.c | 37 -
test/inet/Makefile | 8 -
test/inet/Makefile.in | 17 -
test/inet/bug-if1.c | 53 -
test/inet/gethost.c | 40 -
test/inet/gethost_r-align.c | 50 -
test/inet/gethostid.c | 6 -
test/inet/getnetent.c | 17 -
test/inet/if_nameindex.c | 61 -
test/inet/tst-aton.c | 80 -
test/inet/tst-ether_aton.c | 46 -
test/inet/tst-ethers-line.c | 55 -
test/inet/tst-ethers.c | 37 -
test/inet/tst-ifaddrs.c | 99 -
test/inet/tst-network.c | 104 -
test/inet/tst-ntoa.c | 36 -
test/inet/tst-res.c | 44 -
test/inet/tst-sock-nonblock.c | 53 -
test/librt/Makefile | 8 -
test/librt/Makefile.in | 8 -
test/librt/shmtest.c | 104 -
test/locale-mbwc/Makefile | 8 -
test/locale-mbwc/Makefile.in | 30 -
test/locale-mbwc/dat_isw-funcs.h | 37 -
test/locale-mbwc/dat_iswalnum.c | 196 -
test/locale-mbwc/dat_iswalpha.c | 169 -
test/locale-mbwc/dat_iswcntrl.c | 125 -
test/locale-mbwc/dat_iswctype.c | 667 --
test/locale-mbwc/dat_iswdigit.c | 125 -
test/locale-mbwc/dat_iswgraph.c | 167 -
test/locale-mbwc/dat_iswlower.c | 96 -
test/locale-mbwc/dat_iswprint.c | 170 -
test/locale-mbwc/dat_iswpunct.c | 155 -
test/locale-mbwc/dat_iswspace.c | 129 -
test/locale-mbwc/dat_iswupper.c | 94 -
test/locale-mbwc/dat_iswxdigit.c | 125 -
test/locale-mbwc/dat_mblen.c | 137 -
test/locale-mbwc/dat_mbrlen.c | 222 -
test/locale-mbwc/dat_mbrtowc.c | 140 -
test/locale-mbwc/dat_mbsrtowcs.c | 180 -
test/locale-mbwc/dat_mbstowcs.c | 190 -
test/locale-mbwc/dat_mbtowc.c | 444 --
test/locale-mbwc/dat_strcoll.c | 209 -
test/locale-mbwc/dat_strfmon.c | 268 -
test/locale-mbwc/dat_strxfrm.c | 147 -
test/locale-mbwc/dat_swscanf.c | 185 -
test/locale-mbwc/dat_tow-funcs.h | 24 -
test/locale-mbwc/dat_towctrans.c | 97 -
test/locale-mbwc/dat_towlower.c | 47 -
test/locale-mbwc/dat_towupper.c | 47 -
test/locale-mbwc/dat_wcrtomb.c | 122 -
test/locale-mbwc/dat_wcscat.c | 116 -
test/locale-mbwc/dat_wcschr.c | 94 -
test/locale-mbwc/dat_wcscmp.c | 137 -
test/locale-mbwc/dat_wcscoll.c | 210 -
test/locale-mbwc/dat_wcscpy.c | 44 -
test/locale-mbwc/dat_wcscspn.c | 164 -
test/locale-mbwc/dat_wcslen.c | 62 -
test/locale-mbwc/dat_wcsncat.c | 158 -
test/locale-mbwc/dat_wcsncmp.c | 144 -
test/locale-mbwc/dat_wcsncpy.c | 119 -
test/locale-mbwc/dat_wcspbrk.c | 176 -
test/locale-mbwc/dat_wcsrtombs.c | 272 -
test/locale-mbwc/dat_wcsspn.c | 179 -
test/locale-mbwc/dat_wcsstr.c | 175 -
test/locale-mbwc/dat_wcstod.c | 78 -
test/locale-mbwc/dat_wcstok.c | 138 -
test/locale-mbwc/dat_wcstombs.c | 271 -
test/locale-mbwc/dat_wcswidth.c | 263 -
test/locale-mbwc/dat_wcsxfrm.c | 102 -
test/locale-mbwc/dat_wctob.c | 61 -
test/locale-mbwc/dat_wctomb.c | 168 -
test/locale-mbwc/dat_wctrans.c | 99 -
test/locale-mbwc/dat_wctype.c | 189 -
test/locale-mbwc/dat_wcwidth.c | 149 -
test/locale-mbwc/tgn_funcdef.h | 160 -
test/locale-mbwc/tgn_locdef.h | 32 -
test/locale-mbwc/tsp_common.c | 64 -
test/locale-mbwc/tst2_mbrtowc.c | 21 -
test/locale-mbwc/tst_funcs.h | 294 -
test/locale-mbwc/tst_iswalnum.c | 10 -
test/locale-mbwc/tst_iswalpha.c | 10 -
test/locale-mbwc/tst_iswcntrl.c | 10 -
test/locale-mbwc/tst_iswctype.c | 53 -
test/locale-mbwc/tst_iswdigit.c | 11 -
test/locale-mbwc/tst_iswgraph.c | 10 -
test/locale-mbwc/tst_iswlower.c | 10 -
test/locale-mbwc/tst_iswprint.c | 10 -
test/locale-mbwc/tst_iswpunct.c | 10 -
test/locale-mbwc/tst_iswspace.c | 10 -
test/locale-mbwc/tst_iswupper.c | 10 -
test/locale-mbwc/tst_iswxdigit.c | 10 -
test/locale-mbwc/tst_mblen.c | 85 -
test/locale-mbwc/tst_mbrlen.c | 82 -
test/locale-mbwc/tst_mbrtowc.c | 96 -
test/locale-mbwc/tst_mbsrtowcs.c | 109 -
test/locale-mbwc/tst_mbstowcs.c | 98 -
test/locale-mbwc/tst_mbtowc.c | 130 -
test/locale-mbwc/tst_strcoll.c | 87 -
test/locale-mbwc/tst_strfmon.c | 74 -
test/locale-mbwc/tst_strxfrm.c | 136 -
test/locale-mbwc/tst_swscanf.c | 137 -
test/locale-mbwc/tst_towctrans.c | 82 -
test/locale-mbwc/tst_towlower.c | 11 -
test/locale-mbwc/tst_towupper.c | 10 -
test/locale-mbwc/tst_types.h | 729 ---
test/locale-mbwc/tst_wcrtomb.c | 79 -
test/locale-mbwc/tst_wcscat.c | 78 -
test/locale-mbwc/tst_wcschr.c | 70 -
test/locale-mbwc/tst_wcscmp.c | 40 -
test/locale-mbwc/tst_wcscoll.c | 76 -
test/locale-mbwc/tst_wcscpy.c | 85 -
test/locale-mbwc/tst_wcscspn.c | 38 -
test/locale-mbwc/tst_wcslen.c | 31 -
test/locale-mbwc/tst_wcsncat.c | 75 -
test/locale-mbwc/tst_wcsncmp.c | 40 -
test/locale-mbwc/tst_wcsncpy.c | 93 -
test/locale-mbwc/tst_wcspbrk.c | 80 -
test/locale-mbwc/tst_wcsrtombs.c | 127 -
test/locale-mbwc/tst_wcsspn.c | 38 -
test/locale-mbwc/tst_wcsstr.c | 86 -
test/locale-mbwc/tst_wcstod.c | 69 -
test/locale-mbwc/tst_wcstok.c | 96 -
test/locale-mbwc/tst_wcstombs.c | 115 -
test/locale-mbwc/tst_wcswidth.c | 39 -
test/locale-mbwc/tst_wcsxfrm.c | 122 -
test/locale-mbwc/tst_wctob.c | 37 -
test/locale-mbwc/tst_wctomb.c | 99 -
test/locale-mbwc/tst_wctrans.c | 52 -
test/locale-mbwc/tst_wctype.c | 48 -
test/locale-mbwc/tst_wcwidth.c | 38 -
test/locale/Makefile | 8 -
test/locale/Makefile.in | 29 -
test/locale/bug-iconv-trans.c | 68 -
test/locale/bug-usesetlocale.c | 38 -
test/locale/collate-test.c | 132 -
test/locale/dump-ctype.c | 163 -
test/locale/gen-unicode-ctype.c | 784 ---
test/locale/show-ucs-data.c | 62 -
test/locale/tst-C-locale.c | 497 --
test/locale/tst-ctype-de_DE.ISO-8859-1.in | 56 -
test/locale/tst-ctype.c | 446 --
test/locale/tst-digits.c | 248 -
test/locale/tst-fmon.c | 67 -
test/locale/tst-langinfo.c | 283 -
test/locale/tst-langinfo.input | 302 -
test/locale/tst-leaks.c | 18 -
test/locale/tst-mbswcs1.c | 62 -
test/locale/tst-mbswcs2.c | 64 -
test/locale/tst-mbswcs3.c | 75 -
test/locale/tst-mbswcs4.c | 62 -
test/locale/tst-mbswcs5.c | 74 -
test/locale/tst-mbswcs6.c | 73 -
test/locale/tst-numeric.c | 73 -
test/locale/tst-rpmatch.c | 36 -
test/locale/tst-setlocale.c | 25 -
test/locale/tst-sscanf.c | 56 -
test/locale/tst-strfmon1.c | 42 -
test/locale/tst-trans.c | 70 -
test/locale/tst-wctype.c | 143 -
test/locale/tst-xlocale1.c | 75 -
test/locale/tst-xlocale2.c | 64 -
test/locale/tst_nl_langinfo.c | 296 -
test/locale/xfrm-test.c | 143 -
test/malloc/Makefile | 8 -
test/malloc/Makefile.in | 16 -
test/malloc/malloc-standard-alignment.c | 42 -
test/malloc/malloc.c | 81 -
test/malloc/mallocbug.c | 67 -
test/malloc/realloc-can-shrink.c | 17 -
test/malloc/realloc0.c | 13 -
test/malloc/testmalloc.c | 101 -
test/malloc/time_malloc.c | 62 -
test/malloc/tst-asprintf.c | 27 -
test/malloc/tst-calloc.c | 127 -
test/malloc/tst-malloc.c | 72 -
test/malloc/tst-mallocfork.c | 51 -
test/malloc/tst-mcheck.c | 95 -
test/malloc/tst-obstack.c | 104 -
test/malloc/tst-valloc.c | 23 -
test/math/Makefile | 8 -
test/math/Makefile.in | 46 -
test/math/basic-test.c | 161 -
test/math/c99_test.c | 116 -
test/math/compile_test.c | 141 -
test/math/fenv.h | 3 -
test/math/gamma.c | 73 -
test/math/gen-libm-test.pl | 737 ---
test/math/ilogb.c | 52 -
test/math/libm-test-ulps-arc | 145 -
test/math/libm-test-ulps-arm | 4989 ---------------
test/math/libm-test-ulps-cris | 145 -
test/math/libm-test-ulps-generic | 5 -
test/math/libm-test-ulps-i386 | 1261 ----
test/math/libm-test-ulps-ia64 | 1146 ----
test/math/libm-test-ulps-microblaze | 145 -
test/math/libm-test-ulps-mips32 | 145 -
test/math/libm-test-ulps-mips64 | 9633 -----------------------------
test/math/libm-test-ulps-nds32 | 145 -
test/math/libm-test-ulps-powerpc | 1336 ----
test/math/libm-test-ulps-sh | 1094 ----
test/math/libm-test-ulps-sparc | 1338 ----
test/math/libm-test-ulps-x86_64 | 1328 ----
test/math/libm-test-ulps-xtensa | 145 -
test/math/libm-test.inc | 5096 ---------------
test/math/rint.c | 33 -
test/math/signgam.c | 28 -
test/math/test-double.c | 33 -
test/math/test-float.c | 33 -
test/math/test-fpucw.c | 42 -
test/math/test-idouble.c | 34 -
test/math/test-ifloat.c | 34 -
test/math/test-ildoubl.c | 34 -
test/math/test-ldouble.c | 33 -
test/math/tst-definitions.c | 46 -
test/misc/Makefile | 8 -
test/misc/Makefile.in | 42 -
test/misc/bug-glob1.c | 92 -
test/misc/bug-glob2.c | 300 -
test/misc/bug-readdir1.c | 37 -
test/misc/dirent.c | 39 -
test/misc/dirent64.c | 1 -
test/misc/fdopen.c | 52 -
test/misc/opendir-tst1.c | 95 -
test/misc/outb.c | 9 -
test/misc/popen.c | 47 -
test/misc/seek.c | 82 -
test/misc/sem.c | 45 -
test/misc/stdarg.c | 23 -
test/misc/tst-fnmatch.c | 443 --
test/misc/tst-fnmatch.input | 754 ---
test/misc/tst-gnuglob.c | 446 --
test/misc/tst-inotify.c | 65 -
test/misc/tst-mkostemps.c | 159 -
test/misc/tst-nftw.c | 57 -
test/misc/tst-scandir.c | 23 -
test/misc/tst-seekdir.c | 79 -
test/misc/tst-statfs.c | 31 -
test/misc/tst-statvfs.c | 26 -
test/misc/tst-utmp.c | 423 --
test/misc/tst-utmpx.c | 2 -
test/mmap/Makefile | 8 -
test/mmap/Makefile.in | 2 -
test/mmap/mmap.c | 73 -
test/mmap/mmap2.c | 46 -
test/mmap/mmap64.c | 29 -
test/mmap/tst-mmap-eofsync.c | 106 -
test/mmap/tst-mmap-fflushsync.c | 99 -
test/mmap/tst-mmap-offend.c | 86 -
test/mmap/tst-mmap-setvbuf.c | 81 -
test/nptl/Makefile | 8 -
test/nptl/Makefile.in | 242 -
test/nptl/eintr.c | 88 -
test/nptl/tst-align.c | 70 -
test/nptl/tst-align2.c | 86 -
test/nptl/tst-align3.c | 56 -
test/nptl/tst-atfork1.c | 120 -
test/nptl/tst-atfork2.c | 156 -
test/nptl/tst-atfork2mod.c | 57 -
test/nptl/tst-attr1.c | 305 -
test/nptl/tst-attr2.c | 316 -
test/nptl/tst-attr3.c | 419 --
test/nptl/tst-barrier1.c | 70 -
test/nptl/tst-barrier2.c | 184 -
test/nptl/tst-barrier3.c | 153 -
test/nptl/tst-barrier4.c | 121 -
test/nptl/tst-basic1.c | 81 -
test/nptl/tst-basic2.c | 120 -
test/nptl/tst-basic3.c | 86 -
test/nptl/tst-basic4.c | 100 -
test/nptl/tst-basic5.c | 73 -
test/nptl/tst-basic6.c | 131 -
test/nptl/tst-basic7.c | 75 -
test/nptl/tst-cancel1.c | 162 -
test/nptl/tst-cancel10.c | 125 -
test/nptl/tst-cancel11.c | 122 -
test/nptl/tst-cancel12.c | 126 -
test/nptl/tst-cancel13.c | 128 -
test/nptl/tst-cancel14.c | 136 -
test/nptl/tst-cancel15.c | 141 -
test/nptl/tst-cancel16.c | 230 -
test/nptl/tst-cancel18.c | 173 -
test/nptl/tst-cancel19.c | 286 -
test/nptl/tst-cancel2.c | 99 -
test/nptl/tst-cancel20.c | 263 -
test/nptl/tst-cancel21.c | 293 -
test/nptl/tst-cancel22.c | 121 -
test/nptl/tst-cancel23.c | 1 -
test/nptl/tst-cancel25.c | 171 -
test/nptl/tst-cancel3.c | 97 -
test/nptl/tst-cancel4.c | 2393 -------
test/nptl/tst-cancel5.c | 1 -
test/nptl/tst-cancel6.c | 78 -
test/nptl/tst-cancel7.c | 208 -
test/nptl/tst-cancel8.c | 142 -
test/nptl/tst-cancel9.c | 125 -
test/nptl/tst-cancelx10.c | 1 -
test/nptl/tst-cancelx11.c | 1 -
test/nptl/tst-cancelx12.c | 1 -
test/nptl/tst-cancelx13.c | 1 -
test/nptl/tst-cancelx14.c | 1 -
test/nptl/tst-cancelx15.c | 1 -
test/nptl/tst-cancelx16.c | 1 -
test/nptl/tst-cancelx18.c | 1 -
test/nptl/tst-cancelx2.c | 1 -
test/nptl/tst-cancelx20.c | 1 -
test/nptl/tst-cancelx21.c | 1 -
test/nptl/tst-cancelx3.c | 1 -
test/nptl/tst-cancelx4.c | 1 -
test/nptl/tst-cancelx6.c | 1 -
test/nptl/tst-cancelx7.c | 1 -
test/nptl/tst-cancelx8.c | 1 -
test/nptl/tst-cancelx9.c | 1 -
test/nptl/tst-cleanup0.c | 75 -
test/nptl/tst-cleanup1.c | 99 -
test/nptl/tst-cleanup2.c | 62 -
test/nptl/tst-cleanup3.c | 97 -
test/nptl/tst-cleanup4.c | 197 -
test/nptl/tst-cleanup4aux.c | 120 -
test/nptl/tst-cleanupx0.c | 1 -
test/nptl/tst-cleanupx1.c | 1 -
test/nptl/tst-cleanupx2.c | 1 -
test/nptl/tst-cleanupx3.c | 1 -
test/nptl/tst-cleanupx4.c | 1 -
test/nptl/tst-clock.c | 123 -
test/nptl/tst-clock1.c | 50 -
test/nptl/tst-clock2.c | 201 -
test/nptl/tst-clock_nanosleep.c | 57 -
test/nptl/tst-cond-deadlock.c | 51 -
test/nptl/tst-cond1.c | 93 -
test/nptl/tst-cond10.c | 172 -
test/nptl/tst-cond11.c | 190 -
test/nptl/tst-cond12.c | 195 -
test/nptl/tst-cond13.c | 2 -
test/nptl/tst-cond14.c | 117 -
test/nptl/tst-cond15.c | 159 -
test/nptl/tst-cond16.c | 104 -
test/nptl/tst-cond17.c | 2 -
test/nptl/tst-cond18.c | 116 -
test/nptl/tst-cond19.c | 75 -
test/nptl/tst-cond2.c | 162 -
test/nptl/tst-cond20.c | 169 -
test/nptl/tst-cond21.c | 3 -
test/nptl/tst-cond22.c | 160 -
test/nptl/tst-cond23.c | 183 -
test/nptl/tst-cond3.c | 112 -
test/nptl/tst-cond4.c | 263 -
test/nptl/tst-cond5.c | 105 -
test/nptl/tst-cond6.c | 233 -
test/nptl/tst-cond7.c | 167 -
test/nptl/tst-cond8.c | 276 -
test/nptl/tst-cond9.c | 149 -
test/nptl/tst-cpuclock1.c | 306 -
test/nptl/tst-cpuclock2.c | 331 -
test/nptl/tst-cputimer1.c | 68 -
test/nptl/tst-cputimer2.c | 83 -
test/nptl/tst-cputimer3.c | 130 -
test/nptl/tst-detach1.c | 55 -
test/nptl/tst-dlsym1.c | 66 -
test/nptl/tst-eintr1.c | 104 -
test/nptl/tst-eintr2.c | 117 -
test/nptl/tst-eintr3.c | 71 -
test/nptl/tst-eintr4.c | 55 -
test/nptl/tst-eintr5.c | 80 -
test/nptl/tst-exec2.c | 153 -
test/nptl/tst-exec3.c | 151 -
test/nptl/tst-exec4.c | 115 -
test/nptl/tst-exit1.c | 78 -
test/nptl/tst-exit2.c | 40 -
test/nptl/tst-exit3.c | 81 -
test/nptl/tst-fini1.c | 34 -
test/nptl/tst-fini1mod.c | 71 -
test/nptl/tst-flock1.c | 92 -
test/nptl/tst-flock2.c | 259 -
test/nptl/tst-fork1.c | 119 -
test/nptl/tst-fork2.c | 89 -
test/nptl/tst-fork3.c | 106 -
test/nptl/tst-fork4.c | 64 -
test/nptl/tst-getpid1.c | 122 -
test/nptl/tst-getpid2.c | 2 -
test/nptl/tst-getpid3.c | 114 -
test/nptl/tst-initializers1-c89.c | 1 -
test/nptl/tst-initializers1-c99.c | 1 -
test/nptl/tst-initializers1-gnu89.c | 1 -
test/nptl/tst-initializers1-gnu99.c | 1 -
test/nptl/tst-initializers1.c | 47 -
test/nptl/tst-join1.c | 82 -
test/nptl/tst-join2.c | 103 -
test/nptl/tst-join3.c | 122 -
test/nptl/tst-join4.c | 124 -
test/nptl/tst-join5.c | 142 -
test/nptl/tst-join6.c | 2 -
test/nptl/tst-key1.c | 88 -
test/nptl/tst-key2.c | 114 -
test/nptl/tst-key3.c | 155 -
test/nptl/tst-key4.c | 136 -
test/nptl/tst-kill1.c | 99 -
test/nptl/tst-kill2.c | 138 -
test/nptl/tst-kill3.c | 158 -
test/nptl/tst-kill4.c | 73 -
test/nptl/tst-kill5.c | 48 -
test/nptl/tst-kill6.c | 161 -
test/nptl/tst-mqueue.h | 83 -
test/nptl/tst-mqueue1.c | 416 --
test/nptl/tst-mqueue2.c | 476 --
test/nptl/tst-mqueue3.c | 243 -
test/nptl/tst-mqueue4.c | 287 -
test/nptl/tst-mqueue5.c | 1013 ---
test/nptl/tst-mqueue6.c | 304 -
test/nptl/tst-mqueue7.c | 108 -
test/nptl/tst-mqueue8.c | 265 -
test/nptl/tst-mqueue9.c | 91 -
test/nptl/tst-mutex1.c | 56 -
test/nptl/tst-mutex2.c | 222 -
test/nptl/tst-mutex3.c | 224 -
test/nptl/tst-mutex4.c | 190 -
test/nptl/tst-mutex5.c | 185 -
test/nptl/tst-mutex5a.c | 2 -
test/nptl/tst-mutex6.c | 54 -
test/nptl/tst-mutex7.c | 120 -
test/nptl/tst-mutex7a.c | 2 -
test/nptl/tst-mutex8.c | 366 --
test/nptl/tst-mutex9.c | 190 -
test/nptl/tst-oddstacklimit.c | 1 -
test/nptl/tst-once1.c | 50 -
test/nptl/tst-once2.c | 103 -
test/nptl/tst-once3.c | 161 -
test/nptl/tst-once4.c | 201 -
test/nptl/tst-oncex3.c | 1 -
test/nptl/tst-oncex4.c | 1 -
test/nptl/tst-popen1.c | 59 -
test/nptl/tst-raise1.c | 61 -
test/nptl/tst-rwlock1.c | 116 -
test/nptl/tst-rwlock10.c | 20 -
test/nptl/tst-rwlock11.c | 20 -
test/nptl/tst-rwlock12.c | 207 -
test/nptl/tst-rwlock13.c | 70 -
test/nptl/tst-rwlock14.c | 168 -
test/nptl/tst-rwlock2.c | 142 -
test/nptl/tst-rwlock2a.c | 2 -
test/nptl/tst-rwlock3.c | 92 -
test/nptl/tst-rwlock4.c | 189 -
test/nptl/tst-rwlock5.c | 86 -
test/nptl/tst-rwlock6.c | 225 -
test/nptl/tst-rwlock7.c | 178 -
test/nptl/tst-rwlock8.c | 163 -
test/nptl/tst-rwlock9.c | 202 -
test/nptl/tst-sched1.c | 97 -
test/nptl/tst-sem1.c | 88 -
test/nptl/tst-sem10.c | 87 -
test/nptl/tst-sem11.c | 76 -
test/nptl/tst-sem12.c | 14 -
test/nptl/tst-sem2.c | 53 -
test/nptl/tst-sem3.c | 144 -
test/nptl/tst-sem4.c | 149 -
test/nptl/tst-sem5.c | 79 -
test/nptl/tst-sem6.c | 80 -
test/nptl/tst-sem7.c | 108 -
test/nptl/tst-sem8.c | 73 -
test/nptl/tst-sem9.c | 80 -
test/nptl/tst-signal1.c | 188 -
test/nptl/tst-signal2.c | 197 -
test/nptl/tst-signal3.c | 260 -
test/nptl/tst-signal4.c | 59 -
test/nptl/tst-signal5.c | 110 -
test/nptl/tst-signal6.c | 191 -
test/nptl/tst-signal7.c | 58 -
test/nptl/tst-spin1.c | 56 -
test/nptl/tst-spin2.c | 158 -
test/nptl/tst-spin3.c | 54 -
test/nptl/tst-stack-align.h | 34 -
test/nptl/tst-stack1.c | 145 -
test/nptl/tst-stack2.c | 79 -
test/nptl/tst-stdio1.c | 56 -
test/nptl/tst-stdio2.c | 81 -
test/nptl/tst-sysconf.c | 47 -
test/nptl/tst-timer2.c | 65 -
test/nptl/tst-timer3.c | 86 -
test/nptl/tst-timer4.c | 647 --
test/nptl/tst-timer5.c | 38 -
test/nptl/tst-tls1.c | 121 -
test/nptl/tst-tls2.c | 215 -
test/nptl/tst-tls3.c | 224 -
test/nptl/tst-tls3mod.c | 105 -
test/nptl/tst-tls4.c | 190 -
test/nptl/tst-tls4moda.c | 55 -
test/nptl/tst-tls4modb.c | 64 -
test/nptl/tst-tls5.c | 118 -
test/nptl/tst-tls5.h | 28 -
test/nptl/tst-tls5mod.c | 6 -
test/nptl/tst-tls5moda.c | 6 -
test/nptl/tst-tls5modb.c | 6 -
test/nptl/tst-tls5modc.c | 6 -
test/nptl/tst-tls5modd.c | 6 -
test/nptl/tst-tls5mode.c | 8 -
test/nptl/tst-tls5modf.c | 9 -
test/nptl/tst-tsd1.c | 117 -
test/nptl/tst-tsd2.c | 96 -
test/nptl/tst-tsd3.c | 128 -
test/nptl/tst-tsd4.c | 102 -
test/nptl/tst-tsd5.c | 80 -
test/nptl/tst-tsd6.c | 89 -
test/nptl/tst-typesizes.c | 95 -
test/nptl/tst-umask1.c | 136 -
test/nptl/tst-unload.c | 46 -
test/nptl/tst-vfork1.c | 149 -
test/nptl/tst-vfork1x.c | 149 -
test/nptl/tst-vfork2.c | 198 -
test/nptl/tst-vfork2x.c | 198 -
test/plt/check-plt.sh | 38 -
test/pthread/Makefile | 8 -
test/pthread/Makefile.in | 10 -
test/pthread/cancellation-points.c | 286 -
test/pthread/ex1.c | 35 -
test/pthread/ex2.c | 113 -
test/pthread/ex3.c | 152 -
test/pthread/ex4.c | 107 -
test/pthread/ex5.c | 102 -
test/pthread/ex6.c | 44 -
test/pthread/ex7.c | 106 -
test/pthread/ex8-mtx-odd.c | 56 -
test/pthread/tst-c99.c | 2 -
test/pthread/tst-join2.c | 103 -
test/pthread/tst-join3.c | 122 -
test/pthread/tst-too-many-cleanups.c | 104 -
test/pwd_grp/.indent.pro | 33 -
test/pwd_grp/Makefile | 8 -
test/pwd_grp/Makefile.in | 8 -
test/pwd_grp/getgroups.c | 100 -
test/pwd_grp/grcat.c | 32 -
test/pwd_grp/pwcat.c | 26 -
test/pwd_grp/test_grp.c | 87 -
test/pwd_grp/test_pwd.c | 74 -
test/regex/LICENSE | 72 -
test/regex/Makefile | 8 -
test/regex/Makefile.in | 6 -
test/regex/basic.dat | 216 -
test/regex/categorize.dat | 62 -
test/regex/forcedassoc.dat | 30 -
test/regex/interpretation.dat | 93 -
test/regex/leftassoc.dat | 16 -
test/regex/nullsubexpr.dat | 73 -
test/regex/repetition.dat | 79 -
test/regex/rightassoc.dat | 16 -
test/regex/testregex.c | 2145 -------
test/regex/tst-regex2.c | 250 -
test/regex/tst-regex2.dat | 2176 -------
test/regex/tst-regexloc.c | 53 -
test/rpc/Makefile | 8 -
test/rpc/Makefile.in | 11 -
test/rpc/getrpcent.c | 18 -
test/rpc/getrpcent_r.c | 25 -
test/setjmp/Makefile | 8 -
test/setjmp/Makefile.in | 0
test/setjmp/bug269-setjmp.c | 106 -
test/setjmp/jmpbug.c | 51 -
test/setjmp/sigjmpbug.c | 51 -
test/setjmp/tst-setjmp.c | 118 -
test/setjmp/tst-vfork-longjmp.c | 108 -
test/signal/.indent.pro | 33 -
test/signal/Makefile | 8 -
test/signal/Makefile.in | 6 -
test/signal/sigchld.c | 68 -
test/signal/signal.c | 95 -
test/signal/tst-raise.c | 62 -
test/signal/tst-signal.c | 44 -
test/signal/tst-signalfd.c | 63 -
test/signal/tst-sigset.c | 45 -
test/signal/tst-sigsimple.c | 56 -
test/silly/Makefile | 8 -
test/silly/Makefile.in | 24 -
test/silly/hello.c | 8 -
test/silly/tiny.c | 6 -
test/silly/tst-atomic-long.c | 27 -
test/silly/tst-atomic.c | 573 --
test/stat/Makefile | 8 -
test/stat/Makefile.in | 13 -
test/stat/memcmp-stat.c | 107 -
test/stat/stat-loop256.c | 32 -
test/stat/stat.c | 71 -
test/stat/stat64.c | 1 -
test/stdio/64bit.c | 12 -
test/stdio/Makefile | 8 -
test/stdio/Makefile.in | 8 -
test/stdio/fclose-loop.c | 21 -
test/stdio/lseek_no_lfs.c | 22 -
test/stdio/scanf_m.c | 27 -
test/stdio/tst-fmemopen.c | 53 -
test/stdlib/Makefile | 8 -
test/stdlib/Makefile.in | 15 -
test/stdlib/ptytest.c | 20 -
test/stdlib/qsort.c | 53 -
test/stdlib/test-canon.c | 251 -
test/stdlib/test-canon2.c | 86 -
test/stdlib/test-mkostemp-O_CLOEXEC.c | 45 -
test/stdlib/test-mkostemp-child.c | 22 -
test/stdlib/testarc4random.c | 10 -
test/stdlib/testatexit.c | 81 -
test/stdlib/teston_exit.c | 82 -
test/stdlib/teststrtol.c | 109 -
test/stdlib/teststrtoq.c | 89 -
test/string/Makefile | 8 -
test/string/Makefile.in | 8 -
test/string/bug-strcoll1.c | 24 -
test/string/bug-strncat1.c | 31 -
test/string/bug-strpbrk1.c | 19 -
test/string/bug-strspn1.c | 19 -
test/string/stratcliff.c | 348 --
test/string/test-ffs.c | 65 -
test/string/testcopy.c | 107 -
test/string/tester.c | 1646 -----
test/string/tst-bswap.c | 73 -
test/string/tst-inlcall.c | 82 -
test/string/tst-memmove.c | 46 -
test/string/tst-strlen.c | 45 -
test/string/tst-strtok.c | 23 -
test/string/tst-strxfrm.c | 80 -
test/termios/Makefile | 8 -
test/termios/termios.c | 25 -
test/test-skeleton.c | 419 --
test/testsuite.h | 101 -
test/time/Makefile | 8 -
test/time/Makefile.in | 22 -
test/time/bug-asctime.c | 40 -
test/time/bug-asctime_r.c | 37 -
test/time/clocktest.c | 36 -
test/time/test_time.c | 115 -
test/time/time.c | 76 -
test/time/tst-ctime.c | 44 -
test/time/tst-ftime_l.c | 136 -
test/time/tst-futimens1.c | 105 -
test/time/tst-mktime.c | 70 -
test/time/tst-mktime2.c | 141 -
test/time/tst-mktime3.c | 50 -
test/time/tst-posixtz.c | 88 -
test/time/tst-strftime.c | 111 -
test/time/tst-strptime.c | 192 -
test/time/tst-strptime2.c | 59 -
test/time/tst-timerfd.c | 71 -
test/time/tst-timezone.c | 169 -
test/time/tst_wcsftime.c | 65 -
test/tls/Makefile | 8 -
test/tls/Makefile.in | 161 -
test/tls/README | 8 -
test/tls/tls-macros-alpha.h | 25 -
test/tls/tls-macros-arc.h | 28 -
test/tls/tls-macros-arm.h | 51 -
test/tls/tls-macros-i386.h | 76 -
test/tls/tls-macros-ia64.h | 63 -
test/tls/tls-macros-metag.h | 38 -
test/tls/tls-macros-mips.h | 64 -
test/tls/tls-macros-powerpc.h | 87 -
test/tls/tls-macros-sh.h | 143 -
test/tls/tls-macros-sparc.h | 67 -
test/tls/tls-macros-thumb.h | 57 -
test/tls/tls-macros-x86_64.h | 40 -
test/tls/tls-macros-xtensa.h | 61 -
test/tls/tls-macros.h | 74 -
test/tls/tst-tls-at-ctor.c | 21 -
test/tls/tst-tls1-static.c | 1 -
test/tls/tst-tls1.c | 92 -
test/tls/tst-tls10.c | 40 -
test/tls/tst-tls10.h | 38 -
test/tls/tst-tls11.c | 27 -
test/tls/tst-tls12.c | 18 -
test/tls/tst-tls13.c | 30 -
test/tls/tst-tls14.c | 66 -
test/tls/tst-tls15.c | 33 -
test/tls/tst-tls16.c | 53 -
test/tls/tst-tls17.c | 29 -
test/tls/tst-tls18.c | 38 -
test/tls/tst-tls2-static.c | 1 -
test/tls/tst-tls2.c | 91 -
test/tls/tst-tls3.c | 76 -
test/tls/tst-tls4.c | 56 -
test/tls/tst-tls5.c | 72 -
test/tls/tst-tls6.c | 107 -
test/tls/tst-tls7.c | 78 -
test/tls/tst-tls8.c | 229 -
test/tls/tst-tls9-static.c | 1 -
test/tls/tst-tls9.c | 42 -
test/tls/tst-tlsmod-at-ctor.c | 25 -
test/tls/tst-tlsmod1.c | 68 -
test/tls/tst-tlsmod10.c | 1 -
test/tls/tst-tlsmod11.c | 6 -
test/tls/tst-tlsmod12.c | 14 -
test/tls/tst-tlsmod13.c | 14 -
test/tls/tst-tlsmod13a.c | 16 -
test/tls/tst-tlsmod14a.c | 41 -
test/tls/tst-tlsmod14b.c | 2 -
test/tls/tst-tlsmod15a.c | 6 -
test/tls/tst-tlsmod15b.c | 17 -
test/tls/tst-tlsmod16a.c | 7 -
test/tls/tst-tlsmod16b.c | 13 -
test/tls/tst-tlsmod17a.c | 23 -
test/tls/tst-tlsmod17b.c | 15 -
test/tls/tst-tlsmod18a.c | 21 -
test/tls/tst-tlsmod2.c | 38 -
test/tls/tst-tlsmod3.c | 41 -
test/tls/tst-tlsmod4.c | 38 -
test/tls/tst-tlsmod5.c | 7 -
test/tls/tst-tlsmod6.c | 7 -
test/tls/tst-tlsmod7.c | 103 -
test/tls/tst-tlsmod8.c | 72 -
test/tls/tst-tlsmod9.c | 101 -
test/uclibcng-testrunner.sh | 62 -
test/unistd/Makefile | 8 -
test/unistd/Makefile.in | 44 -
test/unistd/clone.c | 101 -
test/unistd/clone_cruft.h | 24 -
test/unistd/errno.c | 29 -
test/unistd/exec-null.c | 13 -
test/unistd/fork.c | 91 -
test/unistd/getcwd.c | 39 -
test/unistd/getopt.c | 69 -
test/unistd/getopt_long.c | 93 -
test/unistd/tst-fallocate.c | 166 -
test/unistd/tst-fallocate64.c | 2 -
test/unistd/tst-getconf.sh | 240 -
test/unistd/tst-posix_fallocate.c | 127 -
test/unistd/tst-posix_fallocate64.c | 2 -
test/unistd/tst-preadwrite.c | 104 -
test/unistd/tst-preadwrite64.c | 23 -
test/unistd/tst-pselect.c | 51 -
test/unistd/tstgetopt.c | 76 -
test/unistd/vfork.c | 53 -
795 files changed, 2 insertions(+), 107551 deletions(-)
delete mode 100644 test/.gitignore
delete mode 100644 test/Makefile
delete mode 100644 test/README
delete mode 100644 test/Rules.mak
delete mode 100644 test/Test.mak
delete mode 100644 test/argp/Makefile
delete mode 100644 test/argp/Makefile.in
delete mode 100644 test/argp/argp-ex1.c
delete mode 100644 test/argp/argp-ex2.c
delete mode 100644 test/argp/argp-ex3.c
delete mode 100644 test/argp/argp-ex4.c
delete mode 100644 test/argp/argp-test.c
delete mode 100644 test/argp/bug-argp1.c
delete mode 100644 test/argp/tst-argp1.c
delete mode 100644 test/argp/tst-argp2.c
delete mode 100644 test/args/Makefile
delete mode 100644 test/args/Makefile.in
delete mode 100644 test/args/arg_test.c
delete mode 100644 test/args/arg_test.out.good
delete mode 100644 test/args/arg_test_glibc.out.good
delete mode 100644 test/assert/Makefile
delete mode 100644 test/assert/Makefile.in
delete mode 100644 test/assert/assert.c
delete mode 100644 test/build/Makefile
delete mode 100755 test/build/check_config_options.sh
delete mode 100644 test/crypt/Makefile
delete mode 100644 test/crypt/Makefile.in
delete mode 100644 test/crypt/crypt.c
delete mode 100644 test/crypt/crypt.input
delete mode 100644 test/crypt/crypt.out.good
delete mode 100644 test/crypt/md5c-test.c
delete mode 100644 test/crypt/sha256c-test.c
delete mode 100644 test/crypt/sha512c-test.c
delete mode 100644 test/ctype/Makefile
delete mode 100644 test/ctype/Makefile.in
delete mode 100644 test/ctype/ctype.c
delete mode 100644 test/dlopen/Makefile
delete mode 100644 test/dlopen/Makefile.in
delete mode 100644 test/dlopen/dladdr.c
delete mode 100644 test/dlopen/dlafk.c
delete mode 100644 test/dlopen/dlstatic.c
delete mode 100644 test/dlopen/dltest.c
delete mode 100644 test/dlopen/dltest2.c
delete mode 100644 test/dlopen/dlundef.c
delete mode 100644 test/dlopen/libA.c
delete mode 100644 test/dlopen/libB.c
delete mode 100644 test/dlopen/libC.c
delete mode 100644 test/dlopen/libafk-temp.c
delete mode 100644 test/dlopen/libafk.c
delete mode 100644 test/dlopen/libstatic.c
delete mode 100644 test/dlopen/libtest.c
delete mode 100644 test/dlopen/libtest1.c
delete mode 100644 test/dlopen/libtest2.c
delete mode 100644 test/dlopen/libtest3.c
delete mode 100644 test/dlopen/libundef.c
delete mode 100644 test/dlopen/nodelete.c
delete mode 100644 test/dlopen/nodelete1.c
delete mode 100644 test/dlopen/nodelmod1.c
delete mode 100644 test/dlopen/nodelmod2.c
delete mode 100644 test/dlopen/nodelmod3.c
delete mode 100644 test/dlopen/nodelmod4.c
delete mode 100644 test/dlopen/test1.c
delete mode 100644 test/dlopen/test2.c
delete mode 100644 test/dlopen/test3.c
delete mode 100644 test/dlopen/testscope.c
delete mode 100644 test/dlopen/tst-origin.c
delete mode 100644 test/inet/Makefile
delete mode 100644 test/inet/Makefile.in
delete mode 100644 test/inet/bug-if1.c
delete mode 100644 test/inet/gethost.c
delete mode 100644 test/inet/gethost_r-align.c
delete mode 100644 test/inet/gethostid.c
delete mode 100644 test/inet/getnetent.c
delete mode 100644 test/inet/if_nameindex.c
delete mode 100644 test/inet/tst-aton.c
delete mode 100644 test/inet/tst-ether_aton.c
delete mode 100644 test/inet/tst-ethers-line.c
delete mode 100644 test/inet/tst-ethers.c
delete mode 100644 test/inet/tst-ifaddrs.c
delete mode 100644 test/inet/tst-network.c
delete mode 100644 test/inet/tst-ntoa.c
delete mode 100644 test/inet/tst-res.c
delete mode 100644 test/inet/tst-sock-nonblock.c
delete mode 100644 test/librt/Makefile
delete mode 100644 test/librt/Makefile.in
delete mode 100644 test/librt/shmtest.c
delete mode 100644 test/locale-mbwc/Makefile
delete mode 100644 test/locale-mbwc/Makefile.in
delete mode 100644 test/locale-mbwc/dat_isw-funcs.h
delete mode 100644 test/locale-mbwc/dat_iswalnum.c
delete mode 100644 test/locale-mbwc/dat_iswalpha.c
delete mode 100644 test/locale-mbwc/dat_iswcntrl.c
delete mode 100644 test/locale-mbwc/dat_iswctype.c
delete mode 100644 test/locale-mbwc/dat_iswdigit.c
delete mode 100644 test/locale-mbwc/dat_iswgraph.c
delete mode 100644 test/locale-mbwc/dat_iswlower.c
delete mode 100644 test/locale-mbwc/dat_iswprint.c
delete mode 100644 test/locale-mbwc/dat_iswpunct.c
delete mode 100644 test/locale-mbwc/dat_iswspace.c
delete mode 100644 test/locale-mbwc/dat_iswupper.c
delete mode 100644 test/locale-mbwc/dat_iswxdigit.c
delete mode 100644 test/locale-mbwc/dat_mblen.c
delete mode 100644 test/locale-mbwc/dat_mbrlen.c
delete mode 100644 test/locale-mbwc/dat_mbrtowc.c
delete mode 100644 test/locale-mbwc/dat_mbsrtowcs.c
delete mode 100644 test/locale-mbwc/dat_mbstowcs.c
delete mode 100644 test/locale-mbwc/dat_mbtowc.c
delete mode 100644 test/locale-mbwc/dat_strcoll.c
delete mode 100644 test/locale-mbwc/dat_strfmon.c
delete mode 100644 test/locale-mbwc/dat_strxfrm.c
delete mode 100644 test/locale-mbwc/dat_swscanf.c
delete mode 100644 test/locale-mbwc/dat_tow-funcs.h
delete mode 100644 test/locale-mbwc/dat_towctrans.c
delete mode 100644 test/locale-mbwc/dat_towlower.c
delete mode 100644 test/locale-mbwc/dat_towupper.c
delete mode 100644 test/locale-mbwc/dat_wcrtomb.c
delete mode 100644 test/locale-mbwc/dat_wcscat.c
delete mode 100644 test/locale-mbwc/dat_wcschr.c
delete mode 100644 test/locale-mbwc/dat_wcscmp.c
delete mode 100644 test/locale-mbwc/dat_wcscoll.c
delete mode 100644 test/locale-mbwc/dat_wcscpy.c
delete mode 100644 test/locale-mbwc/dat_wcscspn.c
delete mode 100644 test/locale-mbwc/dat_wcslen.c
delete mode 100644 test/locale-mbwc/dat_wcsncat.c
delete mode 100644 test/locale-mbwc/dat_wcsncmp.c
delete mode 100644 test/locale-mbwc/dat_wcsncpy.c
delete mode 100644 test/locale-mbwc/dat_wcspbrk.c
delete mode 100644 test/locale-mbwc/dat_wcsrtombs.c
delete mode 100644 test/locale-mbwc/dat_wcsspn.c
delete mode 100644 test/locale-mbwc/dat_wcsstr.c
delete mode 100644 test/locale-mbwc/dat_wcstod.c
delete mode 100644 test/locale-mbwc/dat_wcstok.c
delete mode 100644 test/locale-mbwc/dat_wcstombs.c
delete mode 100644 test/locale-mbwc/dat_wcswidth.c
delete mode 100644 test/locale-mbwc/dat_wcsxfrm.c
delete mode 100644 test/locale-mbwc/dat_wctob.c
delete mode 100644 test/locale-mbwc/dat_wctomb.c
delete mode 100644 test/locale-mbwc/dat_wctrans.c
delete mode 100644 test/locale-mbwc/dat_wctype.c
delete mode 100644 test/locale-mbwc/dat_wcwidth.c
delete mode 100644 test/locale-mbwc/tgn_funcdef.h
delete mode 100644 test/locale-mbwc/tgn_locdef.h
delete mode 100644 test/locale-mbwc/tsp_common.c
delete mode 100644 test/locale-mbwc/tst2_mbrtowc.c
delete mode 100644 test/locale-mbwc/tst_funcs.h
delete mode 100644 test/locale-mbwc/tst_iswalnum.c
delete mode 100644 test/locale-mbwc/tst_iswalpha.c
delete mode 100644 test/locale-mbwc/tst_iswcntrl.c
delete mode 100644 test/locale-mbwc/tst_iswctype.c
delete mode 100644 test/locale-mbwc/tst_iswdigit.c
delete mode 100644 test/locale-mbwc/tst_iswgraph.c
delete mode 100644 test/locale-mbwc/tst_iswlower.c
delete mode 100644 test/locale-mbwc/tst_iswprint.c
delete mode 100644 test/locale-mbwc/tst_iswpunct.c
delete mode 100644 test/locale-mbwc/tst_iswspace.c
delete mode 100644 test/locale-mbwc/tst_iswupper.c
delete mode 100644 test/locale-mbwc/tst_iswxdigit.c
delete mode 100644 test/locale-mbwc/tst_mblen.c
delete mode 100644 test/locale-mbwc/tst_mbrlen.c
delete mode 100644 test/locale-mbwc/tst_mbrtowc.c
delete mode 100644 test/locale-mbwc/tst_mbsrtowcs.c
delete mode 100644 test/locale-mbwc/tst_mbstowcs.c
delete mode 100644 test/locale-mbwc/tst_mbtowc.c
delete mode 100644 test/locale-mbwc/tst_strcoll.c
delete mode 100644 test/locale-mbwc/tst_strfmon.c
delete mode 100644 test/locale-mbwc/tst_strxfrm.c
delete mode 100644 test/locale-mbwc/tst_swscanf.c
delete mode 100644 test/locale-mbwc/tst_towctrans.c
delete mode 100644 test/locale-mbwc/tst_towlower.c
delete mode 100644 test/locale-mbwc/tst_towupper.c
delete mode 100644 test/locale-mbwc/tst_types.h
delete mode 100644 test/locale-mbwc/tst_wcrtomb.c
delete mode 100644 test/locale-mbwc/tst_wcscat.c
delete mode 100644 test/locale-mbwc/tst_wcschr.c
delete mode 100644 test/locale-mbwc/tst_wcscmp.c
delete mode 100644 test/locale-mbwc/tst_wcscoll.c
delete mode 100644 test/locale-mbwc/tst_wcscpy.c
delete mode 100644 test/locale-mbwc/tst_wcscspn.c
delete mode 100644 test/locale-mbwc/tst_wcslen.c
delete mode 100644 test/locale-mbwc/tst_wcsncat.c
delete mode 100644 test/locale-mbwc/tst_wcsncmp.c
delete mode 100644 test/locale-mbwc/tst_wcsncpy.c
delete mode 100644 test/locale-mbwc/tst_wcspbrk.c
delete mode 100644 test/locale-mbwc/tst_wcsrtombs.c
delete mode 100644 test/locale-mbwc/tst_wcsspn.c
delete mode 100644 test/locale-mbwc/tst_wcsstr.c
delete mode 100644 test/locale-mbwc/tst_wcstod.c
delete mode 100644 test/locale-mbwc/tst_wcstok.c
delete mode 100644 test/locale-mbwc/tst_wcstombs.c
delete mode 100644 test/locale-mbwc/tst_wcswidth.c
delete mode 100644 test/locale-mbwc/tst_wcsxfrm.c
delete mode 100644 test/locale-mbwc/tst_wctob.c
delete mode 100644 test/locale-mbwc/tst_wctomb.c
delete mode 100644 test/locale-mbwc/tst_wctrans.c
delete mode 100644 test/locale-mbwc/tst_wctype.c
delete mode 100644 test/locale-mbwc/tst_wcwidth.c
delete mode 100644 test/locale/Makefile
delete mode 100644 test/locale/Makefile.in
delete mode 100644 test/locale/bug-iconv-trans.c
delete mode 100644 test/locale/bug-usesetlocale.c
delete mode 100644 test/locale/collate-test.c
delete mode 100644 test/locale/dump-ctype.c
delete mode 100644 test/locale/gen-unicode-ctype.c
delete mode 100644 test/locale/show-ucs-data.c
delete mode 100644 test/locale/tst-C-locale.c
delete mode 100644 test/locale/tst-ctype-de_DE.ISO-8859-1.in
delete mode 100644 test/locale/tst-ctype.c
delete mode 100644 test/locale/tst-digits.c
delete mode 100644 test/locale/tst-fmon.c
delete mode 100644 test/locale/tst-langinfo.c
delete mode 100644 test/locale/tst-langinfo.input
delete mode 100644 test/locale/tst-leaks.c
delete mode 100644 test/locale/tst-mbswcs1.c
delete mode 100644 test/locale/tst-mbswcs2.c
delete mode 100644 test/locale/tst-mbswcs3.c
delete mode 100644 test/locale/tst-mbswcs4.c
delete mode 100644 test/locale/tst-mbswcs5.c
delete mode 100644 test/locale/tst-mbswcs6.c
delete mode 100644 test/locale/tst-numeric.c
delete mode 100644 test/locale/tst-rpmatch.c
delete mode 100644 test/locale/tst-setlocale.c
delete mode 100644 test/locale/tst-sscanf.c
delete mode 100644 test/locale/tst-strfmon1.c
delete mode 100644 test/locale/tst-trans.c
delete mode 100644 test/locale/tst-wctype.c
delete mode 100644 test/locale/tst-xlocale1.c
delete mode 100644 test/locale/tst-xlocale2.c
delete mode 100644 test/locale/tst_nl_langinfo.c
delete mode 100644 test/locale/xfrm-test.c
delete mode 100644 test/malloc/Makefile
delete mode 100644 test/malloc/Makefile.in
delete mode 100644 test/malloc/malloc-standard-alignment.c
delete mode 100644 test/malloc/malloc.c
delete mode 100644 test/malloc/mallocbug.c
delete mode 100644 test/malloc/realloc-can-shrink.c
delete mode 100644 test/malloc/realloc0.c
delete mode 100644 test/malloc/testmalloc.c
delete mode 100644 test/malloc/time_malloc.c
delete mode 100644 test/malloc/tst-asprintf.c
delete mode 100644 test/malloc/tst-calloc.c
delete mode 100644 test/malloc/tst-malloc.c
delete mode 100644 test/malloc/tst-mallocfork.c
delete mode 100644 test/malloc/tst-mcheck.c
delete mode 100644 test/malloc/tst-obstack.c
delete mode 100644 test/malloc/tst-valloc.c
delete mode 100644 test/math/Makefile
delete mode 100644 test/math/Makefile.in
delete mode 100644 test/math/basic-test.c
delete mode 100644 test/math/c99_test.c
delete mode 100644 test/math/compile_test.c
delete mode 100644 test/math/fenv.h
delete mode 100644 test/math/gamma.c
delete mode 100755 test/math/gen-libm-test.pl
delete mode 100644 test/math/ilogb.c
delete mode 100644 test/math/libm-test-ulps-arc
delete mode 100644 test/math/libm-test-ulps-arm
delete mode 100644 test/math/libm-test-ulps-cris
delete mode 100644 test/math/libm-test-ulps-generic
delete mode 100644 test/math/libm-test-ulps-i386
delete mode 100644 test/math/libm-test-ulps-ia64
delete mode 100644 test/math/libm-test-ulps-microblaze
delete mode 100644 test/math/libm-test-ulps-mips32
delete mode 100644 test/math/libm-test-ulps-mips64
delete mode 100644 test/math/libm-test-ulps-nds32
delete mode 100644 test/math/libm-test-ulps-powerpc
delete mode 100644 test/math/libm-test-ulps-sh
delete mode 100644 test/math/libm-test-ulps-sparc
delete mode 100644 test/math/libm-test-ulps-x86_64
delete mode 100644 test/math/libm-test-ulps-xtensa
delete mode 100644 test/math/libm-test.inc
delete mode 100644 test/math/rint.c
delete mode 100644 test/math/signgam.c
delete mode 100644 test/math/test-double.c
delete mode 100644 test/math/test-float.c
delete mode 100644 test/math/test-fpucw.c
delete mode 100644 test/math/test-idouble.c
delete mode 100644 test/math/test-ifloat.c
delete mode 100644 test/math/test-ildoubl.c
delete mode 100644 test/math/test-ldouble.c
delete mode 100644 test/math/tst-definitions.c
delete mode 100644 test/misc/Makefile
delete mode 100644 test/misc/Makefile.in
delete mode 100644 test/misc/bug-glob1.c
delete mode 100644 test/misc/bug-glob2.c
delete mode 100644 test/misc/bug-readdir1.c
delete mode 100644 test/misc/dirent.c
delete mode 100644 test/misc/dirent64.c
delete mode 100644 test/misc/fdopen.c
delete mode 100644 test/misc/opendir-tst1.c
delete mode 100644 test/misc/outb.c
delete mode 100644 test/misc/popen.c
delete mode 100644 test/misc/seek.c
delete mode 100644 test/misc/sem.c
delete mode 100644 test/misc/stdarg.c
delete mode 100644 test/misc/tst-fnmatch.c
delete mode 100644 test/misc/tst-fnmatch.input
delete mode 100644 test/misc/tst-gnuglob.c
delete mode 100644 test/misc/tst-inotify.c
delete mode 100644 test/misc/tst-mkostemps.c
delete mode 100644 test/misc/tst-nftw.c
delete mode 100644 test/misc/tst-scandir.c
delete mode 100644 test/misc/tst-seekdir.c
delete mode 100644 test/misc/tst-statfs.c
delete mode 100644 test/misc/tst-statvfs.c
delete mode 100644 test/misc/tst-utmp.c
delete mode 100644 test/misc/tst-utmpx.c
delete mode 100644 test/mmap/Makefile
delete mode 100644 test/mmap/Makefile.in
delete mode 100644 test/mmap/mmap.c
delete mode 100644 test/mmap/mmap2.c
delete mode 100644 test/mmap/mmap64.c
delete mode 100644 test/mmap/tst-mmap-eofsync.c
delete mode 100644 test/mmap/tst-mmap-fflushsync.c
delete mode 100644 test/mmap/tst-mmap-offend.c
delete mode 100644 test/mmap/tst-mmap-setvbuf.c
delete mode 100644 test/nptl/Makefile
delete mode 100644 test/nptl/Makefile.in
delete mode 100644 test/nptl/eintr.c
delete mode 100644 test/nptl/tst-align.c
delete mode 100644 test/nptl/tst-align2.c
delete mode 100644 test/nptl/tst-align3.c
delete mode 100644 test/nptl/tst-atfork1.c
delete mode 100644 test/nptl/tst-atfork2.c
delete mode 100644 test/nptl/tst-atfork2mod.c
delete mode 100644 test/nptl/tst-attr1.c
delete mode 100644 test/nptl/tst-attr2.c
delete mode 100644 test/nptl/tst-attr3.c
delete mode 100644 test/nptl/tst-barrier1.c
delete mode 100644 test/nptl/tst-barrier2.c
delete mode 100644 test/nptl/tst-barrier3.c
delete mode 100644 test/nptl/tst-barrier4.c
delete mode 100644 test/nptl/tst-basic1.c
delete mode 100644 test/nptl/tst-basic2.c
delete mode 100644 test/nptl/tst-basic3.c
delete mode 100644 test/nptl/tst-basic4.c
delete mode 100644 test/nptl/tst-basic5.c
delete mode 100644 test/nptl/tst-basic6.c
delete mode 100644 test/nptl/tst-basic7.c
delete mode 100644 test/nptl/tst-cancel1.c
delete mode 100644 test/nptl/tst-cancel10.c
delete mode 100644 test/nptl/tst-cancel11.c
delete mode 100644 test/nptl/tst-cancel12.c
delete mode 100644 test/nptl/tst-cancel13.c
delete mode 100644 test/nptl/tst-cancel14.c
delete mode 100644 test/nptl/tst-cancel15.c
delete mode 100644 test/nptl/tst-cancel16.c
delete mode 100644 test/nptl/tst-cancel18.c
delete mode 100644 test/nptl/tst-cancel19.c
delete mode 100644 test/nptl/tst-cancel2.c
delete mode 100644 test/nptl/tst-cancel20.c
delete mode 100644 test/nptl/tst-cancel21.c
delete mode 100644 test/nptl/tst-cancel22.c
delete mode 100644 test/nptl/tst-cancel23.c
delete mode 100644 test/nptl/tst-cancel25.c
delete mode 100644 test/nptl/tst-cancel3.c
delete mode 100644 test/nptl/tst-cancel4.c
delete mode 100644 test/nptl/tst-cancel5.c
delete mode 100644 test/nptl/tst-cancel6.c
delete mode 100644 test/nptl/tst-cancel7.c
delete mode 100644 test/nptl/tst-cancel8.c
delete mode 100644 test/nptl/tst-cancel9.c
delete mode 100644 test/nptl/tst-cancelx10.c
delete mode 100644 test/nptl/tst-cancelx11.c
delete mode 100644 test/nptl/tst-cancelx12.c
delete mode 100644 test/nptl/tst-cancelx13.c
delete mode 100644 test/nptl/tst-cancelx14.c
delete mode 100644 test/nptl/tst-cancelx15.c
delete mode 100644 test/nptl/tst-cancelx16.c
delete mode 100644 test/nptl/tst-cancelx18.c
delete mode 100644 test/nptl/tst-cancelx2.c
delete mode 100644 test/nptl/tst-cancelx20.c
delete mode 100644 test/nptl/tst-cancelx21.c
delete mode 100644 test/nptl/tst-cancelx3.c
delete mode 100644 test/nptl/tst-cancelx4.c
delete mode 100644 test/nptl/tst-cancelx6.c
delete mode 100644 test/nptl/tst-cancelx7.c
delete mode 100644 test/nptl/tst-cancelx8.c
delete mode 100644 test/nptl/tst-cancelx9.c
delete mode 100644 test/nptl/tst-cleanup0.c
delete mode 100644 test/nptl/tst-cleanup1.c
delete mode 100644 test/nptl/tst-cleanup2.c
delete mode 100644 test/nptl/tst-cleanup3.c
delete mode 100644 test/nptl/tst-cleanup4.c
delete mode 100644 test/nptl/tst-cleanup4aux.c
delete mode 100644 test/nptl/tst-cleanupx0.c
delete mode 100644 test/nptl/tst-cleanupx1.c
delete mode 100644 test/nptl/tst-cleanupx2.c
delete mode 100644 test/nptl/tst-cleanupx3.c
delete mode 100644 test/nptl/tst-cleanupx4.c
delete mode 100644 test/nptl/tst-clock.c
delete mode 100644 test/nptl/tst-clock1.c
delete mode 100644 test/nptl/tst-clock2.c
delete mode 100644 test/nptl/tst-clock_nanosleep.c
delete mode 100644 test/nptl/tst-cond-deadlock.c
delete mode 100644 test/nptl/tst-cond1.c
delete mode 100644 test/nptl/tst-cond10.c
delete mode 100644 test/nptl/tst-cond11.c
delete mode 100644 test/nptl/tst-cond12.c
delete mode 100644 test/nptl/tst-cond13.c
delete mode 100644 test/nptl/tst-cond14.c
delete mode 100644 test/nptl/tst-cond15.c
delete mode 100644 test/nptl/tst-cond16.c
delete mode 100644 test/nptl/tst-cond17.c
delete mode 100644 test/nptl/tst-cond18.c
delete mode 100644 test/nptl/tst-cond19.c
delete mode 100644 test/nptl/tst-cond2.c
delete mode 100644 test/nptl/tst-cond20.c
delete mode 100644 test/nptl/tst-cond21.c
delete mode 100644 test/nptl/tst-cond22.c
delete mode 100644 test/nptl/tst-cond23.c
delete mode 100644 test/nptl/tst-cond3.c
delete mode 100644 test/nptl/tst-cond4.c
delete mode 100644 test/nptl/tst-cond5.c
delete mode 100644 test/nptl/tst-cond6.c
delete mode 100644 test/nptl/tst-cond7.c
delete mode 100644 test/nptl/tst-cond8.c
delete mode 100644 test/nptl/tst-cond9.c
delete mode 100644 test/nptl/tst-cpuclock1.c
delete mode 100644 test/nptl/tst-cpuclock2.c
delete mode 100644 test/nptl/tst-cputimer1.c
delete mode 100644 test/nptl/tst-cputimer2.c
delete mode 100644 test/nptl/tst-cputimer3.c
delete mode 100644 test/nptl/tst-detach1.c
delete mode 100644 test/nptl/tst-dlsym1.c
delete mode 100644 test/nptl/tst-eintr1.c
delete mode 100644 test/nptl/tst-eintr2.c
delete mode 100644 test/nptl/tst-eintr3.c
delete mode 100644 test/nptl/tst-eintr4.c
delete mode 100644 test/nptl/tst-eintr5.c
delete mode 100644 test/nptl/tst-exec2.c
delete mode 100644 test/nptl/tst-exec3.c
delete mode 100644 test/nptl/tst-exec4.c
delete mode 100644 test/nptl/tst-exit1.c
delete mode 100644 test/nptl/tst-exit2.c
delete mode 100644 test/nptl/tst-exit3.c
delete mode 100644 test/nptl/tst-fini1.c
delete mode 100644 test/nptl/tst-fini1mod.c
delete mode 100644 test/nptl/tst-flock1.c
delete mode 100644 test/nptl/tst-flock2.c
delete mode 100644 test/nptl/tst-fork1.c
delete mode 100644 test/nptl/tst-fork2.c
delete mode 100644 test/nptl/tst-fork3.c
delete mode 100644 test/nptl/tst-fork4.c
delete mode 100644 test/nptl/tst-getpid1.c
delete mode 100644 test/nptl/tst-getpid2.c
delete mode 100644 test/nptl/tst-getpid3.c
delete mode 100644 test/nptl/tst-initializers1-c89.c
delete mode 100644 test/nptl/tst-initializers1-c99.c
delete mode 100644 test/nptl/tst-initializers1-gnu89.c
delete mode 100644 test/nptl/tst-initializers1-gnu99.c
delete mode 100644 test/nptl/tst-initializers1.c
delete mode 100644 test/nptl/tst-join1.c
delete mode 100644 test/nptl/tst-join2.c
delete mode 100644 test/nptl/tst-join3.c
delete mode 100644 test/nptl/tst-join4.c
delete mode 100644 test/nptl/tst-join5.c
delete mode 100644 test/nptl/tst-join6.c
delete mode 100644 test/nptl/tst-key1.c
delete mode 100644 test/nptl/tst-key2.c
delete mode 100644 test/nptl/tst-key3.c
delete mode 100644 test/nptl/tst-key4.c
delete mode 100644 test/nptl/tst-kill1.c
delete mode 100644 test/nptl/tst-kill2.c
delete mode 100644 test/nptl/tst-kill3.c
delete mode 100644 test/nptl/tst-kill4.c
delete mode 100644 test/nptl/tst-kill5.c
delete mode 100644 test/nptl/tst-kill6.c
delete mode 100644 test/nptl/tst-mqueue.h
delete mode 100644 test/nptl/tst-mqueue1.c
delete mode 100644 test/nptl/tst-mqueue2.c
delete mode 100644 test/nptl/tst-mqueue3.c
delete mode 100644 test/nptl/tst-mqueue4.c
delete mode 100644 test/nptl/tst-mqueue5.c
delete mode 100644 test/nptl/tst-mqueue6.c
delete mode 100644 test/nptl/tst-mqueue7.c
delete mode 100644 test/nptl/tst-mqueue8.c
delete mode 100644 test/nptl/tst-mqueue9.c
delete mode 100644 test/nptl/tst-mutex1.c
delete mode 100644 test/nptl/tst-mutex2.c
delete mode 100644 test/nptl/tst-mutex3.c
delete mode 100644 test/nptl/tst-mutex4.c
delete mode 100644 test/nptl/tst-mutex5.c
delete mode 100644 test/nptl/tst-mutex5a.c
delete mode 100644 test/nptl/tst-mutex6.c
delete mode 100644 test/nptl/tst-mutex7.c
delete mode 100644 test/nptl/tst-mutex7a.c
delete mode 100644 test/nptl/tst-mutex8.c
delete mode 100644 test/nptl/tst-mutex9.c
delete mode 100644 test/nptl/tst-oddstacklimit.c
delete mode 100644 test/nptl/tst-once1.c
delete mode 100644 test/nptl/tst-once2.c
delete mode 100644 test/nptl/tst-once3.c
delete mode 100644 test/nptl/tst-once4.c
delete mode 100644 test/nptl/tst-oncex3.c
delete mode 100644 test/nptl/tst-oncex4.c
delete mode 100644 test/nptl/tst-popen1.c
delete mode 100644 test/nptl/tst-raise1.c
delete mode 100644 test/nptl/tst-rwlock1.c
delete mode 100644 test/nptl/tst-rwlock10.c
delete mode 100644 test/nptl/tst-rwlock11.c
delete mode 100644 test/nptl/tst-rwlock12.c
delete mode 100644 test/nptl/tst-rwlock13.c
delete mode 100644 test/nptl/tst-rwlock14.c
delete mode 100644 test/nptl/tst-rwlock2.c
delete mode 100644 test/nptl/tst-rwlock2a.c
delete mode 100644 test/nptl/tst-rwlock3.c
delete mode 100644 test/nptl/tst-rwlock4.c
delete mode 100644 test/nptl/tst-rwlock5.c
delete mode 100644 test/nptl/tst-rwlock6.c
delete mode 100644 test/nptl/tst-rwlock7.c
delete mode 100644 test/nptl/tst-rwlock8.c
delete mode 100644 test/nptl/tst-rwlock9.c
delete mode 100644 test/nptl/tst-sched1.c
delete mode 100644 test/nptl/tst-sem1.c
delete mode 100644 test/nptl/tst-sem10.c
delete mode 100644 test/nptl/tst-sem11.c
delete mode 100644 test/nptl/tst-sem12.c
delete mode 100644 test/nptl/tst-sem2.c
delete mode 100644 test/nptl/tst-sem3.c
delete mode 100644 test/nptl/tst-sem4.c
delete mode 100644 test/nptl/tst-sem5.c
delete mode 100644 test/nptl/tst-sem6.c
delete mode 100644 test/nptl/tst-sem7.c
delete mode 100644 test/nptl/tst-sem8.c
delete mode 100644 test/nptl/tst-sem9.c
delete mode 100644 test/nptl/tst-signal1.c
delete mode 100644 test/nptl/tst-signal2.c
delete mode 100644 test/nptl/tst-signal3.c
delete mode 100644 test/nptl/tst-signal4.c
delete mode 100644 test/nptl/tst-signal5.c
delete mode 100644 test/nptl/tst-signal6.c
delete mode 100644 test/nptl/tst-signal7.c
delete mode 100644 test/nptl/tst-spin1.c
delete mode 100644 test/nptl/tst-spin2.c
delete mode 100644 test/nptl/tst-spin3.c
delete mode 100644 test/nptl/tst-stack-align.h
delete mode 100644 test/nptl/tst-stack1.c
delete mode 100644 test/nptl/tst-stack2.c
delete mode 100644 test/nptl/tst-stdio1.c
delete mode 100644 test/nptl/tst-stdio2.c
delete mode 100644 test/nptl/tst-sysconf.c
delete mode 100644 test/nptl/tst-timer2.c
delete mode 100644 test/nptl/tst-timer3.c
delete mode 100644 test/nptl/tst-timer4.c
delete mode 100644 test/nptl/tst-timer5.c
delete mode 100644 test/nptl/tst-tls1.c
delete mode 100644 test/nptl/tst-tls2.c
delete mode 100644 test/nptl/tst-tls3.c
delete mode 100644 test/nptl/tst-tls3mod.c
delete mode 100644 test/nptl/tst-tls4.c
delete mode 100644 test/nptl/tst-tls4moda.c
delete mode 100644 test/nptl/tst-tls4modb.c
delete mode 100644 test/nptl/tst-tls5.c
delete mode 100644 test/nptl/tst-tls5.h
delete mode 100644 test/nptl/tst-tls5mod.c
delete mode 100644 test/nptl/tst-tls5moda.c
delete mode 100644 test/nptl/tst-tls5modb.c
delete mode 100644 test/nptl/tst-tls5modc.c
delete mode 100644 test/nptl/tst-tls5modd.c
delete mode 100644 test/nptl/tst-tls5mode.c
delete mode 100644 test/nptl/tst-tls5modf.c
delete mode 100644 test/nptl/tst-tsd1.c
delete mode 100644 test/nptl/tst-tsd2.c
delete mode 100644 test/nptl/tst-tsd3.c
delete mode 100644 test/nptl/tst-tsd4.c
delete mode 100644 test/nptl/tst-tsd5.c
delete mode 100644 test/nptl/tst-tsd6.c
delete mode 100644 test/nptl/tst-typesizes.c
delete mode 100644 test/nptl/tst-umask1.c
delete mode 100644 test/nptl/tst-unload.c
delete mode 100644 test/nptl/tst-vfork1.c
delete mode 100644 test/nptl/tst-vfork1x.c
delete mode 100644 test/nptl/tst-vfork2.c
delete mode 100644 test/nptl/tst-vfork2x.c
delete mode 100755 test/plt/check-plt.sh
delete mode 100644 test/pthread/Makefile
delete mode 100644 test/pthread/Makefile.in
delete mode 100644 test/pthread/cancellation-points.c
delete mode 100644 test/pthread/ex1.c
delete mode 100644 test/pthread/ex2.c
delete mode 100644 test/pthread/ex3.c
delete mode 100644 test/pthread/ex4.c
delete mode 100644 test/pthread/ex5.c
delete mode 100644 test/pthread/ex6.c
delete mode 100644 test/pthread/ex7.c
delete mode 100644 test/pthread/ex8-mtx-odd.c
delete mode 100644 test/pthread/tst-c99.c
delete mode 100644 test/pthread/tst-join2.c
delete mode 100644 test/pthread/tst-join3.c
delete mode 100644 test/pthread/tst-too-many-cleanups.c
delete mode 100644 test/pwd_grp/.indent.pro
delete mode 100644 test/pwd_grp/Makefile
delete mode 100644 test/pwd_grp/Makefile.in
delete mode 100644 test/pwd_grp/getgroups.c
delete mode 100644 test/pwd_grp/grcat.c
delete mode 100644 test/pwd_grp/pwcat.c
delete mode 100644 test/pwd_grp/test_grp.c
delete mode 100644 test/pwd_grp/test_pwd.c
delete mode 100644 test/regex/LICENSE
delete mode 100644 test/regex/Makefile
delete mode 100644 test/regex/Makefile.in
delete mode 100644 test/regex/basic.dat
delete mode 100644 test/regex/categorize.dat
delete mode 100644 test/regex/forcedassoc.dat
delete mode 100644 test/regex/interpretation.dat
delete mode 100644 test/regex/leftassoc.dat
delete mode 100644 test/regex/nullsubexpr.dat
delete mode 100644 test/regex/repetition.dat
delete mode 100644 test/regex/rightassoc.dat
delete mode 100644 test/regex/testregex.c
delete mode 100644 test/regex/tst-regex2.c
delete mode 100644 test/regex/tst-regex2.dat
delete mode 100644 test/regex/tst-regexloc.c
delete mode 100644 test/rpc/Makefile
delete mode 100644 test/rpc/Makefile.in
delete mode 100644 test/rpc/getrpcent.c
delete mode 100644 test/rpc/getrpcent_r.c
delete mode 100644 test/setjmp/Makefile
delete mode 100644 test/setjmp/Makefile.in
delete mode 100644 test/setjmp/bug269-setjmp.c
delete mode 100644 test/setjmp/jmpbug.c
delete mode 100644 test/setjmp/sigjmpbug.c
delete mode 100644 test/setjmp/tst-setjmp.c
delete mode 100644 test/setjmp/tst-vfork-longjmp.c
delete mode 100644 test/signal/.indent.pro
delete mode 100644 test/signal/Makefile
delete mode 100644 test/signal/Makefile.in
delete mode 100644 test/signal/sigchld.c
delete mode 100644 test/signal/signal.c
delete mode 100644 test/signal/tst-raise.c
delete mode 100644 test/signal/tst-signal.c
delete mode 100644 test/signal/tst-signalfd.c
delete mode 100644 test/signal/tst-sigset.c
delete mode 100644 test/signal/tst-sigsimple.c
delete mode 100644 test/silly/Makefile
delete mode 100644 test/silly/Makefile.in
delete mode 100644 test/silly/hello.c
delete mode 100644 test/silly/tiny.c
delete mode 100644 test/silly/tst-atomic-long.c
delete mode 100644 test/silly/tst-atomic.c
delete mode 100644 test/stat/Makefile
delete mode 100644 test/stat/Makefile.in
delete mode 100644 test/stat/memcmp-stat.c
delete mode 100644 test/stat/stat-loop256.c
delete mode 100644 test/stat/stat.c
delete mode 100644 test/stat/stat64.c
delete mode 100644 test/stdio/64bit.c
delete mode 100644 test/stdio/Makefile
delete mode 100644 test/stdio/Makefile.in
delete mode 100644 test/stdio/fclose-loop.c
delete mode 100644 test/stdio/lseek_no_lfs.c
delete mode 100644 test/stdio/scanf_m.c
delete mode 100644 test/stdio/tst-fmemopen.c
delete mode 100644 test/stdlib/Makefile
delete mode 100644 test/stdlib/Makefile.in
delete mode 100644 test/stdlib/ptytest.c
delete mode 100644 test/stdlib/qsort.c
delete mode 100644 test/stdlib/test-canon.c
delete mode 100644 test/stdlib/test-canon2.c
delete mode 100644 test/stdlib/test-mkostemp-O_CLOEXEC.c
delete mode 100644 test/stdlib/test-mkostemp-child.c
delete mode 100644 test/stdlib/testarc4random.c
delete mode 100644 test/stdlib/testatexit.c
delete mode 100644 test/stdlib/teston_exit.c
delete mode 100644 test/stdlib/teststrtol.c
delete mode 100644 test/stdlib/teststrtoq.c
delete mode 100644 test/string/Makefile
delete mode 100644 test/string/Makefile.in
delete mode 100644 test/string/bug-strcoll1.c
delete mode 100644 test/string/bug-strncat1.c
delete mode 100644 test/string/bug-strpbrk1.c
delete mode 100644 test/string/bug-strspn1.c
delete mode 100644 test/string/stratcliff.c
delete mode 100644 test/string/test-ffs.c
delete mode 100644 test/string/testcopy.c
delete mode 100644 test/string/tester.c
delete mode 100644 test/string/tst-bswap.c
delete mode 100644 test/string/tst-inlcall.c
delete mode 100644 test/string/tst-memmove.c
delete mode 100644 test/string/tst-strlen.c
delete mode 100644 test/string/tst-strtok.c
delete mode 100644 test/string/tst-strxfrm.c
delete mode 100644 test/termios/Makefile
delete mode 100644 test/termios/termios.c
delete mode 100644 test/test-skeleton.c
delete mode 100644 test/testsuite.h
delete mode 100644 test/time/Makefile
delete mode 100644 test/time/Makefile.in
delete mode 100644 test/time/bug-asctime.c
delete mode 100644 test/time/bug-asctime_r.c
delete mode 100644 test/time/clocktest.c
delete mode 100644 test/time/test_time.c
delete mode 100644 test/time/time.c
delete mode 100644 test/time/tst-ctime.c
delete mode 100644 test/time/tst-ftime_l.c
delete mode 100644 test/time/tst-futimens1.c
delete mode 100644 test/time/tst-mktime.c
delete mode 100644 test/time/tst-mktime2.c
delete mode 100644 test/time/tst-mktime3.c
delete mode 100644 test/time/tst-posixtz.c
delete mode 100644 test/time/tst-strftime.c
delete mode 100644 test/time/tst-strptime.c
delete mode 100644 test/time/tst-strptime2.c
delete mode 100644 test/time/tst-timerfd.c
delete mode 100644 test/time/tst-timezone.c
delete mode 100644 test/time/tst_wcsftime.c
delete mode 100644 test/tls/Makefile
delete mode 100644 test/tls/Makefile.in
delete mode 100644 test/tls/README
delete mode 100644 test/tls/tls-macros-alpha.h
delete mode 100644 test/tls/tls-macros-arc.h
delete mode 100644 test/tls/tls-macros-arm.h
delete mode 100644 test/tls/tls-macros-i386.h
delete mode 100644 test/tls/tls-macros-ia64.h
delete mode 100644 test/tls/tls-macros-metag.h
delete mode 100644 test/tls/tls-macros-mips.h
delete mode 100644 test/tls/tls-macros-powerpc.h
delete mode 100644 test/tls/tls-macros-sh.h
delete mode 100644 test/tls/tls-macros-sparc.h
delete mode 100644 test/tls/tls-macros-thumb.h
delete mode 100644 test/tls/tls-macros-x86_64.h
delete mode 100644 test/tls/tls-macros-xtensa.h
delete mode 100644 test/tls/tls-macros.h
delete mode 100644 test/tls/tst-tls-at-ctor.c
delete mode 100644 test/tls/tst-tls1-static.c
delete mode 100644 test/tls/tst-tls1.c
delete mode 100644 test/tls/tst-tls10.c
delete mode 100644 test/tls/tst-tls10.h
delete mode 100644 test/tls/tst-tls11.c
delete mode 100644 test/tls/tst-tls12.c
delete mode 100644 test/tls/tst-tls13.c
delete mode 100644 test/tls/tst-tls14.c
delete mode 100644 test/tls/tst-tls15.c
delete mode 100644 test/tls/tst-tls16.c
delete mode 100644 test/tls/tst-tls17.c
delete mode 100644 test/tls/tst-tls18.c
delete mode 100644 test/tls/tst-tls2-static.c
delete mode 100644 test/tls/tst-tls2.c
delete mode 100644 test/tls/tst-tls3.c
delete mode 100644 test/tls/tst-tls4.c
delete mode 100644 test/tls/tst-tls5.c
delete mode 100644 test/tls/tst-tls6.c
delete mode 100644 test/tls/tst-tls7.c
delete mode 100644 test/tls/tst-tls8.c
delete mode 100644 test/tls/tst-tls9-static.c
delete mode 100644 test/tls/tst-tls9.c
delete mode 100644 test/tls/tst-tlsmod-at-ctor.c
delete mode 100644 test/tls/tst-tlsmod1.c
delete mode 100644 test/tls/tst-tlsmod10.c
delete mode 100644 test/tls/tst-tlsmod11.c
delete mode 100644 test/tls/tst-tlsmod12.c
delete mode 100644 test/tls/tst-tlsmod13.c
delete mode 100644 test/tls/tst-tlsmod13a.c
delete mode 100644 test/tls/tst-tlsmod14a.c
delete mode 100644 test/tls/tst-tlsmod14b.c
delete mode 100644 test/tls/tst-tlsmod15a.c
delete mode 100644 test/tls/tst-tlsmod15b.c
delete mode 100644 test/tls/tst-tlsmod16a.c
delete mode 100644 test/tls/tst-tlsmod16b.c
delete mode 100644 test/tls/tst-tlsmod17a.c
delete mode 100644 test/tls/tst-tlsmod17b.c
delete mode 100644 test/tls/tst-tlsmod18a.c
delete mode 100644 test/tls/tst-tlsmod2.c
delete mode 100644 test/tls/tst-tlsmod3.c
delete mode 100644 test/tls/tst-tlsmod4.c
delete mode 100644 test/tls/tst-tlsmod5.c
delete mode 100644 test/tls/tst-tlsmod6.c
delete mode 100644 test/tls/tst-tlsmod7.c
delete mode 100644 test/tls/tst-tlsmod8.c
delete mode 100644 test/tls/tst-tlsmod9.c
delete mode 100644 test/uclibcng-testrunner.sh
delete mode 100644 test/unistd/Makefile
delete mode 100644 test/unistd/Makefile.in
delete mode 100644 test/unistd/clone.c
delete mode 100644 test/unistd/clone_cruft.h
delete mode 100644 test/unistd/errno.c
delete mode 100644 test/unistd/exec-null.c
delete mode 100644 test/unistd/fork.c
delete mode 100644 test/unistd/getcwd.c
delete mode 100644 test/unistd/getopt.c
delete mode 100644 test/unistd/getopt_long.c
delete mode 100644 test/unistd/tst-fallocate.c
delete mode 100644 test/unistd/tst-fallocate64.c
delete mode 100755 test/unistd/tst-getconf.sh
delete mode 100644 test/unistd/tst-posix_fallocate.c
delete mode 100644 test/unistd/tst-posix_fallocate64.c
delete mode 100644 test/unistd/tst-preadwrite.c
delete mode 100644 test/unistd/tst-preadwrite64.c
delete mode 100644 test/unistd/tst-pselect.c
delete mode 100644 test/unistd/tstgetopt.c
delete mode 100644 test/unistd/vfork.c
diff --git a/Makefile.help b/Makefile.help
index f6c7627..43f68a3 100644
--- a/Makefile.help
+++ b/Makefile.help
@@ -46,8 +46,6 @@ help:
@echo ' install_hostutils - install host utilities'
@echo
@echo 'Development:'
- @echo ' check - run testsuite'
- @echo ' test_compile - compile testsuite binaries'
@echo ' release - create a distribution tarball'
@echo
@echo 'Environment variables:'
diff --git a/Makefile.in b/Makefile.in
index 877a0b6..76008a2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -539,7 +539,6 @@ include_clean:
clean: include_clean
$(Q)$(RM) -r $(top_builddir)lib
@$(MAKE) -C utils CLEAN_utils
- +$(MAKE) -s -C test clean
$(Q)$(RM) $(top_builddir)extra/scripts/unifdef
$(Q)$(RM) -r $(LOCAL_INSTALL_PATH)
@@ -556,15 +555,3 @@ dist release:
cat ../uClibc-$(VERSION).tar | bzip2 -c9 > ../uClibc-$(VERSION).tar.bz2
cat ../uClibc-$(VERSION).tar | xz -e -c8 > ../uClibc-$(VERSION).tar.xz
du -b ../uClibc-$(VERSION).tar.{bz2,xz}
-
-test check: test_compile
- $(Q)$(MAKE) -C test \
- $(if $(O),top_builddir=$(O)/)
-
-test_compile: $(LOCAL_INSTALL_PATH)
- $(Q)$(MAKE) -C test compile \
- $(if $(O),top_builddir=$(O)/)
-
-test_gen: $(LOCAL_INSTALL_PATH)
- $(Q)$(MAKE) -C test gen \
- $(if $(O),top_builddir=$(O)/)
diff --git a/Makerules b/Makerules
index d35e40d..e0784e1 100644
--- a/Makerules
+++ b/Makerules
@@ -7,7 +7,7 @@
PHONY := FORCE
.PHONY: dummy $(PHONY) subdirs \
- all check test $(clean_targets) \
+ all $(clean_targets) \
config dist menuconfig oldconfig release \
utils help
diff --git a/docs/PORTING b/docs/PORTING
index 2ffdeda..d04f3b4 100644
--- a/docs/PORTING
+++ b/docs/PORTING
@@ -45,7 +45,7 @@ you are hacking on.
version) if you wish to properly support shared libraries.
- at this point, you should have enough to generate a working HELLO WORLD
- static binary (see test/silly/*.c files)
+ static binary
- if you want UCLIBC_CTOR_DTOR support, you will need to create crti.S and
crtn.S files which define function prologues/epilogues.
diff --git a/test/.gitignore b/test/.gitignore
deleted file mode 100644
index 0d19285..0000000
--- a/test/.gitignore
+++ /dev/null
@@ -1,334 +0,0 @@
-#
-# Never ignore these
-#
-!.gitignore
-#
-# Generated files
-#
-*.out
-#
-# Executable test
-#
-*_glibc
-argp/argp-ex[1-4]
-argp/argp-test
-argp/bug-argp1
-argp/tst-argp[12]
-args/arg_test
-assert/assert
-crypt/crypt
-crypt/md5c-test
-crypt/sha256c-test
-crypt/sha512c-test
-ctype/ctype
-dlopen/dladdr
-dlopen/dlafk
-dlopen/dlstatic
-dlopen/dltest
-dlopen/dltest2
-dlopen/dlundef
-dlopen/libafk.so
-dlopen/libafk-temp.so
-dlopen/libA.so
-dlopen/libB.so
-dlopen/libC.so
-dlopen/libstatic.so
-dlopen/libtest[123].so
-dlopen/libtest.so
-dlopen/libundef.so
-dlopen/test[1-3]
-dlopen/testscope
-inet/bug-if1
-inet/gethost_r-align
-inet/gethostid
-inet/getnetent
-inet/if_nameindex
-inet/tst-aton
-inet/tst-ether_aton
-inet/tst-ethers
-inet/tst-ethers-line
-inet/tst-network
-inet/tst-ntoa
-inet/tst-res
-inet/tst-sock-nonblock
-librt/shmtest
-locale/bug-iconv-trans
-locale/bug-usesetlocale
-locale/C
-locale/collate-test
-locale/dump-ctype
-locale/gen-unicode-ctype
-locale/show-ucs-data
-locale/tst-digits
-locale/tst-langinfo
-locale/tst-mbswcs[1-6]
-locale/tst_nl_langinfo
-locale/tst-numeric
-locale/tst-setlocale
-locale/tst-sscanf
-locale/tst-trans
-locale/tst-wctype
-locale/tst-xlocale1
-locale/tst-xlocale2
-locale/xfrm-test
-locale-mbwc/tst_iswalnum
-locale-mbwc/tst_iswalpha
-locale-mbwc/tst_iswcntrl
-locale-mbwc/tst_iswctype
-locale-mbwc/tst_iswdigit
-locale-mbwc/tst_iswgraph
-locale-mbwc/tst_iswlower
-locale-mbwc/tst_iswprint
-locale-mbwc/tst_iswpunct
-locale-mbwc/tst_iswspace
-locale-mbwc/tst_iswupper
-locale-mbwc/tst_iswxdigit
-locale-mbwc/tst_mblen
-locale-mbwc/tst_mbrlen
-locale-mbwc/tst_mbrtowc
-locale-mbwc/tst_mbsrtowcs
-locale-mbwc/tst_mbstowcs
-locale-mbwc/tst_mbtowc
-locale-mbwc/tst_strcoll
-locale-mbwc/tst_strxfrm
-locale-mbwc/tst_swscanf
-locale-mbwc/tst_towctrans
-locale-mbwc/tst_towlower
-locale-mbwc/tst_towupper
-locale-mbwc/tst_wcrtomb
-locale-mbwc/tst_wcscat
-locale-mbwc/tst_wcschr
-locale-mbwc/tst_wcscmp
-locale-mbwc/tst_wcscoll
-locale-mbwc/tst_wcscpy
-locale-mbwc/tst_wcscspn
-locale-mbwc/tst_wcslen
-locale-mbwc/tst_wcsncat
-locale-mbwc/tst_wcsncmp
-locale-mbwc/tst_wcsncpy
-locale-mbwc/tst_wcspbrk
-locale-mbwc/tst_wcsrtombs
-locale-mbwc/tst_wcsspn
-locale-mbwc/tst_wcsstr
-locale-mbwc/tst_wcstod
-locale-mbwc/tst_wcstok
-locale-mbwc/tst_wcstombs
-locale-mbwc/tst_wcswidth
-locale-mbwc/tst_wcsxfrm
-locale-mbwc/tst_wctob
-locale-mbwc/tst_wctomb
-locale-mbwc/tst_wctrans
-locale-mbwc/tst_wctype
-locale-mbwc/tst_wcwidth
-locale-mbwc/tst2_mbrtowc
-malloc/malloc
-malloc/mallocbug
-malloc/malloc-standard-alignment
-malloc/realloc0
-malloc/realloc-can-shrink
-malloc/testmalloc
-malloc/tst-[cmv]alloc
-malloc/tst-mallocfork
-malloc/tst-mcheck
-malloc/tst-obstack
-math/basic-test
-math/compile_test
-math/c99_test
-math/ilogb
-math/libm-test-ulps.h
-math/libm-test.c
-math/rint
-math/signgam
-math/test-double
-math/test-ildoubl
-math/test-ldouble
-math/test-float
-math/test-fpucw
-math/test-idouble
-math/test-ifloat
-math/tst-definitions
-misc/bug-glob2
-misc/bug-readdir1
-misc/dirent
-misc/dirent64
-misc/fdopen
-misc/opendir-tst1
-misc/popen
-misc/seek
-misc/sem
-misc/stdarg
-misc/tst-inotify
-misc/tst-scandir
-misc/tst-seekdir
-misc/tst-statfs
-misc/tst-statvfs
-misc/tst-utmp
-misc/tst-utmpx
-mmap/mmap
-mmap/mmap2
-mmap/mmap64
-nptl/tst-align
-nptl/tst-align2
-nptl/tst-align3
-nptl/tst-atfork1
-nptl/tst-attr[1-3]
-nptl/tst-barrier[1-4]
-nptl/tst-basic[1-7]
-nptl/tst-cancel[1-9]
-nptl/tst-cancelx[2-4]
-nptl/tst-cancelx[6-9]
-nptl/tst-cancelx1[0-8]
-nptl/tst-cancelx2[0-1]
-nptl/tst-cancel[1-3][0-9]
-nptl/tst-cleanup[0-4]
-nptl/tst-cleanupx[0-4]
-nptl/tst-clock
-nptl/tst-clock[12]
-nptl/tst-clock_nanosleep
-nptl/tst-cond[1-9]
-nptl/tst-cond[1-2][0-9]
-nptl/tst-cpuclock[12]
-nptl/tst-cputimer[1-3]
-nptl/tst-detach1
-nptl/tst-dlsym1
-nptl/tst-eintr[1-5]
-nptl/tst-exec[2-4]
-nptl/tst-exit[1-3]
-nptl/tst-fini1
-nptl/tst-fini1mod.so
-nptl/tst-flock[1-2]
-nptl/tst-fork[1-4]
-nptl/tst-getpid[1-3]
-nptl/tst-initializers1
-nptl/tst-initializers1-c[89]9
-nptl/tst-initializers1-gnu[89]9
-nptl/tst-join[1-6]
-nptl/tst-key[1-4]
-nptl/tst-kill[1-6]
-nptl/tst-mqueue[1-9]
-nptl/tst-mutex[1-9]
-nptl/tst-mutex[57]a
-nptl/tst-once[1-4]
-nptl/tst-oncex[3-4]
-nptl/tst-popen1
-nptl/tst-oddstacklimit
-nptl/tst-raise1
-nptl/tst-rwlock[1-9]
-nptl/tst-rwlock1[0-4]
-nptl/tst-rwlock2a
-nptl/tst-sched1
-nptl/tst-sem[1-9]
-nptl/tst-sem1[0-2]
-nptl/tst-signal[1-7]
-nptl/tst-spin[1-3]
-nptl/tst-stack[12]
-nptl/tst-stdio[12]
-nptl/tst-sysconf
-nptl/tst-timer[2-5]
-nptl/tst-tls[1-5]
-nptl/tst-tls4mod.so
-nptl/tst-tls?mod[a-f].so
-nptl/tst-tls4modb.so
-nptl/tst-tls[35]mod.so
-nptl/tst-tls6.sh
-nptl/tst-tsd[1-6]
-nptl/tst-typesizes
-nptl/tst-umask1
-nptl/tst-unload
-nptl/tst-vfork[12]x
-pthread/cancellation-points
-pthread/ex[1-7]
-pthread/tst-too-many-cleanups
-pwd_grp/getgroups
-pwd_grp/grcat
-pwd_grp/pwcat
-pwd_grp/test_grp
-pwd_grp/test_pwd
-regex/testregex
-regex/tst-regex2
-regex/tst-regexloc
-rpc/getrpcent
-rpc/getrpcent_r
-setjmp/bug269-setjmp
-setjmp/jmpbug
-setjmp/sigjmpbug
-setjmp/tst-setjmp
-setjmp/tst-vfork-longjmp
-signal/sigchld
-signal/signal
-signal/tst-raise
-signal/tst-signal
-signal/tst-signalfd
-signal/tst-sigset
-signal/tst-sigsimple
-silly/hello
-silly/tiny
-silly/tst-atomic
-silly/tst-atomic-long
-stat/memcmp-stat
-stat/stat
-stat/stat64
-stat/stat-loop256
-stdio/64bit
-stdio/fclose-loop
-stdlib/ptytest
-stdlib/qsort
-stdlib/testarc4random
-stdlib/testatexit
-stdlib/test-canon
-stdlib/test-canon2
-stdlib/test-mkostemp-O_CLOEXEC
-stdlib/test-mkostemp-child
-stdlib/teston_exit
-stdlib/teststrtol
-stdlib/teststrtoq
-string/bug-strcoll1
-string/bug-strncat1
-string/bug-strpbrk1
-string/bug-strspn1
-string/stratcliff
-string/testcopy
-string/tester
-string/test-ffs
-string/tst-bswap
-string/tst-inlcall
-string/tst-strlen
-string/tst-strtok
-string/tst-strxfrm
-termios/termios
-time/clocktest
-time/test_time
-time/tst-ctime
-time/tst-ftime_l
-time/tst-futimens1
-time/tst-mktime
-time/tst-mktime3
-time/tst-strptime2
-time/tst-timerfd
-time/tst_wcsftime
-tls/tst-tls[1-9]
-tls/tst-tls1[0-8]
-tls/tst-tls-at-ctor
-tls/tst-tlsmod[1-9].so
-tls/tst-tlsmod1[0-9].so
-tls/tst-tlsmod1[0-9][ab].so
-tls/tst-tlsmod1[78]a[0-9].so
-tls/tst-tlsmod1[78]a1[0-9].so
-tls/tst-tlsmod-at-ctor.so
-unistd/clone
-unistd/errno
-unistd/exec-null
-unistd/fork
-unistd/getconf
-unistd/getconf.c
-unistd/getcwd
-unistd/getopt
-unistd/getopt_long
-unistd/tstgetopt
-unistd/tst-fallocate
-unistd/tst-fallocate64
-unistd/tst-posix_fallocate
-unistd/tst-posix_fallocate64
-unistd/tst-preadwrite
-unistd/tst-preadwrite64
-unistd/vfork
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644
index 532a43a..0000000
--- a/test/Makefile
+++ /dev/null
@@ -1,91 +0,0 @@
-# Makefile for uClibc
-#
-# Copyright (C) 2000-2005 Erik Andersen <andersen(a)uclibc.org>
-#
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-#
-
-top_srcdir=../
-top_builddir=../
-include Rules.mak
-
-ALL_SUBDIRS := $(patsubst %/Makefile,%,$(wildcard */Makefile))
-
-DIRS := $(ALL_SUBDIRS)
-ifneq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS),yy)
- DIRS := $(filter-out dlopen,$(DIRS))
-endif
-ifneq ($(findstring -static,$(LDFLAGS)),)
- DIRS := $(filter-out dlopen,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_THREADS)$(ARCH_USE_MMU),yy)
- DIRS := $(filter-out pthread,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_FLOATS),y)
- DIRS := $(filter-out math,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_FULL_RPC),y)
- DIRS := $(filter-out rpc,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_REGEX),y)
- DIRS := $(filter-out regex,$(DIRS))
-endif
-ifneq ($(HAVE_SHARED)$(UCLIBC_HAS_THREADS_NATIVE),yy)
- DIRS := $(filter-out tls nptl,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_WCHAR),y)
- DIRS := $(filter-out locale-mbwc,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_LOCALE),y)
- DIRS := $(filter-out locale,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_CRYPT_IMPL),y)
- DIRS := $(filter-out crypt,$(DIRS))
-endif
-ifeq ($(HAS_NO_THREADS),y)
- DIRS := $(filter-out pthread,$(DIRS))
-endif
-ifneq ($(UCLIBC_HAS_ARGP),y)
- DIRS := $(filter-out argp,$(DIRS))
-endif
-
-test check all: run
-
-run: subdirs_run
-
-gen:
- -rm -f $(top_builddir)/test/uclibcng-testrunner.in
- $(MAKE) run UCLIBCNG_GENERATE_TESTRUNNER=1
-
-compile: $(top_builddir)$(LOCAL_INSTALL_PATH) subdirs_compile
-
-$(top_builddir)$(LOCAL_INSTALL_PATH):
- $(Q)$(MAKE) -C $(top_builddir) $(LOCAL_INSTALL_PATH)
-
-tags:
- ctags -R
-
-clean: subdirs_clean
-
-subdirs: $(patsubst %, _dir_%, $(DIRS))
-subdirs_compile: $(patsubst %, _dircompile_%, $(DIRS))
-subdirs_run: $(patsubst %, _dirrun_%, $(DIRS))
-subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS))
-
-$(patsubst %, _dir_%, $(DIRS)) : dummy
- $(Q)$(MAKE) -C $(patsubst _dir_%, %, $@) \
- KCONFIG_CONFIG=$(KCONFIG_CONFIG)
-
-$(patsubst %, _dirrun_%, $(DIRS)) : dummy
- $(Q)$(MAKE) -C $(patsubst _dirrun_%, %, $@) run \
- UCLIBCNG_TEST_SUBDIR=$(strip $(patsubst _dirrun_%, %, $@)) \
- KCONFIG_CONFIG=$(KCONFIG_CONFIG)
-
-$(patsubst %, _dircompile_%, $(DIRS)) : dummy
- $(Q)$(MAKE) -C $(patsubst _dircompile_%, %, $@) compile \
- KCONFIG_CONFIG=$(KCONFIG_CONFIG)
-
-$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
- $(Q)$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
-
-.PHONY: all check clean dummy subdirs_compile subdirs_run subdirs subdirs_clean test run compile
diff --git a/test/README b/test/README
deleted file mode 100644
index 723ce6e..0000000
--- a/test/README
+++ /dev/null
@@ -1,87 +0,0 @@
------------
- For: User
------------
-Following make targets are avaialable
-
-make compile
-
-This will compile and link the tests.
-
-make run
-
-This will execute all the tests.
-
-make check
-make all
-
-This will build and run tests.
-
-The following make variables may help you in testing:
-
- - UCLIBC_ONLY - only run tests against uClibc
- - GLIBC_ONLY - only run tests against glibc
- - V / VERBOSE - run tests with a lot of output
- - TEST_INSTALLED_UCLIBC - Test installed libraries
- under /lib and /usr/lib.
- - TIMEOUTFACTOR=nn - increase test timeout nn times.
- At least REGEX_OLD + regex/tst-regex2 needs it increased.
-
-So, to just run the uClibc tests, try this:
-make check UCLIBC_ONLY=1
-
-You can pass the following 2 environment variables to "make run":
- - make run SIMULATOR_uclibc=qemu-sh4 SIMULATOR_glibc=qemu-x86_64
-
-If you need to test just a subset of all test, delete subdirectories
-you do not need.
-
-As of 2009-07, build machinery does not track dependencies on uclibc.
-If you edit a header and re-run "make compile", it does not re-install it
-into ../install_dir. If you delete ../install_dir, "make compile"
-rebuilds uclibc as needed and re-installs ../install_dir,
-but still does not rebuild testcases.
-(You can work around it by "touch */*.c" for now).
-
-----------------
- For: Developer
-----------------
-
-The structure of this test system is:
- test/ toplevel dir containing common test code
- test/Rules.mak Common build code
- test/Test.mak Runtime test make code
- test/subdir/ code specific to a subsystem is stored in a subdir
- test/subdir/Makefile.in describe the tests to run
- test/subdir/Makefile test entry point, includes needed upper-level
- makefiles plus Makefile.in
- test/subdir/*.c the tests
-
-Each subdir has a Makefile (same for any subdir) that must include in strict order:
- - the upper-level Rules.mak file
- - the Makefile.in
- - the upper-level Test.mak file
-Makefile.in may be used to define the TESTS and TESTS_DISABLED variables.
-If you do not, TESTS is built automatically based upon all the .c files in the subdir.
-TESTS := foo
-TESTS_DISABLED := bar
-Each test must use a similar .c name; so the "foo" test needs a "foo.c".
-
-Additionally, the following options further control specific test behavior:
-CFLAGS_foo := extra cflags to use to compile test
-DODIFF_foo := compare the output of the glibc and uClibc tests (see below)
-LDFLAGS_foo := extra ldflags to use to link test
-OPTS_foo := extra options to pass to test
-RET_foo := expected exit code of test; default is 0
-WRAPPER_foo := execute stuff just before test
-
-Or to control all tests in a subdir:
-EXTRA_CLEAN := extra files to remove in the clean target
-EXTRA_DIRS := extra directories to remove in the clean target
-EXTRA_CFLAGS := -DFOO
-EXTRA_LDFLAGS := -lpthread
-OPTS :=
-WRAPPER :=
-
-If you want to compare the output of a test with known good output, then just
-create a local file named "foo.out.good" and the output generated by the test
-"foo" will be automatically stored in "foo.out" and compared to "foo.out.good".
diff --git a/test/Rules.mak b/test/Rules.mak
deleted file mode 100644
index 9416a0c..0000000
--- a/test/Rules.mak
+++ /dev/null
@@ -1,165 +0,0 @@
-# Rules.mak for uClibc test subdirs
-#
-# Copyright (C) 2000-2006 Erik Andersen <andersen(a)uclibc.org>
-#
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-#
-
-.SUFFIXES:
-
-top_builddir ?= ../
-abs_top_builddir ?= $(shell cd $(top_builddir); pwd)/
-
-TESTDIR=$(top_builddir)test/
-
-include $(top_srcdir)Rules.mak
-ifeq ($(filter $(clean_targets) CLEAN_%,$(MAKECMDGOALS)),)
-ifeq ($(HAVE_DOT_CONFIG),)
-$(error no HAVE_DOT_CONFIG, failed to read .config)
-endif
-endif
-
-ifdef UCLIBC_LDSO
-ifeq (,$(findstring /,$(UCLIBC_LDSO)))
-UCLIBC_LDSO := $(UCLIBC_LDSO)
-else
-UCLIBC_LDSO := $(notdir $(UCLIBC_LDSO))
-endif
-else
-UCLIBC_LDSO := $(notdir $(firstword $(wildcard $(top_builddir)lib/ld*)))
-endif
-ifndef TEST_INSTALLED_UCLIBC
-ifeq ($(LDSO_SAFE_RUNPATH),y)
-UCLIBC_PATH := $(abs_top_builddir)lib
-else
-UCLIBC_PATH := $(top_builddir)lib
-endif
-else
-UCLIBC_PATH := $(RUNTIME_PREFIX)$(MULTILIB_DIR)
-endif
-#--------------------------------------------------------
-# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
-LC_ALL:= C
-export LC_ALL
-
-ifeq ($(strip $(TARGET_ARCH)),)
-TARGET_ARCH:=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
- -e 's/i.86/i386/' \
- -e 's/sun.*/sparc/' -e 's/sparc.*/sparc/' \
- -e 's/sa110/arm/' -e 's/arm.*/arm/g' \
- -e 's/m68k.*/m68k/' \
- -e 's/parisc.*/hppa/' \
- -e 's/ppc/powerpc/g' \
- -e 's/sh[234]/sh/' \
- -e 's/mips.*/mips/' \
- -e 's/cris.*/cris/' \
- -e 's/xtensa.*/xtensa/' \
- )
-endif
-export TARGET_ARCH
-
-RM_R = $(Q)$(RM) -r
-LN_S = $(Q)$(LN) -fs
-
-ifneq ($(KERNEL_HEADERS),)
-ifeq ($(patsubst /%,/,$(KERNEL_HEADERS)),/)
-# Absolute path in KERNEL_HEADERS
-KERNEL_INCLUDES += -I$(KERNEL_HEADERS)
-else
-# Relative path in KERNEL_HEADERS
-KERNEL_INCLUDES += -I$(top_builddir)$(KERNEL_HEADERS)
-endif
-endif
-
-XCOMMON_CFLAGS := -I$(top_builddir)test -D_GNU_SOURCE
-XWARNINGS += $(CFLAG_-Wstrict-prototypes)
-CFLAGS := -nostdinc -I$(top_builddir)$(LOCAL_INSTALL_PATH)/usr/include
-CFLAGS += $(XCOMMON_CFLAGS) $(KERNEL_INCLUDES) $(CC_INC)
-CFLAGS += $(OPTIMIZATION) $(CPU_CFLAGS) $(XWARNINGS)
-
-$(eval $(call check-gcc-var,-Wno-missing-field-initializers))
-CFLAGS += $(CFLAG_-Wno-missing-field-initializers)
-
-# Can't add $(OPTIMIZATION) here, it may be target-specific.
-# Just adding -Os for now.
-HOST_CFLAGS += $(XCOMMON_CFLAGS) -Os $(XWARNINGS) -std=gnu99
-
-LDFLAGS := $(CPU_LDFLAGS-y) -Wl,-z,now
-ifeq ($(DODEBUG),y)
- CFLAGS += -g
- HOST_CFLAGS += -g
- LDFLAGS += -Wl,-g
- HOST_LDFLAGS += -Wl,-g
-endif
-
-ifeq ($(DOSTRIP),y)
- LDFLAGS += -Wl,-s
- HOST_LDFLAGS += -Wl,-s
-endif
-
-ifneq ($(HAVE_SHARED),y)
- LDFLAGS += -Wl,-static -static-libgcc
-endif
-
-ifndef TEST_INSTALLED_UCLIBC
-LDFLAGS += -B$(UCLIBC_PATH) -Wl,-rpath,$(UCLIBC_PATH):$(shell pwd) -Wl,-rpath-link,$(UCLIBC_PATH):$(shell pwd)
-else
-LDFLAGS += -Wl,-rpath,$(shell pwd)
-endif
-
-ifeq ($(findstring -static,$(LDFLAGS)),)
-LDFLAGS += -Wl,--dynamic-linker,$(UCLIBC_PATH)/$(UCLIBC_LDSO)
-endif
-
-ifeq ($(LDSO_GNU_HASH_SUPPORT),y)
-# Check for binutils support is done on root Rules.mak
-LDFLAGS += $(CFLAG_-Wl--hash-style=gnu)
-endif
-
-ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"")
-CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS))
-endif
-ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),"")
-LDFLAGS += $(call qstrip,$(UCLIBC_EXTRA_LDFLAGS))
-endif
-
-ifneq ($(findstring -s,$(MAKEFLAGS)),)
-DISP := sil
-Q := @
-SCAT := -@true
-else
-ifneq ($(V)$(VERBOSE),)
-DISP := ver
-Q :=
-SCAT := cat
-else
-DISP := pur
-Q := @
-SCAT := -@true
-endif
-endif
-ifneq ($(Q),)
-MAKEFLAGS += --no-print-directory
-endif
-
-banner := ---------------------------------
-pur_showclean = echo " "CLEAN $(notdir $(CURDIR))
-pur_showdiff = echo " "TEST_DIFF $(notdir $(CURDIR))/
-pur_showlink = echo " "TEST_LINK $(notdir $(CURDIR))/ $@
-pur_showtest = echo " "TEST_EXEC $(notdir $(CURDIR))/ $(@:.exe=)
-sil_showclean =
-sil_showdiff = true
-sil_showlink = true
-sil_showtest = true
-ver_showclean =
-ver_showdiff = true echo
-ver_showlink = true echo
-ver_showtest = printf "\n$(banner)\nTEST $(notdir $(CURDIR))/ $(@:.exe=)\n$(banner)\n"
-do_showclean = $($(DISP)_showclean)
-do_showdiff = $($(DISP)_showdiff)
-do_showlink = $($(DISP)_showlink)
-do_showtest = $($(DISP)_showtest)
-showclean = @$(do_showclean)
-showdiff = @$(do_showdiff)
-showlink = @$(do_showlink)
-showtest = @$(do_showtest)
diff --git a/test/Test.mak b/test/Test.mak
deleted file mode 100644
index c9b1f5a..0000000
--- a/test/Test.mak
+++ /dev/null
@@ -1,155 +0,0 @@
-# Common makefile rules for tests
-#
-# Copyright (C) 2000-2006 Erik Andersen <andersen(a)uclibc.org>
-#
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-shellescape='$(subst ','\'',$(1))'
-
-ifeq ($(TESTS),)
-TESTS := $(patsubst %.c,%,$(wildcard *.c))
-endif
-ifneq ($(TESTS_DISABLED),)
-TESTS := $(filter-out $(TESTS_DISABLED),$(TESTS))
-endif
-ifeq ($(SHELL_TESTS),)
-SHELL_TESTS := $(patsubst %.sh,shell_%,$(wildcard *.sh))
-endif
-
-ifneq ($(filter-out test,$(strip $(TESTS))),$(strip $(TESTS)))
-$(error Sanity check: cannot have a test named "test.c")
-endif
-
-U_TARGETS := $(TESTS)
-G_TARGETS := $(addsuffix _glibc,$(U_TARGETS))
-
-ifneq ($(GLIBC_TESTS_DISABLED),)
-G_TARGETS := $(filter-out $(GLIBC_TESTS_DISABLED),$(G_TARGETS))
-endif
-
-ifeq ($(GLIBC_ONLY),)
-TARGETS += $(U_TARGETS)
-endif
-ifeq ($(UCLIBC_ONLY),)
-TARGETS += $(G_TARGETS)
-endif
-
-CLEAN_TARGETS := $(U_TARGETS) $(G_TARGETS)
-CLEAN_TARGETS += $(TESTS_DISABLED) $(addsuffix _glibc,$(TESTS_DISABLED)) $(GLIBC_TESTS_DISABLED)
-COMPILE_TARGETS := $(TARGETS)
-# We sort the targets so uClibc and host-libc tests are run adjacent
-RUN_TARGETS := $(sort $(addsuffix .exe,$(TARGETS)))
-COMPILE_TARGETS := $(sort $(COMPILE_TARGETS))
-# provide build rules even for disabled tests:
-U_TARGETS += $(TESTS_DISABLED)
-G_TARGETS += $(addsuffix _glibc,$(TESTS_DISABLED)) $(GLIBC_TESTS_DISABLED)
-TARGETS += $(SHELL_TESTS)
-CFLAGS += $(CFLAGS_$(notdir $(CURDIR)))
-ifeq (1,$(UCLIBCNG_GENERATE_TESTRUNNER))
-UCLIBCNG_TEST_SUBDIR ?= $(patsubst $(realpath $(TESTDIR))/%,%,$(CURDIR))
-endif
-
-define binary_name
-$(patsubst %.exe,%,$@)
-endef
-define tst_src_name
-$(patsubst %_glibc,%,$(binary_name))
-endef
-
-define diff_test
- $(Q)\
- for x in "$(binary_name).out" "$(tst_src_name).out" ; do \
- test -e "$$x.good" && $(do_showdiff) "$(binary_name).out" "$$x.good" && exec diff -u "$(binary_name).out" "$$x.good" ; \
- done ; \
- true
-endef
-define uclibc_glibc_diff_test
- $(Q)\
- test -z "$(DODIFF_$(tst_src_name))" && exec true ; \
- uclibc_out="$(binary_name).out" ; \
- glibc_out="$(tst_src_name).out" ; \
- $(do_showdiff) $$uclibc_out $$glibc_out ; \
- exec diff -u "$$uclibc_out" "$$glibc_out"
-endef
-define exec_test
- $(showtest)
- $(Q)\
- $(SIMULATOR) $(WRAPPER) $(WRAPPER_$(tst_src_name)) \
- ./$(binary_name) $(OPTS) $(OPTS_$(tst_src_name)) > "$(binary_name).out" 2>&1 ; \
- ret=$$? ; \
- expected_ret="$(RET_$(tst_src_name))" ; \
- test -z "$$expected_ret" && export expected_ret=0 ; \
- if ! test $$ret -eq $$expected_ret ; then \
- echo "ret == $$ret ; expected_ret == $$expected_ret" ; \
- echo "The output of the failed test is:"; \
- cat "$(binary_name).out"; \
- exit 1 ; \
- fi
- $(SCAT) "$(binary_name).out"
-endef
-
-test check all: run
-run: $(RUN_TARGETS)
-
-$(addsuffix .exe,$(U_TARGETS)): SIMULATOR:=$(SIMULATOR_uclibc)
-$(addsuffix .exe,$(G_TARGETS)): SIMULATOR:=$(SIMULATOR_glibc)
-$(RUN_TARGETS):
-ifeq (1,$(UCLIBCNG_GENERATE_TESTRUNNER))
- $(Q)\
- expected_ret="$(RET_$(tst_src_name))"; echo \
- "$${expected_ret:-0}" \
- $(call shellescape,$(tst_src_name)) \
- $(call shellescape,$(binary_name)) \
- $(call shellescape,$(UCLIBCNG_TEST_SUBDIR)) \
- $(call shellescape,$(WRAPPER) $(WRAPPER_$(tst_src_name)) ./$(binary_name) $(OPTS) $(OPTS_$(tst_src_name))) \
- >>$(top_builddir)/test/uclibcng-testrunner.in
-else
- $(exec_test)
- $(diff_test)
-ifeq ($(UCLIBC_ONLY),)
- $(uclibc_glibc_diff_test)
-endif
-endif
-
-compile: $(COMPILE_TARGETS)
-
-G_TARGET_SRCS := $(addsuffix .c,$(G_TARGETS))
-U_TARGET_SRCS := $(addsuffix .c,$(U_TARGETS))
-
-MAKE_SRCS := $(wildcard Makefile.in) $(TESTDIR)Makefile $(TESTDIR)Rules.mak $(TESTDIR)Test.mak
-
-$(U_TARGETS): $(U_TARGET_SRCS) $(MAKE_SRCS)
- $(showlink)
- $(Q)$(CC) $(filter-out $(CFLAGS-OMIT-$@),$(CFLAGS)) $(EXTRA_CFLAGS) $(CFLAGS_$(notdir $(CURDIR))) $(CFLAGS_$@) -c $@.c -o $@.o
- $(Q)$(CC) $(filter-out $(LDFLAGS-OMIT-$@),$(LDFLAGS)) $@.o -o $@ $(EXTRA_LDFLAGS) $(LDFLAGS_$@)
-
-$(G_TARGETS): $(U_TARGET_SRCS) $(MAKE_SRCS)
- $(showlink)
- $(Q)$(HOSTCC) $(filter-out $(HOST_CFLAGS-OMIT-$(patsubst %_glibc,%,$@)),$(HOST_CFLAGS)) \
- $(CFLAGS_$(notdir $(CURDIR))) $(CFLAGS_$(patsubst %_glibc,%,$@)) \
- -c $(patsubst %_glibc,%,$(a)).c -o $@.o
- $(Q)$(HOSTCC) $(filter-out $(LDFLAGS-OMIT-$(patsubst %_glibc,%,$@)),$(HOST_LDFLAGS)) \
- $@.o -o $@ $(EXTRA_LDFLAGS) $(LDFLAGS_$(patsubst %_glibc,%,$@)) $(LDFLAGS_$@)
-
-
-shell_%:
- $(showtest)
- $(Q)$(if $(PRE_RUN_$(@)),$(PRE_RUN_$(@)))
- $(Q)$(SHELL) $(patsubst shell_%,%.sh,$(binary_name))
- $(Q)$(if $(POST_RUN_$(@)),$(POST_RUN_$(@)))
-
-%.so: %.c
- $(showlink)
- $(Q)$(CC) \
- $(filter-out $(CFLAGS-OMIT-$<),$(CFLAGS)) $(EXTRA_CFLAGS) \
- $(CFLAGS_$(patsubst %_glibc,%,$@)) \
- -fPIC -shared $< -o $@ -Wl,-soname,$@ \
- $(filter-out $(LDFLAGS-OMIT-$<),$(LDFLAGS)) $(EXTRA_LIBS) \
- $(LDFLAGS_$(patsubst %_glibc,%,$@))
-
-clean:
- $(showclean)
- $(Q)$(RM) *.a *.o *.so *~ core *.out *.gdb $(CLEAN_TARGETS) $(EXTRA_CLEAN)
- $(Q)$(RM_R) $(EXTRA_DIRS)
-
-.PHONY: all check clean test run compile
diff --git a/test/argp/Makefile b/test/argp/Makefile
deleted file mode 100644
index fcb5a83..0000000
--- a/test/argp/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc argp tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/argp/Makefile.in b/test/argp/Makefile.in
deleted file mode 100644
index c472964..0000000
--- a/test/argp/Makefile.in
+++ /dev/null
@@ -1,10 +0,0 @@
-# uClibc argp tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-TESTS := $(addprefix argp-, ex1 ex2 ex3 ex4 test) \
- bug-argp1 tst-argp1 tst-argp2
-
-OPTS_argp-ex3 = ARG1 ARG2
-OPTS_argp-ex4 = ARG1 string1 string2 string3
-OPTS_bug-argp1 = -- --help
-
diff --git a/test/argp/argp-ex1.c b/test/argp/argp-ex1.c
deleted file mode 100644
index 7bb5f22..0000000
--- a/test/argp/argp-ex1.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Argp example #1 -- a minimal program using argp */
-
-/* This is (probably) the smallest possible program that
- uses argp. It won't do much except give an error
- messages and exit when there are any arguments, and print
- a (rather pointless) messages for --help. */
-
-#include <stdlib.h>
-#include <argp.h>
-
-int main (int argc, char **argv)
-{
- argp_parse (0, argc, argv, 0, 0, 0);
- exit (0);
-}
diff --git a/test/argp/argp-ex2.c b/test/argp/argp-ex2.c
deleted file mode 100644
index c49fbac..0000000
--- a/test/argp/argp-ex2.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Argp example #2 -- a pretty minimal program using argp */
-
-/* This program doesn't use any options or arguments, but uses
- argp to be compliant with the GNU standard command line
- format.
-
- In addition to making sure no arguments are given, and
- implementing a --help option, this example will have a
- --version option, and will put the given documentation string
- and bug address in the --help output, as per GNU standards.
-
- The variable ARGP contains the argument parser specification;
- adding fields to this structure is the way most parameters are
- passed to argp_parse (the first three fields are usually used,
- but not in this small program). There are also two global
- variables that argp knows about defined here,
- ARGP_PROGRAM_VERSION and ARGP_PROGRAM_BUG_ADDRESS (they are
- global variables because they will almost always be constant
- for a given program, even if it uses different argument
- parsers for various tasks). */
-
-#include <stdlib.h>
-#include <argp.h>
-
-const char *argp_program_version =
- "argp-ex2 1.0";
-const char *argp_program_bug_address =
- "<bug-gnu-utils@@gnu.org>";
-
-/* Program documentation. */
-static char doc[] =
- "Argp example #2 -- a pretty minimal program using argp";
-
-/* Our argument parser. The @code{options}, @code{parser}, and
- @code{args_doc} fields are zero because we have neither options or
- arguments; @code{doc} and @code{argp_program_bug_address} will be
- used in the output for @samp{--help}, and the @samp{--version}
- option will print out @code{argp_program_version}. */
-static struct argp argp = { 0, 0, 0, doc };
-
-int main (int argc, char **argv)
-{
- argp_parse (&argp, argc, argv, 0, 0, 0);
- exit (0);
-}
diff --git a/test/argp/argp-ex3.c b/test/argp/argp-ex3.c
deleted file mode 100644
index 24d5c50..0000000
--- a/test/argp/argp-ex3.c
+++ /dev/null
@@ -1,153 +0,0 @@
-/* Argp example #3 -- a program with options and arguments using argp */
-
-/* This program uses the same features as example 2, and uses options and
- arguments.
-
- We now use the first four fields in ARGP, so here's a description of them:
- OPTIONS -- A pointer to a vector of struct argp_option (see below)
- PARSER -- A function to parse a single option, called by argp
- ARGS_DOC -- A string describing how the non-option arguments should look
- DOC -- A descriptive string about this program; if it contains a
- vertical tab character (\v), the part after it will be
- printed *following* the options
-
- The function PARSER takes the following arguments:
- KEY -- An integer specifying which option this is (taken
- from the KEY field in each struct argp_option), or
- a special key specifying something else; the only
- special keys we use here are ARGP_KEY_ARG, meaning
- a non-option argument, and ARGP_KEY_END, meaning
- that all arguments have been parsed
- ARG -- For an option KEY, the string value of its
- argument, or NULL if it has none
- STATE-- A pointer to a struct argp_state, containing
- various useful information about the parsing state; used here
- are the INPUT field, which reflects the INPUT argument to
- argp_parse, and the ARG_NUM field, which is the number of the
- current non-option argument being parsed
- It should return either 0, meaning success, ARGP_ERR_UNKNOWN, meaning the
- given KEY wasn't recognized, or an errno value indicating some other
- error.
-
- Note that in this example, main uses a structure to communicate with the
- parse_opt function, a pointer to which it passes in the INPUT argument to
- argp_parse. Of course, it's also possible to use global variables
- instead, but this is somewhat more flexible.
-
- The OPTIONS field contains a pointer to a vector of struct argp_option's;
- that structure has the following fields (if you assign your option
- structures using array initialization like this example, unspecified
- fields will be defaulted to 0, and need not be specified):
- NAME -- The name of this option's long option (may be zero)
- KEY -- The KEY to pass to the PARSER function when parsing this option,
- *and* the name of this option's short option, if it is a
- printable ascii character
- ARG -- The name of this option's argument, if any
- FLAGS -- Flags describing this option; some of them are:
- OPTION_ARG_OPTIONAL -- The argument to this option is optional
- OPTION_ALIAS -- This option is an alias for the
- previous option
- OPTION_HIDDEN -- Don't show this option in --help output
- DOC -- A documentation string for this option, shown in --help output
-
- An options vector should be terminated by an option with all fields zero. */
-
-#include <stdlib.h>
-#include <argp.h>
-
-const char *argp_program_version =
- "argp-ex3 1.0";
-const char *argp_program_bug_address =
- "<bug-gnu-utils@@gnu.org>";
-
-/* Program documentation. */
-static char doc[] =
- "Argp example #3 -- a program with options and arguments using argp";
-
-/* A description of the arguments we accept. */
-static char args_doc[] = "ARG1 ARG2";
-
-/* The options we understand. */
-static struct argp_option options[] = {
- {"verbose", 'v', 0, 0, "Produce verbose output" },
- {"quiet", 'q', 0, 0, "Don't produce any output" },
- {"silent", 's', 0, OPTION_ALIAS },
- {"output", 'o', "FILE", 0,
- "Output to FILE instead of standard output" },
- { 0 }
-};
-
-/* Used by @code{main} to communicate with @code{parse_opt}. */
-struct arguments
-{
- char *args[2]; /* @var{arg1} & @var{arg2} */
- int silent, verbose;
- char *output_file;
-};
-
-/* Parse a single option. */
-static error_t
-parse_opt (int key, char *arg, struct argp_state *state)
-{
- /* Get the @var{input} argument from @code{argp_parse}, which we
- know is a pointer to our arguments structure. */
- struct arguments *arguments = state->input;
-
- switch (key)
- {
- case 'q': case 's':
- arguments->silent = 1;
- break;
- case 'v':
- arguments->verbose = 1;
- break;
- case 'o':
- arguments->output_file = arg;
- break;
-
- case ARGP_KEY_ARG:
- if (state->arg_num >= 2)
- /* Too many arguments. */
- argp_usage (state);
-
- arguments->args[state->arg_num] = arg;
-
- break;
-
- case ARGP_KEY_END:
- if (state->arg_num < 2)
- /* Not enough arguments. */
- argp_usage (state);
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
-
-/* Our argp parser. */
-static struct argp argp = { options, parse_opt, args_doc, doc };
-
-int main (int argc, char **argv)
-{
- struct arguments arguments;
-
- /* Default values. */
- arguments.silent = 0;
- arguments.verbose = 0;
- arguments.output_file = "-";
-
- /* Parse our arguments; every option seen by @code{parse_opt} will
- be reflected in @code{arguments}. */
- argp_parse (&argp, argc, argv, 0, 0, &arguments);
-
- printf ("ARG1 = %s\nARG2 = %s\nOUTPUT_FILE = %s\n"
- "VERBOSE = %s\nSILENT = %s\n",
- arguments.args[0], arguments.args[1],
- arguments.output_file,
- arguments.verbose ? "yes" : "no",
- arguments.silent ? "yes" : "no");
-
- exit (0);
-}
diff --git a/test/argp/argp-ex4.c b/test/argp/argp-ex4.c
deleted file mode 100644
index c77c7ef..0000000
--- a/test/argp/argp-ex4.c
+++ /dev/null
@@ -1,167 +0,0 @@
-/* Argp example #4 -- a program with somewhat more complicated options */
-
-/* This program uses the same features as example 3, but has more
- options, and somewhat more structure in the -help output. It
- also shows how you can `steal' the remainder of the input
- arguments past a certain point, for programs that accept a
- list of items. It also shows the special argp KEY value
- ARGP_KEY_NO_ARGS, which is only given if no non-option
- arguments were supplied to the program.
-
- For structuring the help output, two features are used,
- *headers* which are entries in the options vector with the
- first four fields being zero, and a two part documentation
- string (in the variable DOC), which allows documentation both
- before and after the options; the two parts of DOC are
- separated by a vertical-tab character ('\v', or '\013'). By
- convention, the documentation before the options is just a
- short string saying what the program does, and that afterwards
- is longer, describing the behavior in more detail. All
- documentation strings are automatically filled for output,
- although newlines may be included to force a line break at a
- particular point. All documentation strings are also passed to
- the `gettext' function, for possible translation into the
- current locale. */
-
-#include <stdlib.h>
-#include <error.h>
-#include <argp.h>
-
-const char *argp_program_version =
- "argp-ex4 1.0";
-const char *argp_program_bug_address =
- "<bug-gnu-utils@@prep.ai.mit.edu>";
-
-/* Program documentation. */
-static char doc[] =
- "Argp example #4 -- a program with somewhat more complicated\
-options\
-\vThis part of the documentation comes *after* the options;\
- note that the text is automatically filled, but it's possible\
- to force a line-break, e.g.\n<-- here.";
-
-/* A description of the arguments we accept. */
-static char args_doc[] = "ARG1 [STRING...]";
-
-/* Keys for options without short-options. */
-#define OPT_ABORT 1 /* --abort */
-
-/* The options we understand. */
-static struct argp_option options[] = {
- {"verbose", 'v', 0, 0, "Produce verbose output" },
- {"quiet", 'q', 0, 0, "Don't produce any output" },
- {"silent", 's', 0, OPTION_ALIAS },
- {"output", 'o', "FILE", 0,
- "Output to FILE instead of standard output" },
-
- {0,0,0,0, "The following options should be grouped together:" },
- {"repeat", 'r', "COUNT", OPTION_ARG_OPTIONAL,
- "Repeat the output COUNT (default 10) times"},
- {"abort", OPT_ABORT, 0, 0, "Abort before showing any output"},
-
- { 0 }
-};
-
-/* Used by @code{main} to communicate with @code{parse_opt}. */
-struct arguments
-{
- char *arg1; /* @var{arg1} */
- char **strings; /* [@var{string}@dots{}] */
- int silent, verbose, abort; /* @samp{-s}, @samp{-v}, @samp{--abort} */
- char *output_file; /* @var{file} arg to @samp{--output} */
- int repeat_count; /* @var{count} arg to @samp{--repeat} */
-};
-
-/* Parse a single option. */
-static error_t
-parse_opt (int key, char *arg, struct argp_state *state)
-{
- /* Get the @code{input} argument from @code{argp_parse}, which we
- know is a pointer to our arguments structure. */
- struct arguments *arguments = state->input;
-
- switch (key)
- {
- case 'q': case 's':
- arguments->silent = 1;
- break;
- case 'v':
- arguments->verbose = 1;
- break;
- case 'o':
- arguments->output_file = arg;
- break;
- case 'r':
- arguments->repeat_count = arg ? atoi (arg) : 10;
- break;
- case OPT_ABORT:
- arguments->abort = 1;
- break;
-
- case ARGP_KEY_NO_ARGS:
- argp_usage (state);
-
- case ARGP_KEY_ARG:
- /* Here we know that @code{state->arg_num == 0}, since we
- force argument parsing to end before any more arguments can
- get here. */
- arguments->arg1 = arg;
-
- /* Now we consume all the rest of the arguments.
- @code{state->next} is the index in @code{state->argv} of the
- next argument to be parsed, which is the first @var{string}
- we're interested in, so we can just use
- @code{&state->argv[state->next]} as the value for
- arguments->strings.
-
- @emph{In addition}, by setting @code{state->next} to the end
- of the arguments, we can force argp to stop parsing here and
- return. */
- arguments->strings = &state->argv[state->next];
- state->next = state->argc;
-
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
-
-/* Our argp parser. */
-static struct argp argp = { options, parse_opt, args_doc, doc };
-
-int main (int argc, char **argv)
-{
- int i, j;
- struct arguments arguments;
-
- /* Default values. */
- arguments.silent = 0;
- arguments.verbose = 0;
- arguments.output_file = "-";
- arguments.repeat_count = 1;
- arguments.abort = 0;
-
- /* Parse our arguments; every option seen by @code{parse_opt} will be
- reflected in @code{arguments}. */
- argp_parse (&argp, argc, argv, 0, 0, &arguments);
-
- if (arguments.abort)
- error (10, 0, "ABORTED");
-
- for (i = 0; i < arguments.repeat_count; i++)
- {
- printf ("ARG1 = %s\n", arguments.arg1);
- printf ("STRINGS = ");
- for (j = 0; arguments.strings[j]; j++)
- printf (j == 0 ? "%s" : ", %s", arguments.strings[j]);
- printf ("\n");
- printf ("OUTPUT_FILE = %s\nVERBOSE = %s\nSILENT = %s\n",
- arguments.output_file,
- arguments.verbose ? "yes" : "no",
- arguments.silent ? "yes" : "no");
- }
-
- exit (0);
-}
diff --git a/test/argp/argp-test.c b/test/argp/argp-test.c
deleted file mode 100644
index 2e0c749..0000000
--- a/test/argp/argp-test.c
+++ /dev/null
@@ -1,208 +0,0 @@
-/* Test program for argp argument parser
- Copyright (C) 1997 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Written by Miles Bader <miles at gnu.ai.mit.edu>.
-
- 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; see the file COPYING.LIB. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <time.h>
-#include <string.h>
-#include <argp.h>
-
-const char *argp_program_version = "argp-test 1.0";
-
-struct argp_option sub_options[] =
-{
- {"subopt1", 's', 0, 0, "Nested option 1"},
- {"subopt2", 'S', 0, 0, "Nested option 2"},
-
- { 0, 0, 0, 0, "Some more nested options:", 10},
- {"subopt3", 'p', 0, 0, "Nested option 3"},
-
- {"subopt4", 'q', 0, 0, "Nested option 4", 1},
-
- {0}
-};
-
-static const char sub_args_doc[] = "STRING...\n-";
-static const char sub_doc[] = "\vThis is the doc string from the sub-arg-parser.";
-
-static error_t
-sub_parse_opt (int key, char *arg, struct argp_state *state)
-{
- switch (key)
- {
- case ARGP_KEY_NO_ARGS:
- printf ("NO SUB ARGS\n");
- break;
- case ARGP_KEY_ARG:
- printf ("SUB ARG: %s\n", arg);
- break;
-
- case 's' : case 'S': case 'p': case 'q':
- printf ("SUB KEY %c\n", key);
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
-
-static char *
-sub_help_filter (int key, const char *text, void *input)
-{
- if (key == ARGP_KEY_HELP_EXTRA)
- return strdup ("This is some extra text from the sub parser (note that it \
-is preceded by a blank line).");
- else
- return (char *)text;
-}
-
-static struct argp sub_argp = {
- sub_options, sub_parse_opt, sub_args_doc, sub_doc, 0, sub_help_filter
-};
-
-/* Structure used to communicate with the parsing functions. */
-struct params
-{
- unsigned foonly; /* Value parsed for foonly. */
- unsigned foonly_default; /* Default value for it. */
-};
-
-#define OPT_PGRP 1
-#define OPT_SESS 2
-
-struct argp_option options[] =
-{
- {"pid", 'p', "PID", 0, "List the process PID"},
- {"pgrp", OPT_PGRP,"PGRP",0, "List processes in the process group PGRP"},
- {"no-parent", 'P', 0, 0, "Include processes without parents"},
- {0, 'x', 0, OPTION_ALIAS},
- {"all-fields",'Q', 0, 0, "Don't elide unusable fields (normally"
- " if there's some reason ps can't"
- " print a field for any process, it's"
- " removed from the output entirely)" },
- {"reverse", 'r', 0, 0, "Reverse the order of any sort"},
- {"gratuitously-long-reverse-option", 0, 0, OPTION_ALIAS},
- {"session", OPT_SESS,"SID", OPTION_ARG_OPTIONAL,
- "Add the processes from the session"
- " SID (which defaults to the sid of"
- " the current process)" },
-
- {0,0,0,0, "Here are some more options:"},
- {"foonly", 'f', "ZOT", OPTION_ARG_OPTIONAL, "Glork a foonly"},
- {"zaza", 'z', 0, 0, "Snit a zar"},
-
- {0}
-};
-
-static const char args_doc[] = "STRING";
-static const char doc[] = "Test program for argp."
- "\vThis doc string comes after the options."
- "\nHey! Some manual formatting!"
- "\nThe current time is: %s";
-
-static void
-popt (int key, char *arg)
-{
- char buf[10];
- if (isprint (key))
- sprintf (buf, "%c", key);
- else
- sprintf (buf, "%d", key);
- if (arg)
- printf ("KEY %s: %s\n", buf, arg);
- else
- printf ("KEY %s\n", buf);
-}
-
-static error_t
-parse_opt (int key, char *arg, struct argp_state *state)
-{
- struct params *params = state->input;
-
- switch (key)
- {
- case ARGP_KEY_NO_ARGS:
- printf ("NO ARGS\n");
- break;
-
- case ARGP_KEY_ARG:
- if (state->arg_num > 0)
- return ARGP_ERR_UNKNOWN; /* Leave it for the sub-arg parser. */
- printf ("ARG: %s\n", arg);
- break;
-
- case 'f':
- if (arg)
- params->foonly = atoi (arg);
- else
- params->foonly = params->foonly_default;
- popt (key, arg);
- break;
-
- case 'p': case 'P': case OPT_PGRP: case 'x': case 'Q':
- case 'r': case OPT_SESS: case 'z':
- popt (key, arg);
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
-
-static char *
-help_filter (int key, const char *text, void *input)
-{
- char *new_text;
- struct params *params = input;
-
- if (key == ARGP_KEY_HELP_POST_DOC && text)
- {
- time_t now = time (0);
- asprintf (&new_text, text, ctime (&now));
- }
- else if (key == 'f')
- /* Show the default for the --foonly option. */
- asprintf (&new_text, "%s (ZOT defaults to %x)",
- text, params->foonly_default);
- else
- new_text = (char *)text;
-
- return new_text;
-}
-
-static struct argp_child argp_children[] = { { &sub_argp }, { 0 } };
-static struct argp argp = {
- options, parse_opt, args_doc, doc, argp_children, help_filter
-};
-
-int
-main (int argc, char **argv)
-{
- struct params params;
- params.foonly = 0;
- params.foonly_default = random ();
- argp_parse (&argp, argc, argv, 0, 0, ¶ms);
- printf ("After parsing: foonly = %x\n", params.foonly);
- return 0;
-}
diff --git a/test/argp/bug-argp1.c b/test/argp/bug-argp1.c
deleted file mode 100644
index a28cf4b..0000000
--- a/test/argp/bug-argp1.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <argp.h>
-
-
-static const struct argp_option test_options[] =
-{
- { NULL, 'a', NULL, OPTION_DOC, NULL },
- { NULL, 'b', NULL, OPTION_DOC, NULL },
- { NULL, 0, NULL, 0, NULL }
-};
-
-static struct argp test_argp =
-{
- test_options
-};
-
-
-static int
-do_test (int argc, char *argv[])
-{
- int i;
- argp_parse (&test_argp, argc, argv, 0, &i, NULL);
- return 0;
-}
-
-#define TEST_FUNCTION do_test (argc, argv)
-#include "../test-skeleton.c"
diff --git a/test/argp/tst-argp1.c b/test/argp/tst-argp1.c
deleted file mode 100644
index 912e0cb..0000000
--- a/test/argp/tst-argp1.c
+++ /dev/null
@@ -1,117 +0,0 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper at redhat.com>, 2002.
-
- 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; see the file COPYING.LIB. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <argp.h>
-
-
-
-
-#define OPT_TO_THREAD 300
-#define OPT_TO_PROCESS 301
-#define OPT_SYNC_SIGNAL 302
-#define OPT_SYNC_JOIN 303
-#define OPT_TOPLEVEL 304
-
-
-static const struct argp_option test_options[] =
- {
- { NULL, 0, NULL, 0, "\
-This is a test for threads so we allow ther user to selection the number of \
-threads which are used at any one time. Independently the total number of \
-rounds can be selected. This is the total number of threads which will have \
-run when the process terminates:" },
- { "threads", 't', "NUMBER", 0, "Number of threads used at once" },
- { "starts", 's', "NUMBER", 0, "Total number of working threads" },
- { "toplevel", OPT_TOPLEVEL, "NUMBER", 0,
- "Number of toplevel threads which start the other threads; this \
-implies --sync-join" },
-
- { NULL, 0, NULL, 0, "\
-Each thread can do one of two things: sleep or do work. The latter is 100% \
-CPU bound. The work load is the probability a thread does work. All values \
-from zero to 100 (inclusive) are valid. How often each thread repeats this \
-can be determined by the number of rounds. The work cost determines how long \
-each work session (not sleeping) takes. If it is zero a thread would \
-effectively nothing. By setting the number of rounds to zero the thread \
-does no work at all and pure thread creation times can be measured." },
- { "workload", 'w', "PERCENT", 0, "Percentage of time spent working" },
- { "workcost", 'c', "NUMBER", 0,
- "Factor in the cost of each round of working" },
- { "rounds", 'r', "NUMBER", 0, "Number of rounds each thread runs" },
-
- { NULL, 0, NULL, 0, "\
-There are a number of different methods how thread creation can be \
-synchronized. Synchronization is necessary since the number of concurrently \
-running threads is limited." },
- { "sync-signal", OPT_SYNC_SIGNAL, NULL, 0,
- "Synchronize using a signal (default)" },
- { "sync-join", OPT_SYNC_JOIN, NULL, 0, "Synchronize using pthread_join" },
-
- { NULL, 0, NULL, 0, "\
-One parameter for each threads execution is the size of the stack. If this \
-parameter is not used the system's default stack size is used. If many \
-threads are used the stack size should be chosen quite small." },
- { "stacksize", 'S', "BYTES", 0, "Size of threads stack" },
- { "guardsize", 'g', "BYTES", 0,
- "Size of stack guard area; must fit into the stack" },
-
- { NULL, 0, NULL, 0, "Signal options:" },
- { "to-thread", OPT_TO_THREAD, NULL, 0, "Send signal to main thread" },
- { "to-process", OPT_TO_PROCESS, NULL, 0,
- "Send signal to process (default)" },
-
- { NULL, 0, NULL, 0, "Administrative options:" },
- { "progress", 'p', NULL, 0, "Show signs of progress" },
- { "timing", 'T', NULL, 0,
- "Measure time from startup to the last thread finishing" },
- { NULL, 0, NULL, 0, NULL }
- };
-
-/* Prototype for option handler. */
-static error_t parse_opt (int key, char *arg, struct argp_state *state);
-
-/* Data structure to communicate with argp functions. */
-static struct argp argp =
-{
- test_options, parse_opt
-};
-
-
-static int
-do_test (void)
-{
- int argc = 2;
- char *argv[3] = { (char *) "tst-argp1", (char *) "--help", NULL };
- int remaining;
-
- /* Parse and process arguments. */
- argp_parse (&argp, argc, argv, 0, &remaining, NULL);
-
- return 0;
-}
-
-
-/* Handle program arguments. */
-static error_t
-parse_opt (int key, char *arg, struct argp_state *state)
-{
- return ARGP_ERR_UNKNOWN;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/argp/tst-argp2.c b/test/argp/tst-argp2.c
deleted file mode 100644
index 03afc0b..0000000
--- a/test/argp/tst-argp2.c
+++ /dev/null
@@ -1,100 +0,0 @@
-/* Copyright (C) 2007 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Jakub Jelinek <jakub at redhat.com>, 2007.
-
- 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; see the file COPYING.LIB. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <argp.h>
-
-static const struct argp_option opt1[] =
- {
- { "opt1", '1', "NUMBER", 0, "Option 1" },
- { NULL, 0, NULL, 0, NULL }
- };
-
-static const struct argp_option opt2[] =
- {
- { "opt2", '2', "NUMBER", 0, "Option 2" },
- { NULL, 0, NULL, 0, NULL }
- };
-
-static const struct argp_option opt3[] =
- {
- { "opt3", '3', "NUMBER", 0, "Option 3" },
- { NULL, 0, NULL, 0, NULL }
- };
-
-static const struct argp_option opt4[] =
- {
- { "opt4", '4', "NUMBER", 0, "Option 4" },
- { NULL, 0, NULL, 0, NULL }
- };
-
-static const struct argp_option opt5[] =
- {
- { "opt5", '5', "NUMBER", 0, "Option 5" },
- { NULL, 0, NULL, 0, NULL }
- };
-
-static struct argp argp5 =
- {
- opt5, NULL, "args doc5", "doc5", NULL, NULL, NULL
- };
-
-static struct argp argp4 =
- {
- opt4, NULL, "args doc4", "doc4", NULL, NULL, NULL
- };
-
-static struct argp argp3 =
- {
- opt3, NULL, "args doc3", "doc3", NULL, NULL, NULL
- };
-
-static struct argp_child children2[] =
- {
- { &argp4, 0, "child3", 3 },
- { &argp5, 0, "child4", 4 },
- { NULL, 0, NULL, 0 }
- };
-
-static struct argp argp2 =
- {
- opt2, NULL, "args doc2", "doc2", children2, NULL, NULL
- };
-
-static struct argp_child children1[] =
- {
- { &argp2, 0, "child1", 1 },
- { &argp3, 0, "child2", 2 },
- { NULL, 0, NULL, 0 }
- };
-
-static struct argp argp1 =
- {
- opt1, NULL, "args doc1", "doc1", children1, NULL, NULL
- };
-
-
-static int
-do_test (void)
-{
- argp_help (&argp1, stdout, ARGP_HELP_LONG, (char *) "tst-argp2");
- return 0;
-}
-
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/args/Makefile b/test/args/Makefile
deleted file mode 100644
index 0ae3f01..0000000
--- a/test/args/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc args tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/args/Makefile.in b/test/args/Makefile.in
deleted file mode 100644
index f4edab4..0000000
--- a/test/args/Makefile.in
+++ /dev/null
@@ -1,9 +0,0 @@
-# uClibc args tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-OPTS_arg_test = a b c d e f g h
-WRAPPER_arg_test = \
- env -i \
- ENVVAR=123 \
- SOMETHING=sldajfasdf \
- BLAHBLAH=" hi hi "
diff --git a/test/args/arg_test.c b/test/args/arg_test.c
deleted file mode 100644
index 86f3157..0000000
--- a/test/args/arg_test.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * Test application for argc and argv handling
- * Copyright (C) 2000-2006 by Erik Andersen <andersen(a)uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-int main(int argc, char **argv)
-{
- int i=0;
- char** index=__environ;
-
-#ifdef __powerpc__
- {
- unsigned long sp;
- sp = (unsigned long) __builtin_frame_address(0);
- if(sp&0xf){
- printf("stack pointer is unaligned! (%08lx)\n", sp);
- }
- }
-#endif
-
- printf("argc=%d\n", argc);
-
- for(i=0;i<argc;i++) {
- printf("argv[%d]='%s'\n", i, argv[i]);
- }
-
- i=0;
- while(*index) {
- printf("environ[%d]='%s'\n", i++, *index++);
- }
-
- exit(0);
-}
diff --git a/test/args/arg_test.out.good b/test/args/arg_test.out.good
deleted file mode 100644
index 937a803..0000000
--- a/test/args/arg_test.out.good
+++ /dev/null
@@ -1,13 +0,0 @@
-argc=9
-argv[0]='./arg_test'
-argv[1]='a'
-argv[2]='b'
-argv[3]='c'
-argv[4]='d'
-argv[5]='e'
-argv[6]='f'
-argv[7]='g'
-argv[8]='h'
-environ[0]='ENVVAR=123'
-environ[1]='SOMETHING=sldajfasdf'
-environ[2]='BLAHBLAH= hi hi '
diff --git a/test/args/arg_test_glibc.out.good b/test/args/arg_test_glibc.out.good
deleted file mode 100644
index af0efcb..0000000
--- a/test/args/arg_test_glibc.out.good
+++ /dev/null
@@ -1,13 +0,0 @@
-argc=9
-argv[0]='./arg_test_glibc'
-argv[1]='a'
-argv[2]='b'
-argv[3]='c'
-argv[4]='d'
-argv[5]='e'
-argv[6]='f'
-argv[7]='g'
-argv[8]='h'
-environ[0]='ENVVAR=123'
-environ[1]='SOMETHING=sldajfasdf'
-environ[2]='BLAHBLAH= hi hi '
diff --git a/test/assert/Makefile b/test/assert/Makefile
deleted file mode 100644
index 841a4da..0000000
--- a/test/assert/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc assert tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/assert/Makefile.in b/test/assert/Makefile.in
deleted file mode 100644
index 8e3514f..0000000
--- a/test/assert/Makefile.in
+++ /dev/null
@@ -1,5 +0,0 @@
-# uClibc assert tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-RET_assert := 134
-WRAPPER_assert := trap ":" ABRT ;
diff --git a/test/assert/assert.c b/test/assert/assert.c
deleted file mode 100644
index c7058ff..0000000
--- a/test/assert/assert.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * Test application for functions defined in ctype.h
- * Copyright (C) 2000-2006 by Erik Andersen <andersen(a)uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#undef NDEBUG
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <signal.h>
-#include "../testsuite.h"
-
-int got_abort;
-
-static void aborthandler(int junk)
-{
- got_abort = 1;
-}
-
-int main(int argc, char *argv[])
-{
- signal(SIGABRT, aborthandler);
-
- init_testsuite("Testing functions defined in assert.h:\n\t");
-
- got_abort=0;
- assert(0 == 0);
- TEST_NUMERIC(got_abort, 0);
-
-#define NDEBUG
- got_abort = 0;
- printf("Don't worry -- This next test is supposed to print an assert message:\n");
- fprintf(stderr, "\t");
- assert(0 == 1);
- TEST_NUMERIC(got_abort, 0);
-
-#undef NDEBUG
- got_abort = 0;
- assert(0 == 1);
- TEST_NUMERIC(got_abort, 1);
-
- exit(0);
-}
diff --git a/test/build/Makefile b/test/build/Makefile
deleted file mode 100644
index ce74a8a..0000000
--- a/test/build/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc build tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/build/check_config_options.sh b/test/build/check_config_options.sh
deleted file mode 100755
index 086131f..0000000
--- a/test/build/check_config_options.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-ret=0
-
-# Make sure nothing uses the ARCH_HAS_MMU option anymore
-result=$(
-find ../.. \
- | grep -v \
- -e include/bits/uClibc_config.h \
- -e /test/ \
- -e /.svn/ \
- | xargs grep -sHI \
- __ARCH_HAS_MMU__
-)
-if [ -n "$result" ] ; then
- echo "The build system is incorrectly using ARCH_HAS_MMU:"
- echo "$result"
- ret=1
-fi
-
-exit $ret
diff --git a/test/crypt/Makefile b/test/crypt/Makefile
deleted file mode 100644
index 25b0f3c..0000000
--- a/test/crypt/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc crypt tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/crypt/Makefile.in b/test/crypt/Makefile.in
deleted file mode 100644
index f852219..0000000
--- a/test/crypt/Makefile.in
+++ /dev/null
@@ -1,15 +0,0 @@
-# uClibc crypt tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-EXTRA_LDFLAGS := -lcrypt
-
-OPTS_crypt = < crypt.input
-
-ifneq ($(UCLIBC_HAS_SHA512_CRYPT_IMPL),y)
-TESTS_DISABLED += sha512c-test
-endif
-ifneq ($(UCLIBC_HAS_SHA256_CRYPT_IMPL),y)
-TESTS_DISABLED += sha256c-test
-endif
-
-WRAPPER := env TIMEOUTFACTOR=50
diff --git a/test/crypt/crypt.c b/test/crypt/crypt.c
deleted file mode 100644
index 7864647..0000000
--- a/test/crypt/crypt.c
+++ /dev/null
@@ -1,103 +0,0 @@
-
-/*
- * This crypt(3) validation program shipped with UFC-crypt
- * is derived from one distributed with Phil Karns PD DES package.
- *
- * @(#)cert.c 1.8 11 Aug 1996
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include "crypt.h"
-
-static int totfails = 0;
-
-static void good_bye (void) __attribute__ ((noreturn));
-static void good_bye (void)
-{
- if(totfails == 0) {
- printf("Passed DES validation suite\n");
- exit(0);
- } else {
- printf("%d failures during DES validation suite!!!\n", totfails);
- exit(1);
- }
-}
-
-static void get8(char *cp)
-{
- int i,j,t;
-
- for(i=0;i<8;i++){
- scanf("%2x",&t);
- if(feof(stdin))
- good_bye();
- for(j=0; j<8 ; j++) {
- *cp++ = (t & (0x01 << (7-j))) != 0;
- }
- }
-}
-
-static void put8(char *cp)
-{
- int i,j,t;
-
- for(i=0;i<8;i++){
- t = 0;
- for(j = 0; j<8; j++)
- t = (t<<1) | *cp++;
- printf("%02x", t);
- }
-}
-
-int main(void)
-{
- char key[64],plain[64],cipher[64],answer[64];
- int i;
- int test;
- int fail;
-
- for(test=0;!feof(stdin);test++){
-
- get8(key);
- printf(" K: "); put8(key);
- setkey(key);
-
- get8(plain);
- printf(" P: "); put8(plain);
-
- get8(answer);
- printf(" C: "); put8(answer);
-
- for(i=0;i<64;i++)
- cipher[i] = plain[i];
- encrypt(cipher, 0);
-
- for(i=0;i<64;i++) {
- if(cipher[i] != answer[i])
- break;
- }
- fail = 0;
- if(i != 64){
- printf(" Encrypt FAIL");
- fail++; totfails++;
- }
-
- encrypt(cipher, 1);
-
- for(i=0;i<64;i++)
- if(cipher[i] != plain[i])
- break;
- if(i != 64){
- printf(" Decrypt FAIL");
- fail++; totfails++;
- }
-
- if(fail == 0)
- printf(" OK");
- printf("\n");
- }
- good_bye();
-}
-
-
diff --git a/test/crypt/crypt.input b/test/crypt/crypt.input
deleted file mode 100644
index d843fa8..0000000
--- a/test/crypt/crypt.input
+++ /dev/null
@@ -1,171 +0,0 @@
-0101010101010101 95f8a5e5dd31d900 8000000000000000
-0101010101010101 dd7f121ca5015619 4000000000000000
-0101010101010101 2e8653104f3834ea 2000000000000000
-0101010101010101 4bd388ff6cd81d4f 1000000000000000
-0101010101010101 20b9e767b2fb1456 0800000000000000
-0101010101010101 55579380d77138ef 0400000000000000
-0101010101010101 6cc5defaaf04512f 0200000000000000
-0101010101010101 0d9f279ba5d87260 0100000000000000
-0101010101010101 d9031b0271bd5a0a 0080000000000000
-0101010101010101 424250b37c3dd951 0040000000000000
-0101010101010101 b8061b7ecd9a21e5 0020000000000000
-0101010101010101 f15d0f286b65bd28 0010000000000000
-0101010101010101 add0cc8d6e5deba1 0008000000000000
-0101010101010101 e6d5f82752ad63d1 0004000000000000
-0101010101010101 ecbfe3bd3f591a5e 0002000000000000
-0101010101010101 f356834379d165cd 0001000000000000
-0101010101010101 2b9f982f20037fa9 0000800000000000
-0101010101010101 889de068a16f0be6 0000400000000000
-0101010101010101 e19e275d846a1298 0000200000000000
-0101010101010101 329a8ed523d71aec 0000100000000000
-0101010101010101 e7fce22557d23c97 0000080000000000
-0101010101010101 12a9f5817ff2d65d 0000040000000000
-0101010101010101 a484c3ad38dc9c19 0000020000000000
-0101010101010101 fbe00a8a1ef8ad72 0000010000000000
-0101010101010101 750d079407521363 0000008000000000
-0101010101010101 64feed9c724c2faf 0000004000000000
-0101010101010101 f02b263b328e2b60 0000002000000000
-0101010101010101 9d64555a9a10b852 0000001000000000
-0101010101010101 d106ff0bed5255d7 0000000800000000
-0101010101010101 e1652c6b138c64a5 0000000400000000
-0101010101010101 e428581186ec8f46 0000000200000000
-0101010101010101 aeb5f5ede22d1a36 0000000100000000
-0101010101010101 e943d7568aec0c5c 0000000080000000
-0101010101010101 df98c8276f54b04b 0000000040000000
-0101010101010101 b160e4680f6c696f 0000000020000000
-0101010101010101 fa0752b07d9c4ab8 0000000010000000
-0101010101010101 ca3a2b036dbc8502 0000000008000000
-0101010101010101 5e0905517bb59bcf 0000000004000000
-0101010101010101 814eeb3b91d90726 0000000002000000
-0101010101010101 4d49db1532919c9f 0000000001000000
-0101010101010101 25eb5fc3f8cf0621 0000000000800000
-0101010101010101 ab6a20c0620d1c6f 0000000000400000
-0101010101010101 79e90dbc98f92cca 0000000000200000
-0101010101010101 866ecedd8072bb0e 0000000000100000
-0101010101010101 8b54536f2f3e64a8 0000000000080000
-0101010101010101 ea51d3975595b86b 0000000000040000
-0101010101010101 caffc6ac4542de31 0000000000020000
-0101010101010101 8dd45a2ddf90796c 0000000000010000
-0101010101010101 1029d55e880ec2d0 0000000000008000
-0101010101010101 5d86cb23639dbea9 0000000000004000
-0101010101010101 1d1ca853ae7c0c5f 0000000000002000
-0101010101010101 ce332329248f3228 0000000000001000
-0101010101010101 8405d1abe24fb942 0000000000000800
-0101010101010101 e643d78090ca4207 0000000000000400
-0101010101010101 48221b9937748a23 0000000000000200
-0101010101010101 dd7c0bbd61fafd54 0000000000000100
-0101010101010101 2fbc291a570db5c4 0000000000000080
-0101010101010101 e07c30d7e4e26e12 0000000000000040
-0101010101010101 0953e2258e8e90a1 0000000000000020
-0101010101010101 5b711bc4ceebf2ee 0000000000000010
-0101010101010101 cc083f1e6d9e85f6 0000000000000008
-0101010101010101 d2fd8867d50d2dfe 0000000000000004
-0101010101010101 06e7ea22ce92708f 0000000000000002
-0101010101010101 166b40b44aba4bd6 0000000000000001
-8001010101010101 0000000000000000 95a8d72813daa94d
-4001010101010101 0000000000000000 0eec1487dd8c26d5
-2001010101010101 0000000000000000 7ad16ffb79c45926
-1001010101010101 0000000000000000 d3746294ca6a6cf3
-0801010101010101 0000000000000000 809f5f873c1fd761
-0401010101010101 0000000000000000 c02faffec989d1fc
-0201010101010101 0000000000000000 4615aa1d33e72f10
-0180010101010101 0000000000000000 2055123350c00858
-0140010101010101 0000000000000000 df3b99d6577397c8
-0120010101010101 0000000000000000 31fe17369b5288c9
-0110010101010101 0000000000000000 dfdd3cc64dae1642
-0108010101010101 0000000000000000 178c83ce2b399d94
-0104010101010101 0000000000000000 50f636324a9b7f80
-0102010101010101 0000000000000000 a8468ee3bc18f06d
-0101800101010101 0000000000000000 a2dc9e92fd3cde92
-0101400101010101 0000000000000000 cac09f797d031287
-0101200101010101 0000000000000000 90ba680b22aeb525
-0101100101010101 0000000000000000 ce7a24f350e280b6
-0101080101010101 0000000000000000 882bff0aa01a0b87
-0101040101010101 0000000000000000 25610288924511c2
-0101020101010101 0000000000000000 c71516c29c75d170
-0101018001010101 0000000000000000 5199c29a52c9f059
-0101014001010101 0000000000000000 c22f0a294a71f29f
-0101012001010101 0000000000000000 ee371483714c02ea
-0101011001010101 0000000000000000 a81fbd448f9e522f
-0101010801010101 0000000000000000 4f644c92e192dfed
-0101010401010101 0000000000000000 1afa9a66a6df92ae
-0101010201010101 0000000000000000 b3c1cc715cb879d8
-0101010180010101 0000000000000000 19d032e64ab0bd8b
-0101010140010101 0000000000000000 3cfaa7a7dc8720dc
-0101010120010101 0000000000000000 b7265f7f447ac6f3
-0101010110010101 0000000000000000 9db73b3c0d163f54
-0101010108010101 0000000000000000 8181b65babf4a975
-0101010104010101 0000000000000000 93c9b64042eaa240
-0101010102010101 0000000000000000 5570530829705592
-0101010101800101 0000000000000000 8638809e878787a0
-0101010101400101 0000000000000000 41b9a79af79ac208
-0101010101200101 0000000000000000 7a9be42f2009a892
-0101010101100101 0000000000000000 29038d56ba6d2745
-0101010101080101 0000000000000000 5495c6abf1e5df51
-0101010101040101 0000000000000000 ae13dbd561488933
-0101010101020101 0000000000000000 024d1ffa8904e389
-0101010101018001 0000000000000000 d1399712f99bf02e
-0101010101014001 0000000000000000 14c1d7c1cffec79e
-0101010101012001 0000000000000000 1de5279dae3bed6f
-0101010101011001 0000000000000000 e941a33f85501303
-0101010101010801 0000000000000000 da99dbbc9a03f379
-0101010101010401 0000000000000000 b7fc92f91d8e92e9
-0101010101010201 0000000000000000 ae8e5caa3ca04e85
-0101010101010180 0000000000000000 9cc62df43b6eed74
-0101010101010140 0000000000000000 d863dbb5c59a91a0
-0101010101010120 0000000000000000 a1ab2190545b91d7
-0101010101010110 0000000000000000 0875041e64c570f7
-0101010101010108 0000000000000000 5a594528bebef1cc
-0101010101010104 0000000000000000 fcdb3291de21f0c0
-0101010101010102 0000000000000000 869efd7f9f265a09
-1046913489980131 0000000000000000 88d55e54f54c97b4
-1007103489988020 0000000000000000 0c0cc00c83ea48fd
-10071034c8980120 0000000000000000 83bc8ef3a6570183
-1046103489988020 0000000000000000 df725dcad94ea2e9
-1086911519190101 0000000000000000 e652b53b550be8b0
-1086911519580101 0000000000000000 af527120c485cbb0
-5107b01519580101 0000000000000000 0f04ce393db926d5
-1007b01519190101 0000000000000000 c9f00ffc74079067
-3107915498080101 0000000000000000 7cfd82a593252b4e
-3107919498080101 0000000000000000 cb49a2f9e91363e3
-10079115b9080140 0000000000000000 00b588be70d23f56
-3107911598080140 0000000000000000 406a9a6ab43399ae
-1007d01589980101 0000000000000000 6cb773611dca9ada
-9107911589980101 0000000000000000 67fd21c17dbb5d70
-9107d01589190101 0000000000000000 9592cb4110430787
-1007d01598980120 0000000000000000 a6b7ff68a318ddd3
-1007940498190101 0000000000000000 4d102196c914ca16
-0107910491190401 0000000000000000 2dfa9f4573594965
-0107910491190101 0000000000000000 b46604816c0e0774
-0107940491190401 0000000000000000 6e7e6221a4f34e87
-19079210981a0101 0000000000000000 aa85e74643233199
-1007911998190801 0000000000000000 2e5a19db4d1962d6
-10079119981a0801 0000000000000000 23a866a809d30894
-1007921098190101 0000000000000000 d812d961f017d320
-100791159819010b 0000000000000000 055605816e58608f
-1004801598190101 0000000000000000 abd88e8b1b7716f1
-1004801598190102 0000000000000000 537ac95be69da1e1
-1004801598190108 0000000000000000 aed0f6ae3c25cdd8
-1002911598100104 0000000000000000 b3e35a5ee53e7b8d
-1002911598190104 0000000000000000 61c79c71921a2ef8
-1002911598100201 0000000000000000 e2f5728f0995013c
-1002911698100101 0000000000000000 1aeac39a61f0a464
-7ca110454a1a6e57 01a1d6d039776742 690f5b0d9a26939b
-0131d9619dc1376e 5cd54ca83def57da 7a389d10354bd271
-07a1133e4a0b2686 0248d43806f67172 868ebb51cab4599a
-3849674c2602319e 51454b582ddf440a 7178876e01f19b2a
-04b915ba43feb5b6 42fd443059577fa2 af37fb421f8c4095
-0113b970fd34f2ce 059b5e0851cf143a 86a560f10ec6d85b
-0170f175468fb5e6 0756d8e0774761d2 0cd3da020021dc09
-43297fad38e373fe 762514b829bf486a ea676b2cb7db2b7a
-07a7137045da2a16 3bdd119049372802 dfd64a815caf1a0f
-04689104c2fd3b2f 26955f6835af609a 5c513c9c4886c088
-37d06bb516cb7546 164d5e404f275232 0a2aeeae3ff4ab77
-1f08260d1ac2465e 6b056e18759f5cca ef1bf03e5dfa575a
-584023641aba6176 004bd6ef09176062 88bf0db6d70dee56
-025816164629b007 480d39006ee762f2 a1f9915541020b56
-49793ebc79b3258f 437540c8698f3cfa 6fbf1cafcffd0556
-4fb05e1515ab73a7 072d43a077075292 2f22e49bab7ca1ac
-49e95d6d4ca229bf 02fe55778117f12a 5a6b612cc26cce4a
-018310dc409b26d6 1d9d5c5018f728c2 5f4c038ed12b2e41
-1c587f1c13924fef 305532286d6f295a 63fac0d034d9f793
diff --git a/test/crypt/crypt.out.good b/test/crypt/crypt.out.good
deleted file mode 100644
index 073ab2b..0000000
--- a/test/crypt/crypt.out.good
+++ /dev/null
@@ -1,172 +0,0 @@
- K: 0101010101010101 P: 95f8a5e5dd31d900 C: 8000000000000000 OK
- K: 0101010101010101 P: dd7f121ca5015619 C: 4000000000000000 OK
- K: 0101010101010101 P: 2e8653104f3834ea C: 2000000000000000 OK
- K: 0101010101010101 P: 4bd388ff6cd81d4f C: 1000000000000000 OK
- K: 0101010101010101 P: 20b9e767b2fb1456 C: 0800000000000000 OK
- K: 0101010101010101 P: 55579380d77138ef C: 0400000000000000 OK
- K: 0101010101010101 P: 6cc5defaaf04512f C: 0200000000000000 OK
- K: 0101010101010101 P: 0d9f279ba5d87260 C: 0100000000000000 OK
- K: 0101010101010101 P: d9031b0271bd5a0a C: 0080000000000000 OK
- K: 0101010101010101 P: 424250b37c3dd951 C: 0040000000000000 OK
- K: 0101010101010101 P: b8061b7ecd9a21e5 C: 0020000000000000 OK
- K: 0101010101010101 P: f15d0f286b65bd28 C: 0010000000000000 OK
- K: 0101010101010101 P: add0cc8d6e5deba1 C: 0008000000000000 OK
- K: 0101010101010101 P: e6d5f82752ad63d1 C: 0004000000000000 OK
- K: 0101010101010101 P: ecbfe3bd3f591a5e C: 0002000000000000 OK
- K: 0101010101010101 P: f356834379d165cd C: 0001000000000000 OK
- K: 0101010101010101 P: 2b9f982f20037fa9 C: 0000800000000000 OK
- K: 0101010101010101 P: 889de068a16f0be6 C: 0000400000000000 OK
- K: 0101010101010101 P: e19e275d846a1298 C: 0000200000000000 OK
- K: 0101010101010101 P: 329a8ed523d71aec C: 0000100000000000 OK
- K: 0101010101010101 P: e7fce22557d23c97 C: 0000080000000000 OK
- K: 0101010101010101 P: 12a9f5817ff2d65d C: 0000040000000000 OK
- K: 0101010101010101 P: a484c3ad38dc9c19 C: 0000020000000000 OK
- K: 0101010101010101 P: fbe00a8a1ef8ad72 C: 0000010000000000 OK
- K: 0101010101010101 P: 750d079407521363 C: 0000008000000000 OK
- K: 0101010101010101 P: 64feed9c724c2faf C: 0000004000000000 OK
- K: 0101010101010101 P: f02b263b328e2b60 C: 0000002000000000 OK
- K: 0101010101010101 P: 9d64555a9a10b852 C: 0000001000000000 OK
- K: 0101010101010101 P: d106ff0bed5255d7 C: 0000000800000000 OK
- K: 0101010101010101 P: e1652c6b138c64a5 C: 0000000400000000 OK
- K: 0101010101010101 P: e428581186ec8f46 C: 0000000200000000 OK
- K: 0101010101010101 P: aeb5f5ede22d1a36 C: 0000000100000000 OK
- K: 0101010101010101 P: e943d7568aec0c5c C: 0000000080000000 OK
- K: 0101010101010101 P: df98c8276f54b04b C: 0000000040000000 OK
- K: 0101010101010101 P: b160e4680f6c696f C: 0000000020000000 OK
- K: 0101010101010101 P: fa0752b07d9c4ab8 C: 0000000010000000 OK
- K: 0101010101010101 P: ca3a2b036dbc8502 C: 0000000008000000 OK
- K: 0101010101010101 P: 5e0905517bb59bcf C: 0000000004000000 OK
- K: 0101010101010101 P: 814eeb3b91d90726 C: 0000000002000000 OK
- K: 0101010101010101 P: 4d49db1532919c9f C: 0000000001000000 OK
- K: 0101010101010101 P: 25eb5fc3f8cf0621 C: 0000000000800000 OK
- K: 0101010101010101 P: ab6a20c0620d1c6f C: 0000000000400000 OK
- K: 0101010101010101 P: 79e90dbc98f92cca C: 0000000000200000 OK
- K: 0101010101010101 P: 866ecedd8072bb0e C: 0000000000100000 OK
- K: 0101010101010101 P: 8b54536f2f3e64a8 C: 0000000000080000 OK
- K: 0101010101010101 P: ea51d3975595b86b C: 0000000000040000 OK
- K: 0101010101010101 P: caffc6ac4542de31 C: 0000000000020000 OK
- K: 0101010101010101 P: 8dd45a2ddf90796c C: 0000000000010000 OK
- K: 0101010101010101 P: 1029d55e880ec2d0 C: 0000000000008000 OK
- K: 0101010101010101 P: 5d86cb23639dbea9 C: 0000000000004000 OK
- K: 0101010101010101 P: 1d1ca853ae7c0c5f C: 0000000000002000 OK
- K: 0101010101010101 P: ce332329248f3228 C: 0000000000001000 OK
- K: 0101010101010101 P: 8405d1abe24fb942 C: 0000000000000800 OK
- K: 0101010101010101 P: e643d78090ca4207 C: 0000000000000400 OK
- K: 0101010101010101 P: 48221b9937748a23 C: 0000000000000200 OK
- K: 0101010101010101 P: dd7c0bbd61fafd54 C: 0000000000000100 OK
- K: 0101010101010101 P: 2fbc291a570db5c4 C: 0000000000000080 OK
- K: 0101010101010101 P: e07c30d7e4e26e12 C: 0000000000000040 OK
- K: 0101010101010101 P: 0953e2258e8e90a1 C: 0000000000000020 OK
- K: 0101010101010101 P: 5b711bc4ceebf2ee C: 0000000000000010 OK
- K: 0101010101010101 P: cc083f1e6d9e85f6 C: 0000000000000008 OK
- K: 0101010101010101 P: d2fd8867d50d2dfe C: 0000000000000004 OK
- K: 0101010101010101 P: 06e7ea22ce92708f C: 0000000000000002 OK
- K: 0101010101010101 P: 166b40b44aba4bd6 C: 0000000000000001 OK
- K: 8001010101010101 P: 0000000000000000 C: 95a8d72813daa94d OK
- K: 4001010101010101 P: 0000000000000000 C: 0eec1487dd8c26d5 OK
- K: 2001010101010101 P: 0000000000000000 C: 7ad16ffb79c45926 OK
- K: 1001010101010101 P: 0000000000000000 C: d3746294ca6a6cf3 OK
- K: 0801010101010101 P: 0000000000000000 C: 809f5f873c1fd761 OK
- K: 0401010101010101 P: 0000000000000000 C: c02faffec989d1fc OK
- K: 0201010101010101 P: 0000000000000000 C: 4615aa1d33e72f10 OK
- K: 0180010101010101 P: 0000000000000000 C: 2055123350c00858 OK
- K: 0140010101010101 P: 0000000000000000 C: df3b99d6577397c8 OK
- K: 0120010101010101 P: 0000000000000000 C: 31fe17369b5288c9 OK
- K: 0110010101010101 P: 0000000000000000 C: dfdd3cc64dae1642 OK
- K: 0108010101010101 P: 0000000000000000 C: 178c83ce2b399d94 OK
- K: 0104010101010101 P: 0000000000000000 C: 50f636324a9b7f80 OK
- K: 0102010101010101 P: 0000000000000000 C: a8468ee3bc18f06d OK
- K: 0101800101010101 P: 0000000000000000 C: a2dc9e92fd3cde92 OK
- K: 0101400101010101 P: 0000000000000000 C: cac09f797d031287 OK
- K: 0101200101010101 P: 0000000000000000 C: 90ba680b22aeb525 OK
- K: 0101100101010101 P: 0000000000000000 C: ce7a24f350e280b6 OK
- K: 0101080101010101 P: 0000000000000000 C: 882bff0aa01a0b87 OK
- K: 0101040101010101 P: 0000000000000000 C: 25610288924511c2 OK
- K: 0101020101010101 P: 0000000000000000 C: c71516c29c75d170 OK
- K: 0101018001010101 P: 0000000000000000 C: 5199c29a52c9f059 OK
- K: 0101014001010101 P: 0000000000000000 C: c22f0a294a71f29f OK
- K: 0101012001010101 P: 0000000000000000 C: ee371483714c02ea OK
- K: 0101011001010101 P: 0000000000000000 C: a81fbd448f9e522f OK
- K: 0101010801010101 P: 0000000000000000 C: 4f644c92e192dfed OK
- K: 0101010401010101 P: 0000000000000000 C: 1afa9a66a6df92ae OK
- K: 0101010201010101 P: 0000000000000000 C: b3c1cc715cb879d8 OK
- K: 0101010180010101 P: 0000000000000000 C: 19d032e64ab0bd8b OK
- K: 0101010140010101 P: 0000000000000000 C: 3cfaa7a7dc8720dc OK
- K: 0101010120010101 P: 0000000000000000 C: b7265f7f447ac6f3 OK
- K: 0101010110010101 P: 0000000000000000 C: 9db73b3c0d163f54 OK
- K: 0101010108010101 P: 0000000000000000 C: 8181b65babf4a975 OK
- K: 0101010104010101 P: 0000000000000000 C: 93c9b64042eaa240 OK
- K: 0101010102010101 P: 0000000000000000 C: 5570530829705592 OK
- K: 0101010101800101 P: 0000000000000000 C: 8638809e878787a0 OK
- K: 0101010101400101 P: 0000000000000000 C: 41b9a79af79ac208 OK
- K: 0101010101200101 P: 0000000000000000 C: 7a9be42f2009a892 OK
- K: 0101010101100101 P: 0000000000000000 C: 29038d56ba6d2745 OK
- K: 0101010101080101 P: 0000000000000000 C: 5495c6abf1e5df51 OK
- K: 0101010101040101 P: 0000000000000000 C: ae13dbd561488933 OK
- K: 0101010101020101 P: 0000000000000000 C: 024d1ffa8904e389 OK
- K: 0101010101018001 P: 0000000000000000 C: d1399712f99bf02e OK
- K: 0101010101014001 P: 0000000000000000 C: 14c1d7c1cffec79e OK
- K: 0101010101012001 P: 0000000000000000 C: 1de5279dae3bed6f OK
- K: 0101010101011001 P: 0000000000000000 C: e941a33f85501303 OK
- K: 0101010101010801 P: 0000000000000000 C: da99dbbc9a03f379 OK
- K: 0101010101010401 P: 0000000000000000 C: b7fc92f91d8e92e9 OK
- K: 0101010101010201 P: 0000000000000000 C: ae8e5caa3ca04e85 OK
- K: 0101010101010180 P: 0000000000000000 C: 9cc62df43b6eed74 OK
- K: 0101010101010140 P: 0000000000000000 C: d863dbb5c59a91a0 OK
- K: 0101010101010120 P: 0000000000000000 C: a1ab2190545b91d7 OK
- K: 0101010101010110 P: 0000000000000000 C: 0875041e64c570f7 OK
- K: 0101010101010108 P: 0000000000000000 C: 5a594528bebef1cc OK
- K: 0101010101010104 P: 0000000000000000 C: fcdb3291de21f0c0 OK
- K: 0101010101010102 P: 0000000000000000 C: 869efd7f9f265a09 OK
- K: 1046913489980131 P: 0000000000000000 C: 88d55e54f54c97b4 OK
- K: 1007103489988020 P: 0000000000000000 C: 0c0cc00c83ea48fd OK
- K: 10071034c8980120 P: 0000000000000000 C: 83bc8ef3a6570183 OK
- K: 1046103489988020 P: 0000000000000000 C: df725dcad94ea2e9 OK
- K: 1086911519190101 P: 0000000000000000 C: e652b53b550be8b0 OK
- K: 1086911519580101 P: 0000000000000000 C: af527120c485cbb0 OK
- K: 5107b01519580101 P: 0000000000000000 C: 0f04ce393db926d5 OK
- K: 1007b01519190101 P: 0000000000000000 C: c9f00ffc74079067 OK
- K: 3107915498080101 P: 0000000000000000 C: 7cfd82a593252b4e OK
- K: 3107919498080101 P: 0000000000000000 C: cb49a2f9e91363e3 OK
- K: 10079115b9080140 P: 0000000000000000 C: 00b588be70d23f56 OK
- K: 3107911598080140 P: 0000000000000000 C: 406a9a6ab43399ae OK
- K: 1007d01589980101 P: 0000000000000000 C: 6cb773611dca9ada OK
- K: 9107911589980101 P: 0000000000000000 C: 67fd21c17dbb5d70 OK
- K: 9107d01589190101 P: 0000000000000000 C: 9592cb4110430787 OK
- K: 1007d01598980120 P: 0000000000000000 C: a6b7ff68a318ddd3 OK
- K: 1007940498190101 P: 0000000000000000 C: 4d102196c914ca16 OK
- K: 0107910491190401 P: 0000000000000000 C: 2dfa9f4573594965 OK
- K: 0107910491190101 P: 0000000000000000 C: b46604816c0e0774 OK
- K: 0107940491190401 P: 0000000000000000 C: 6e7e6221a4f34e87 OK
- K: 19079210981a0101 P: 0000000000000000 C: aa85e74643233199 OK
- K: 1007911998190801 P: 0000000000000000 C: 2e5a19db4d1962d6 OK
- K: 10079119981a0801 P: 0000000000000000 C: 23a866a809d30894 OK
- K: 1007921098190101 P: 0000000000000000 C: d812d961f017d320 OK
- K: 100791159819010b P: 0000000000000000 C: 055605816e58608f OK
- K: 1004801598190101 P: 0000000000000000 C: abd88e8b1b7716f1 OK
- K: 1004801598190102 P: 0000000000000000 C: 537ac95be69da1e1 OK
- K: 1004801598190108 P: 0000000000000000 C: aed0f6ae3c25cdd8 OK
- K: 1002911598100104 P: 0000000000000000 C: b3e35a5ee53e7b8d OK
- K: 1002911598190104 P: 0000000000000000 C: 61c79c71921a2ef8 OK
- K: 1002911598100201 P: 0000000000000000 C: e2f5728f0995013c OK
- K: 1002911698100101 P: 0000000000000000 C: 1aeac39a61f0a464 OK
- K: 7ca110454a1a6e57 P: 01a1d6d039776742 C: 690f5b0d9a26939b OK
- K: 0131d9619dc1376e P: 5cd54ca83def57da C: 7a389d10354bd271 OK
- K: 07a1133e4a0b2686 P: 0248d43806f67172 C: 868ebb51cab4599a OK
- K: 3849674c2602319e P: 51454b582ddf440a C: 7178876e01f19b2a OK
- K: 04b915ba43feb5b6 P: 42fd443059577fa2 C: af37fb421f8c4095 OK
- K: 0113b970fd34f2ce P: 059b5e0851cf143a C: 86a560f10ec6d85b OK
- K: 0170f175468fb5e6 P: 0756d8e0774761d2 C: 0cd3da020021dc09 OK
- K: 43297fad38e373fe P: 762514b829bf486a C: ea676b2cb7db2b7a OK
- K: 07a7137045da2a16 P: 3bdd119049372802 C: dfd64a815caf1a0f OK
- K: 04689104c2fd3b2f P: 26955f6835af609a C: 5c513c9c4886c088 OK
- K: 37d06bb516cb7546 P: 164d5e404f275232 C: 0a2aeeae3ff4ab77 OK
- K: 1f08260d1ac2465e P: 6b056e18759f5cca C: ef1bf03e5dfa575a OK
- K: 584023641aba6176 P: 004bd6ef09176062 C: 88bf0db6d70dee56 OK
- K: 025816164629b007 P: 480d39006ee762f2 C: a1f9915541020b56 OK
- K: 49793ebc79b3258f P: 437540c8698f3cfa C: 6fbf1cafcffd0556 OK
- K: 4fb05e1515ab73a7 P: 072d43a077075292 C: 2f22e49bab7ca1ac OK
- K: 49e95d6d4ca229bf P: 02fe55778117f12a C: 5a6b612cc26cce4a OK
- K: 018310dc409b26d6 P: 1d9d5c5018f728c2 C: 5f4c038ed12b2e41 OK
- K: 1c587f1c13924fef P: 305532286d6f295a C: 63fac0d034d9f793 OK
-Passed DES validation suite
diff --git a/test/crypt/md5c-test.c b/test/crypt/md5c-test.c
deleted file mode 100644
index 3c61540..0000000
--- a/test/crypt/md5c-test.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <crypt.h>
-
-int
-main (int argc, char *argv[])
-{
- const char salt[] = "$1$saltstring";
- char *cp;
-
- cp = crypt ("Hello world!", salt);
- if (strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp)) {
- fprintf(stderr, "Failed md5 crypt test!\n");
- return EXIT_FAILURE;
- }
- fprintf(stderr, "Passed md5 crypt test!\n");
- return EXIT_SUCCESS;
-}
diff --git a/test/crypt/sha256c-test.c b/test/crypt/sha256c-test.c
deleted file mode 100644
index 357f0d8..0000000
--- a/test/crypt/sha256c-test.c
+++ /dev/null
@@ -1,62 +0,0 @@
-#include <crypt.h>
-#include <stdio.h>
-#include <string.h>
-
-static const struct
-{
- const char *salt;
- const char *input;
- const char *expected;
-} tests[] =
-{
- { "$5$saltstring", "Hello world!",
- "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5" },
- { "$5$rounds=10000$saltstringsaltstring", "Hello world!",
- "$5$rounds=10000$saltstringsaltst$3xv.VbSHBb41AL9AvLeujZkZRBAwqFMz2."
- "opqey6IcA" },
- { "$5$rounds=5000$toolongsaltstring", "This is just a test",
- "$5$rounds=5000$toolongsaltstrin$Un/5jzAHMgOGZ5.mWJpuVolil07guHPvOW8"
- "mGRcvxa5" },
- { "$5$rounds=1400$anotherlongsaltstring",
- "a very much longer text to encrypt. This one even stretches over more"
- "than one line.",
- "$5$rounds=1400$anotherlongsalts$Rx.j8H.h8HjEDGomFU8bDkXm3XIUnzyxf12"
- "oP84Bnq1" },
- { "$5$rounds=77777$short",
- "we have a short salt string but not a short password",
- "$5$rounds=77777$short$JiO1O3ZpDAxGJeaDIuqCoEFysAe1mZNJRs3pw0KQRd/" },
- { "$5$rounds=123456$asaltof16chars..", "a short string",
- "$5$rounds=123456$asaltof16chars..$gP3VQ/6X7UUEW3HkBn2w1/Ptq2jxPyzV/"
- "cZKmF/wJvD" },
- { "$5$rounds=10$roundstoolow", "the minimum number is still observed",
- "$5$rounds=1000$roundstoolow$yfvwcWrQ8l/K0DAWyuPMDNHpIVlTQebY9l/gL97"
- "2bIC" },
-};
-#define ntests (sizeof (tests) / sizeof (tests[0]))
-
-
-
-static int
-do_test (void)
-{
- int result = 0;
- int i;
-
- for (i = 0; i < ntests; ++i)
- {
- char *cp = crypt (tests[i].input, tests[i].salt);
-
- if (strcmp (cp, tests[i].expected) != 0)
- {
- printf ("test %d: expected \"%s\", got \"%s\"\n",
- i, tests[i].expected, cp);
- result = 1;
- }
- }
-
- return result;
-}
-
-#define TIMEOUT 6
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/crypt/sha512c-test.c b/test/crypt/sha512c-test.c
deleted file mode 100644
index c829242..0000000
--- a/test/crypt/sha512c-test.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <crypt.h>
-#include <stdio.h>
-#include <string.h>
-
-static const struct
-{
- const char *salt;
- const char *input;
- const char *expected;
-} tests[] =
-{
- { "$6$saltstring", "Hello world!",
- "$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJu"
- "esI68u4OTLiBFdcbYEdFCoEOfaS35inz1" },
- { "$6$rounds=10000$saltstringsaltstring", "Hello world!",
- "$6$rounds=10000$saltstringsaltst$OW1/O6BYHV6BcXZu8QVeXbDWra3Oeqh0sb"
- "HbbMCVNSnCM/UrjmM0Dp8vOuZeHBy/YTBmSK6H9qs/y3RnOaw5v." },
- { "$6$rounds=5000$toolongsaltstring", "This is just a test",
- "$6$rounds=5000$toolongsaltstrin$lQ8jolhgVRVhY4b5pZKaysCLi0QBxGoNeKQ"
- "zQ3glMhwllF7oGDZxUhx1yxdYcz/e1JSbq3y6JMxxl8audkUEm0" },
- { "$6$rounds=1400$anotherlongsaltstring",
- "a very much longer text to encrypt. This one even stretches over more"
- "than one line.",
- "$6$rounds=1400$anotherlongsalts$POfYwTEok97VWcjxIiSOjiykti.o/pQs.wP"
- "vMxQ6Fm7I6IoYN3CmLs66x9t0oSwbtEW7o7UmJEiDwGqd8p4ur1" },
- { "$6$rounds=77777$short",
- "we have a short salt string but not a short password",
- "$6$rounds=77777$short$WuQyW2YR.hBNpjjRhpYD/ifIw05xdfeEyQoMxIXbkvr0g"
- "ge1a1x3yRULJ5CCaUeOxFmtlcGZelFl5CxtgfiAc0" },
- { "$6$rounds=123456$asaltof16chars..", "a short string",
- "$6$rounds=123456$asaltof16chars..$BtCwjqMJGx5hrJhZywWvt0RLE8uZ4oPwc"
- "elCjmw2kSYu.Ec6ycULevoBK25fs2xXgMNrCzIMVcgEJAstJeonj1" },
- { "$6$rounds=10$roundstoolow", "the minimum number is still observed",
- "$6$rounds=1000$roundstoolow$kUMsbe306n21p9R.FRkW3IGn.S9NPN0x50YhH1x"
- "hLsPuWGsUSklZt58jaTfF4ZEQpyUNGc0dqbpBYYBaHHrsX." },
-};
-#define ntests (sizeof (tests) / sizeof (tests[0]))
-
-
-static int
-do_test (void)
-{
- int result = 0;
- int i;
-
- for (i = 0; i < ntests; ++i)
- {
- char *cp = crypt (tests[i].input, tests[i].salt);
-
- if (strcmp (cp, tests[i].expected) != 0)
- {
- printf ("test %d: expected \"%s\", got \"%s\"\n",
- i, tests[i].expected, cp);
- result = 1;
- }
- }
-
- return result;
-}
-
-#define TIMEOUT 6
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/ctype/Makefile b/test/ctype/Makefile
deleted file mode 100644
index 99dbdbc..0000000
--- a/test/ctype/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc ctype tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/ctype/Makefile.in b/test/ctype/Makefile.in
deleted file mode 100644
index ee10d59..0000000
--- a/test/ctype/Makefile.in
+++ /dev/null
@@ -1,4 +0,0 @@
-# uClibc ctype tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-TESTS := ctype
diff --git a/test/ctype/ctype.c b/test/ctype/ctype.c
deleted file mode 100644
index f38f722..0000000
--- a/test/ctype/ctype.c
+++ /dev/null
@@ -1,250 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * Test application for functions defined in ctype.h
- * Copyright (C) 2000-2006 by Erik Andersen <andersen(a)uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <ctype.h>
-#include "../testsuite.h"
-
-
-int main( int argc, char **argv)
-{
- int i, c;
-
-
- init_testsuite("Testing functions defined in ctype.h\n");
-
- /* isalnum() */
- {
- int buffer[]={ '1', '4', 'a', 'z', 'A', 'Z', '5', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isalnum(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 128, 254, '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isalnum(c)==0);
- }
- }
-
-
-
- /* isalpha() */
- {
- int buffer[]={ 'a', 'z', 'A', 'Z', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isalpha(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 63, 128, 254, '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isalpha(c)==0);
- }
- }
-
-
-
-#ifdef __UCLIBC_SUSV4_LEGACY__
- /* isascii() */
- {
- int buffer[]={ 'a', 'z', 'A', 'Z', '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isascii(c)!=0);
- }
- }
- {
- int buffer[]={ 128, 254, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isascii(c)==0);
- }
- }
-#endif
-
-
- /* iscntrl() */
- {
- int buffer[]={ 0x7F, 6, '\t', '\n', 0x7F, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( iscntrl(c)!=0);
- }
- }
- {
- int buffer[]={ 63, 128, 254, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( iscntrl(c)==0);
- }
- }
-
-
- /* isdigit() */
- {
- int buffer[]={ '1', '5', '7', '9', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isdigit(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 'a', 'z', 'A', 'Z', 63, 128, 254, '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isdigit(c)==0);
- }
- }
-
-
-
- /* isgraph() */
- {
- int buffer[]={ ')', '~', '9', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isgraph(c)!=0);
- }
- }
- {
- int buffer[]={ 9, ' ', '\t', '\n', 200, 0x7F, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isgraph(c)==0);
- }
- }
-
-
- /* islower() */
- {
- int buffer[]={ 'a', 'g', 'z', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( islower(c)!=0);
- }
- }
- {
- int buffer[]={ 9, 'A', 'Z', 128, 254, ' ', '\t', '\n', 0x7F, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( islower(c)==0);
- }
- }
-
-
- /* isprint() */
- {
- int buffer[]={ ' ', ')', '~', '9', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isprint(c)!=0);
- }
- }
- {
- int buffer[]={ '\b', '\t', '\n', 9, 128, 254, 200, 0x7F, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isprint(c)==0);
- }
- }
-
-
- /* ispunct() */
- {
- int buffer[]={ '.', '#', '@', ';', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( ispunct(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 'a', 'Z', '1', 128, 254, '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( ispunct(c)==0);
- }
- }
-
-
- /* isspace() */
- {
- int buffer[]={ ' ', '\t', '\r', '\v', '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isspace(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 'a', 'Z', '1', 128, 254, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isspace(c)==0);
- }
- }
-
-
- /* isupper() */
- {
- int buffer[]={ 'A', 'G', 'Z', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isupper(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 'a', 'z', '1', 128, 254, -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isupper(c)==0);
- }
- }
-
-
-
- /* isxdigit() */
- {
- int buffer[]={ 'f', 'A', '1', '8', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isxdigit(c)!=0);
- }
- }
- {
- int buffer[]={ 2, 'g', 'G', 'x', '\n', -1};
- for(i=0; buffer[i]!=-1; i++) {
- c = buffer[i];
- TEST( isxdigit(c)==0);
- }
- }
-
-
- /* tolower() */
- c='A';
- TEST_NUMERIC( tolower(c), 'a');
- c='a';
- TEST_NUMERIC( tolower(c), 'a');
- c='#';
- TEST_NUMERIC( tolower(c), c);
-
- /* toupper() */
- c='a';
- TEST_NUMERIC( toupper(c), 'A');
- c='A';
- TEST_NUMERIC( toupper(c), 'A');
- c='#';
- TEST_NUMERIC( toupper(c), c);
-
- exit(0);
-}
diff --git a/test/dlopen/Makefile b/test/dlopen/Makefile
deleted file mode 100644
index d5be53c..0000000
--- a/test/dlopen/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc dlopen tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/dlopen/Makefile.in b/test/dlopen/Makefile.in
deleted file mode 100644
index 740453a..0000000
--- a/test/dlopen/Makefile.in
+++ /dev/null
@@ -1,84 +0,0 @@
-# uClibc dlopen tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-# rules need a little love to work with glibc ...
-export UCLIBC_ONLY := 1
-
-TESTS := dltest dltest2 dlstatic test1 test2 test3 dlundef dlafk dladdr \
- testscope nodelete nodelete1 tst-origin
-
-ifneq ($(HAVE_SHARED),y)
-TESTS_DISABLED := test3
-LDFLAGS_libtest.so := -lpthread
-endif
-
-CFLAGS_dltest := -DLIBNAME="\"./libtest.so\""
-CFLAGS_dltest2 := -DLIBNAME="\"./libtest3.so\""
-
-LDFLAGS_dlstatic := -ldl
-LDFLAGS_dltest := -ldl
-LDFLAGS_dltest2 := -ldl
-LDFLAGS_dlundef := -ldl
-LDFLAGS_dlafk := -ldl ./libafk.so -Wl,-rpath,.
-LDFLAGS_test1 := -ldl
-LDFLAGS_test2 := -ldl
-LDFLAGS_test3 := -ldl ./libtest1.so ./libtest2.so -Wl,-rpath,.
-LDFLAGS_dladdr := -ldl
-LDFLAGS_testscope:= -ldl
-LDFLAGS_tst-origin:= -ldl -Wl,-rpath,\$$ORIGIN/testlib
-
-DEBUG_LIBS := X
-WRAPPER := env $(DEBUG_LIBS)=all LD_LIBRARY_PATH="$$PWD:.:$(LD_LIBRARY_PATH)"
-
-testlib:
- @mkdir $@
-
-testlib/libtest31.so: libtest3.so | testlib
- @cp $^ $@
-
-EXTRA_DIRS := testlib
-
-# Build libC.so without -mprefergot compilation flag to force a
-# R_SH_JMP_SLOT relocation instead of R_SH_GLOB_DAT for _libC_fini. This is
-# needed to resolve the _libC_fini symbol when used (by libC.so destructor),
-# whereas with GLOB_DAT relocation the resolution happens in the GOT entry
-# when the libC is loaded, for the same reason remove also the "-z now"
-# linker flag.
-# These are needed to spot the issue test case want raise.
-
-ifeq ($(TARGET_ARCH),sh)
-CFLAGS-OMIT-libC.c = -mprefergot
-endif
-LDFLAGS-OMIT-libC.c = -Wl,-z,now
-
-dltest: libtest.so
-dltest2: libtest3.so
-dlstatic: libstatic.so
-dlundef: libundef.so
-dlafk: libafk.so
-testscope:libA.so
-libafk.so: libafk-temp.so
-LDFLAGS_libafk.so := ./libafk-temp.so -Wl,-rpath,.
-test1: libtest1.so
-test2: libtest1.so libtest2.so
-test3: libtest1.so libtest2.so
-tst-origin: testlib/libtest31.so
-libtest1.so: libtest2.so
-libB.so: libC.so
-libA.so: libB.so
-LDFLAGS_libtest.so := -lpthread
-LDFLAGS_libtest1.so := ./libtest2.so -Wl,-rpath,.
-LDFLAGS_libtest2.so := -Wl,-rpath,.
-LDFLAGS_libtest3.so := -lpthread -Wl,-rpath,.
-LDFLAGS_libC.so := -ldl
-LDFLAGS_libB.so := ./libC.so -Wl,-rpath,.
-LDFLAGS_libA.so := ./libB.so -Wl,-rpath,.
-
-nodelete: nodelmod1.so nodelmod2.so nodelmod3.so
-nodelmod3.so: nodelmod4.so
-LDFLAGS_nodelete := -rdynamic -ldl
-LDFLAGS_nodelmod1.so := -Wl,-z,nodelete
-LDFLAGS_nodelmod3.so := ./nodelmod4.so
-LDFLAGS_nodelmod4.so := -Wl,-z,nodelete
-nodelete1: nodelmod1.so nodelmod2.so
-LDFLAGS_nodelete1 := -rdynamic -ldl
diff --git a/test/dlopen/dladdr.c b/test/dlopen/dladdr.c
deleted file mode 100644
index b64c000..0000000
--- a/test/dlopen/dladdr.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <dlfcn.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-int main(int argc, char **argv)
-{
- Dl_info info;
- int res = 0;
-
- memset(&info, '\0', sizeof(Dl_info));
- res = dladdr((void *)1, &info);
- if (res != 0) {
- fprintf(stderr, "dladdr() should fail\n");
- fprintf(stderr, "dli_fname = %s\n", info.dli_fname);
- fprintf(stderr, "dli_fbase = 0x%08x\n", (unsigned int)info.dli_fbase);
- fprintf(stderr, "dli_sname = %s\n", info.dli_sname);
- fprintf(stderr, "dli_saddr = 0x%08x\n", (unsigned int)info.dli_saddr);
- exit(1);
- }
-
- fprintf(stderr, "dladdr() failed as expected\n");
- return EXIT_SUCCESS;
-}
-
diff --git a/test/dlopen/dlafk.c b/test/dlopen/dlafk.c
deleted file mode 100644
index 2eac4af..0000000
--- a/test/dlopen/dlafk.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-#include <stdint.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-
-#define LIBNAME "libafk.so"
-
-#define LIBAFK "libafk-temp.so"
-#define LIBAFK_BAK ".libafk-temp.so.temp"
-
-int main(int argc, char **argv)
-{
- void *handle;
-
- if (rename(LIBAFK, LIBAFK_BAK)) {
- fprintf(stderr, "Unable to rename %s: %s\n", LIBAFK, strerror(errno));
- return EXIT_FAILURE;
- }
-
- handle = dlopen(LIBNAME, RTLD_NOW);
- if (!handle) {
- fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
- return EXIT_FAILURE;
- }
-
- if (rename(LIBAFK_BAK, LIBAFK)) {
- fprintf(stderr, "Unable to rename %s: %s\n", LIBAFK_BAK, strerror(errno));
- return EXIT_FAILURE;
- }
-
- return EXIT_SUCCESS;
-}
diff --git a/test/dlopen/dlstatic.c b/test/dlopen/dlstatic.c
deleted file mode 100644
index 57c8c5d..0000000
--- a/test/dlopen/dlstatic.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-#include <stdint.h>
-
-#define LIBNAME "libstatic.so"
-
-int load_and_test(void)
-{
- void *handle;
- int (*mystatic)(void);
-
- handle = dlopen(LIBNAME, RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
- return 1;
- }
-
- mystatic = dlsym(handle, "static_test");
- if (mystatic == NULL) {
- fprintf(stderr, "Could not locate symbol 'static_test': %s\n", dlerror());
- return 1;
- }
-
- if (!mystatic()) {
- fprintf(stderr, "mystatic() failed: static vars were not setup properly\n");
- return 1;
- }
-
- dlclose(handle);
-
- return 0;
-}
-
-int main(int argc, char **argv)
-{
- int count = 5;
- while (count-- > 0)
- if (load_and_test())
- return EXIT_FAILURE;
- return EXIT_SUCCESS;
-}
diff --git a/test/dlopen/dltest.c b/test/dlopen/dltest.c
deleted file mode 100644
index a0fac90..0000000
--- a/test/dlopen/dltest.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-#include <stdint.h>
-
-int main(int argc, char **argv)
-{
- int ret = EXIT_SUCCESS;
- void *handle;
- void (*mydltest)(void *value1, void *value2);
- char *error;
- uint32_t *value1, *value2;
-
- handle = dlopen (LIBNAME, RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
- exit(1);
- }
-
- mydltest = dlsym(handle, "dltest");
- if ((error = dlerror()) != NULL) {
- fprintf(stderr, "Could not locate symbol 'dltest': %s\n", error);
- exit(1);
- }
-
- mydltest(&value1, &value2);
- printf("dltest: pthread_once=%p\n", value1);
- printf("dltest: pthread_self=%p\n", value2);
- if (value1 == value2) {
- ret = EXIT_FAILURE;
- printf("dltest: values should NOT be equal Weak values resolved incorrectly!\n");
- } else {
- printf("dltest: weak symbols resolved correctly.\n");
- }
-
- dlclose(handle);
-
- return ret;
-}
-
diff --git a/test/dlopen/dltest2.c b/test/dlopen/dltest2.c
deleted file mode 100644
index 127b3b5..0000000
--- a/test/dlopen/dltest2.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "dltest.c"
diff --git a/test/dlopen/dlundef.c b/test/dlopen/dlundef.c
deleted file mode 100644
index cefd933..0000000
--- a/test/dlopen/dlundef.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-#include <stdint.h>
-
-#define LIBNAME "libundef.so"
-
-int main(int argc, char **argv)
-{
- void *handle;
- int (*myundefined)(void);
-
- handle = dlopen(LIBNAME, RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
- return EXIT_FAILURE;
- }
-
- myundefined = dlsym(handle, "__booga_booga_you_cant_touch_this__");
- if (myundefined != NULL) {
- fprintf(stderr, "dlsym() found a symbol that does not exist!\n");
- return EXIT_FAILURE;
- }
-
- dlclose(handle);
-
- return EXIT_SUCCESS;
-}
diff --git a/test/dlopen/libA.c b/test/dlopen/libA.c
deleted file mode 100644
index 13b83dc..0000000
--- a/test/dlopen/libA.c
+++ /dev/null
@@ -1,7 +0,0 @@
-extern void libB_func(void);
-
-void libA_func(void);
-void libA_func(void)
-{
- libB_func();
-}
diff --git a/test/dlopen/libB.c b/test/dlopen/libB.c
deleted file mode 100644
index 9b9fff4..0000000
--- a/test/dlopen/libB.c
+++ /dev/null
@@ -1,7 +0,0 @@
-extern void libC_func(void);
-
-void libB_func(void);
-void libB_func(void)
-{
- libC_func();
-}
diff --git a/test/dlopen/libC.c b/test/dlopen/libC.c
deleted file mode 100644
index 84cbbef..0000000
--- a/test/dlopen/libC.c
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#define LIBNAME "libB.so"
-void _libC_fini(void);
-void _libC_fini(void)
-{
- printf("libC_fini():finish - atexit()\n");
-}
-
-void libC_fini(void);
-void libC_fini(void)
-{
- _libC_fini();
-}
-
-void libC_func(void);
-void libC_func(void)
-{
- void *libB;
-
- libB = dlopen(LIBNAME, RTLD_LAZY);
- if (!libB) {
- fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
- exit(1);
- }
-
- atexit(libC_fini);
-}
diff --git a/test/dlopen/libafk-temp.c b/test/dlopen/libafk-temp.c
deleted file mode 100644
index 39b58df..0000000
--- a/test/dlopen/libafk-temp.c
+++ /dev/null
@@ -1 +0,0 @@
-/* the actual contents doesnt matter */
diff --git a/test/dlopen/libafk.c b/test/dlopen/libafk.c
deleted file mode 100644
index 39b58df..0000000
--- a/test/dlopen/libafk.c
+++ /dev/null
@@ -1 +0,0 @@
-/* the actual contents doesnt matter */
diff --git a/test/dlopen/libstatic.c b/test/dlopen/libstatic.c
deleted file mode 100644
index bf44c3c..0000000
--- a/test/dlopen/libstatic.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <stdio.h>
-
-static int global_static = -1;
-
-int static_test(void)
-{
- static int local_static = -2;
-
- if (global_static != -1)
- printf("FAIL: global_static is not -1\n");
- if (local_static != -2)
- printf("FAIL: local_static is not -2\n");
-
- return (global_static == -1 && local_static == -2);
-}
diff --git a/test/dlopen/libtest.c b/test/dlopen/libtest.c
deleted file mode 100644
index 3fd137f..0000000
--- a/test/dlopen/libtest.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdio.h>
-#include <pthread.h>
-#include <stdint.h>
-
-void dltest(uint32_t **value1, uint32_t **value2);
-void dltest(uint32_t **value1, uint32_t **value2)
-{
- *value1 = (uint32_t *) pthread_once;
- *value2 = (uint32_t *) pthread_self;
-}
-
diff --git a/test/dlopen/libtest1.c b/test/dlopen/libtest1.c
deleted file mode 100644
index a2f7dcd..0000000
--- a/test/dlopen/libtest1.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <stdio.h>
-
-extern int libtest2_func(const char *s);
-
-void __attribute__((constructor)) libtest1_ctor(void);
-void libtest1_ctor(void)
-{
- printf("libtest1: constructor!\n");
-}
-
-void __attribute__((destructor)) libtest1_dtor(void);
-void libtest1_dtor(void)
-{
- printf("libtest1: destructor!\n");
-}
-
-void __attribute__((weak)) function1(void);
-void function1(void)
-{
- printf("libtest1: I am weak function1!\n");
-}
-
-void function2(void);
-void function2(void)
-{
- printf("libtest1: I am function2!\n");
-}
-
-int dltest(const char *s);
-int dltest(const char *s)
-{
- printf( "libtest1: function1 = %p\n"
- "libtest1: function2 = %p\n",
- function1, function2);
- function1();
- function2();
- return(libtest2_func(s));
-}
-
-
diff --git a/test/dlopen/libtest2.c b/test/dlopen/libtest2.c
deleted file mode 100644
index 5261506..0000000
--- a/test/dlopen/libtest2.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <stdio.h>
-#include <pthread.h>
-
-void __attribute__((constructor)) libtest2_ctor(void);
-void libtest2_ctor(void)
-{
- printf("libtest2: constructor!\n");
-}
-
-void __attribute__((destructor)) libtest2_dtor(void);
-void libtest2_dtor(void)
-{
- printf("libtest2: destructor!\n");
-}
-
-void function1(void);
-void function1(void)
-{
- printf("libtest2: I am function1!\n");
-}
-
-void __attribute__((weak)) function2(void);
-void function2(void)
-{
- printf("libtest2: I am weak function2!\n");
-}
-
-
-int libtest2_func(const char *s);
-int libtest2_func(const char *s)
-{
- printf( "libtest2: function1 = %p\n"
- "libtest2: function2 = %p\n",
- function1, function2);
- function1();
- function2();
- return 0;
-}
diff --git a/test/dlopen/libtest3.c b/test/dlopen/libtest3.c
deleted file mode 100644
index 1d4bd7e..0000000
--- a/test/dlopen/libtest3.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "libtest.c"
diff --git a/test/dlopen/libundef.c b/test/dlopen/libundef.c
deleted file mode 100644
index 39b58df..0000000
--- a/test/dlopen/libundef.c
+++ /dev/null
@@ -1 +0,0 @@
-/* the actual contents doesnt matter */
diff --git a/test/dlopen/nodelete.c b/test/dlopen/nodelete.c
deleted file mode 100644
index 07ff961..0000000
--- a/test/dlopen/nodelete.c
+++ /dev/null
@@ -1,205 +0,0 @@
-#include <dlfcn.h>
-#include <setjmp.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-
-static sigjmp_buf jmpbuf;
-
-
-int fini_ran;
-
-
-static void
-__attribute__ ((noreturn))
-handler (int sig)
-{
- siglongjmp (jmpbuf, 1);
-}
-
-
-#define TEST_FUNCTION do_test ()
-static int
-do_test (void)
-{
- /* We are testing the two possibilities to mark an object as not deletable:
- - marked on the linker commandline with `-z nodelete'
- - with the RTLD_NODELETE flag at dlopen()-time.
-
- The test we are performing should be safe. We are loading the objects,
- get the address of variables in the respective object, unload the object
- and then try to read the variable. If the object is unloaded this
- should lead to an segmentation fault. */
- void *p;
- struct sigaction sa;
-
- sa.sa_handler = handler;
- sigfillset (&sa.sa_mask);
- sa.sa_flags = SA_RESTART;
-
- if (sigaction (SIGSEGV, &sa, NULL) == -1)
- puts ("cannot install signal handler: %m");
-
- p = dlopen ("nodelmod1.so", RTLD_LAZY);
- if (p == NULL)
- {
- printf ("failed to load \"nodelmod1.so\": %s\n", dlerror ());
- exit (1);
- }
- else
- {
- int *varp;
-
- varp = dlsym (p, "var1");
- if (varp == NULL)
- {
- puts ("failed to get address of \"var1\" in \"nodelmod1.so\"");
- exit (1);
- }
- else
- {
- *varp = 20000720;
-
- /* Now close the object. */
- fini_ran = 0;
- if (dlclose (p) != 0)
- {
- puts ("failed to close \"nodelmod1.so\"");
- exit (1);
- }
- else if (! sigsetjmp (jmpbuf, 1))
- {
- /* Access the variable again. */
- if (*varp != 20000720)
- {
- puts ("\"var1\" value not correct");
- exit (1);
- }
- else if (fini_ran != 0)
- {
- puts ("destructor of \"nodelmod1.so\" ran");
- exit (1);
- }
- else
- puts ("-z nodelete test succeeded");
- }
- else
- {
- /* We caught an segmentation fault. */
- puts ("\"nodelmod1.so\" got deleted!");
- exit (1);
- }
- }
- }
-
- p = dlopen ("nodelmod2.so", RTLD_LAZY | RTLD_NODELETE);
- if (p == NULL)
- {
- printf ("failed to load \"nodelmod2.so\": %s\n", dlerror ());
- exit (1);
- }
- else
- {
- int *varp;
-
- varp = dlsym (p, "var2");
- if (varp == NULL)
- {
- puts ("failed to get address of \"var2\" in \"nodelmod2.so\"");
- exit (1);
- }
- else
- {
- *varp = 42;
-
- /* Now close the object. */
- fini_ran = 0;
- if (dlclose (p) != 0)
- {
- puts ("failed to close \"nodelmod2.so\"");
- exit (1);
- }
- else if (! sigsetjmp (jmpbuf, 1))
- {
- /* Access the variable again. */
- if (*varp != 42)
- {
- puts ("\"var2\" value not correct");
- exit (1);
- }
- else if (fini_ran != 0)
- {
- puts ("destructor of \"nodelmod2.so\" ran");
- exit (1);
- }
- else
- puts ("RTLD_NODELETE test succeeded");
- }
- else
- {
- /* We caught an segmentation fault. */
- puts ("\"nodelmod2.so\" got deleted!");
- exit (1);
- }
- }
- }
-
- p = dlopen ("nodelmod3.so", RTLD_LAZY);
- if (p == NULL)
- {
- printf ("failed to load \"nodelmod3.so\": %s\n", dlerror ());
- exit (1);
- }
- else
- {
- int *(*fctp) (void);
-
- fctp = dlsym (p, "addr");
- if (fctp == NULL)
- {
- puts ("failed to get address of \"addr\" in \"nodelmod3.so\"");
- exit (1);
- }
- else
- {
- int *varp = fctp ();
-
- *varp = -1;
-
- /* Now close the object. */
- fini_ran = 0;
- if (dlclose (p) != 0)
- {
- puts ("failed to close \"nodelmod3.so\"");
- exit (1);
- }
- else if (! sigsetjmp (jmpbuf, 1))
- {
- /* Access the variable again. */
- if (*varp != -1)
- {
- puts ("\"var_in_mod4\" value not correct");
- exit (1);
- }
- else if (fini_ran != 0)
- {
- puts ("destructor of \"nodelmod4.so\" ran");
- exit (1);
- }
- else
- puts ("-z nodelete in dependency succeeded");
- }
- else
- {
- /* We caught an segmentation fault. */
- puts ("\"nodelmod4.so\" got deleted!");
- exit (1);
- }
- }
- }
-
- return 0;
-}
-
-#include "../test-skeleton.c"
diff --git a/test/dlopen/nodelete1.c b/test/dlopen/nodelete1.c
deleted file mode 100644
index 720e37f..0000000
--- a/test/dlopen/nodelete1.c
+++ /dev/null
@@ -1,59 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-
-int fini_ran;
-
-#define LIBNAME1 "nodelmod1.so"
-
-static int
-do_test (void)
-{
- /* Verify ability to reload RTLD_NODELETE libraries.
- */
- void *p;
-
- p = dlopen (LIBNAME1, RTLD_NOW);
- if (p == NULL)
- {
- printf ("failed to load "LIBNAME1": %s\n", dlerror ());
- exit (1);
- }
-
- if (dlclose (p) != 0)
- {
- puts ("failed to close "LIBNAME1"");
- exit (1);
- }
-
- p = dlopen (LIBNAME1, RTLD_LAZY);
- if (p == NULL)
- {
- printf ("failed to load "LIBNAME1": %s\n", dlerror ());
- exit (1);
- }
-
- if (dlclose (p) != 0)
- {
- puts ("failed to close "LIBNAME1"");
- exit (1);
- }
-
- p = dlopen ("nodelmod2.so", RTLD_LAZY);
- if (p == NULL)
- {
- printf ("failed to load \"nodelmod2.so\": %s\n", dlerror ());
- exit (1);
- }
- if (dlclose (p) != 0)
- {
- puts ("failed to close \"nodelmod2.so\"");
- exit (1);
- }
-
- return 0;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/dlopen/nodelmod1.c b/test/dlopen/nodelmod1.c
deleted file mode 100644
index 51be080..0000000
--- a/test/dlopen/nodelmod1.c
+++ /dev/null
@@ -1,10 +0,0 @@
-extern int fini_ran;
-
-int var1 = 42;
-
-static void
-__attribute__ ((__destructor__))
-destr (void)
-{
- fini_ran = 1;
-}
diff --git a/test/dlopen/nodelmod2.c b/test/dlopen/nodelmod2.c
deleted file mode 100644
index ff2ffc2..0000000
--- a/test/dlopen/nodelmod2.c
+++ /dev/null
@@ -1,10 +0,0 @@
-extern int fini_ran;
-
-int var2 = 100;
-
-static void
-__attribute__ ((__destructor__))
-destr (void)
-{
- fini_ran = 1;
-}
diff --git a/test/dlopen/nodelmod3.c b/test/dlopen/nodelmod3.c
deleted file mode 100644
index 817c94d..0000000
--- a/test/dlopen/nodelmod3.c
+++ /dev/null
@@ -1,8 +0,0 @@
-extern int var_in_mod4;
-extern int *addr (void);
-
-int *
-addr (void)
-{
- return &var_in_mod4;
-}
diff --git a/test/dlopen/nodelmod4.c b/test/dlopen/nodelmod4.c
deleted file mode 100644
index d7fa893..0000000
--- a/test/dlopen/nodelmod4.c
+++ /dev/null
@@ -1,10 +0,0 @@
-extern int fini_ran;
-
-int var_in_mod4 = 99;
-
-static void
-__attribute__ ((__destructor__))
-destr (void)
-{
- fini_ran = 1;
-}
diff --git a/test/dlopen/test1.c b/test/dlopen/test1.c
deleted file mode 100644
index c13eb30..0000000
--- a/test/dlopen/test1.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-
-#ifdef __UCLIBC__
-extern void _dlinfo(void);
-#endif
-
-int main(int argc, char **argv) {
- void *handle;
- int (*mydltest)(const char *s);
- char *error;
-
- handle = dlopen ("./libtest1.so", RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "Could not open ./libtest1.so: %s\n", dlerror());
- exit(1);
- }
-
- mydltest = dlsym(handle, "dltest");
- if ((error = dlerror()) != NULL) {
- fprintf(stderr, "Could not locate symbol 'dltest': %s\n", error);
- exit(1);
- }
-
- mydltest("hello world!");
-
- dlclose(handle);
-
- return EXIT_SUCCESS;
-}
-
diff --git a/test/dlopen/test2.c b/test/dlopen/test2.c
deleted file mode 100644
index d8428f7..0000000
--- a/test/dlopen/test2.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-
-#ifdef __UCLIBC__
-extern void _dlinfo(void);
-#endif
-
-int main(int argc, char **argv) {
- void *handle;
- int (*mydltest)(const char *s);
- char *error;
-
- handle = dlopen ("./libtest2.so", RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "Could not open ./libtest2.so: %s\n", dlerror());
- exit(1);
- }
-
- handle = dlopen ("./libtest1.so", RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "Could not open ./libtest1.so: %s\n", dlerror());
- exit(1);
- }
-
- mydltest = dlsym(handle, "dltest");
- if ((error = dlerror()) != NULL) {
- fprintf(stderr, "Could not locate symbol 'dltest': %s\n", error);
- exit(1);
- }
-
- mydltest("hello world!");
-
- dlclose(handle);
-
- return EXIT_SUCCESS;
-}
-
diff --git a/test/dlopen/test3.c b/test/dlopen/test3.c
deleted file mode 100644
index 2f2dfc6..0000000
--- a/test/dlopen/test3.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-
-extern int dltest(const char *s);
-
-int main(int argc, char **argv)
-{
- dltest("hello world!");
- return EXIT_SUCCESS;
-}
-
diff --git a/test/dlopen/testscope.c b/test/dlopen/testscope.c
deleted file mode 100644
index 90e0798..0000000
--- a/test/dlopen/testscope.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#define LIBNAME "libA.so"
-int main(int argc, char **argv)
-{
- void *libA;
- void (*libAfn)(void);
- char *error;
-
- libA = dlopen(LIBNAME, RTLD_LAZY);
- if (!libA) {
- fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror());
- exit(1);
- }
-
- libAfn = dlsym(libA, "libA_func");
- if ((error = dlerror()) != NULL) {
- fprintf(stderr, "Could not locate symbol 'libA_func': %s\n", error);
- exit(1);
- }
-
- libAfn();
-
- dlclose(libA);
-
- return EXIT_SUCCESS;
-}
diff --git a/test/dlopen/tst-origin.c b/test/dlopen/tst-origin.c
deleted file mode 100644
index 60fcd3f..0000000
--- a/test/dlopen/tst-origin.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <fcntl.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <dlfcn.h>
-
-#ifdef __UCLIBC__
-extern void _dlinfo(void);
-#endif
-
-int main(int argc, char **argv) {
- void *h1, *h2;
- int __attribute__((unused))(*mydltest)(const char *s);
- char *error;
-
- h1 = dlopen ("libtest31.so", RTLD_LAZY);
- if (!h1) {
- fprintf(stderr, "Could not open libtest31.so: %s\n", dlerror());
- exit(1);
- }
-
- h2 = dlopen ("libtest31.so", RTLD_NOLOAD);
- if (!h2) {
- fprintf(stderr, "Could not open libtest31.so(RTLD_NOLOAD): %s\n", dlerror());
- exit(1);
- }
-
- mydltest = dlsym(h1, "dltest");
- if ((error = dlerror()) != NULL) {
- fprintf(stderr, "Could not locate symbol 'dltest': %s\n", error);
- exit(1);
- }
-
- dlclose(h2);
- dlclose(h1);
-
- return EXIT_SUCCESS;
-}
diff --git a/test/inet/Makefile b/test/inet/Makefile
deleted file mode 100644
index b294ea6..0000000
--- a/test/inet/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc inet tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/inet/Makefile.in b/test/inet/Makefile.in
deleted file mode 100644
index 31a4837..0000000
--- a/test/inet/Makefile.in
+++ /dev/null
@@ -1,17 +0,0 @@
-# uClibc inet tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-#
-ifeq ($(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
-TESTS_DISABLED := bug-if1 gethost_r-align gethostid if_nameindex tst-aton \
- tst-network tst-ntoa test-ifaddrs
-endif
-
-ifeq ($(UCLIBC_HAS_SOCKET)$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6),)
-TESTS_DISABLED += tst-ether_aton tst-ethers tst-ethers-line
-endif
-
-ifeq ($(UCLIBC_HAS_RESOLVER_SUPPORT),)
-TESTS_DISABLED += tst-res
-else
-LDFLAGS_tst-res_glibc := -lresolv # assume it's glibc or somebody with that lib
-endif
diff --git a/test/inet/bug-if1.c b/test/inet/bug-if1.c
deleted file mode 100644
index ea84a68..0000000
--- a/test/inet/bug-if1.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Copyright (C) 2004 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)redhat.com>, 2004.
-
- 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/>. */
-
-#include <errno.h>
-#include <limits.h>
-#include <stdio.h>
-#include <string.h>
-#include <net/if.h>
-
-
-static int
-do_test (void)
-{
- char buf[IF_NAMESIZE];
- /* Index 0 is always invalid (see RFC 3493). */
- char *cp = if_indextoname (0, buf);
- if (cp != NULL)
- {
- printf ("invalid index returned result \"%s\"\n", cp);
- return 1;
- }
- else if (errno != ENXIO)
- {
- int err = errno;
- char errbuf1[256];
- char errbuf2[256];
-
- printf ("errno = %d (%s), expected %d (%s)\n",
- err, strerror_r (err, errbuf1, sizeof (errbuf1)),
- ENXIO, strerror_r (ENXIO, errbuf2, sizeof (errbuf2)));
- return 1;
- }
-
- return 0;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/inet/gethost.c b/test/inet/gethost.c
deleted file mode 100644
index 77467e9..0000000
--- a/test/inet/gethost.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <errno.h>
-#include <netdb.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-
-int main(void)
-{
- in_addr_t addr = inet_addr("127.0.0.1");
- struct hostent *hent;
-
- hent = gethostent();
- if (hent == NULL) {
- printf("gethostent(%d):%s\n", errno, hstrerror(h_errno));
- exit(1);
- }
-
- hent = gethostbyname("localhost");
- if (hent == NULL) {
- printf("gethostbyname(%d):%s\n", errno, hstrerror(h_errno));
- exit(1);
- }
-
- hent = gethostbyname2("localhost", AF_INET);
- if (hent == NULL) {
- printf("gethostbyname2(%d):%s\n", errno, hstrerror(h_errno));
- exit(1);
- }
-
- hent = gethostbyaddr(&addr, sizeof(addr), AF_INET);
- if (hent == NULL) {
- printf("gethostbyaddr(%d):%s\n", errno, hstrerror(h_errno));
- exit(1);
- }
-
- return 0;
-}
-
diff --git a/test/inet/gethost_r-align.c b/test/inet/gethost_r-align.c
deleted file mode 100644
index 53ce93a..0000000
--- a/test/inet/gethost_r-align.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Since the reentrant gethost functions take a char * buffer,
- * we have to make sure they internally do not assume alignment.
- * The actual return values are not relevant. If the test fails,
- * it'll be due to an alignment exception which means the test
- * app is killed by the kernel.
- */
-
-#include <errno.h>
-#include <netdb.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-
-int main(int argc, char *argv[])
-{
- size_t i;
- char buf[1024];
- in_addr_t addr;
-
- addr = inet_addr("127.0.0.1");
-
- for (i = 0; i < sizeof(size_t) * 2; ++i) {
- struct hostent hent, *hentres;
- int ret, herr;
-
- printf("Testing misalignment of %2zi bytes: ", i);
-
- memset(&hent, 0x00, sizeof(hent));
- ret = gethostent_r(&hent, buf + i, sizeof(buf) - i, &hentres, &herr);
- printf("%sgethostent_r() ", (ret ? "!!!" : ""));
-
- memset(&hent, 0x00, sizeof(hent));
- ret = gethostbyname_r("localhost", &hent, buf + i, sizeof(buf) - i, &hentres, &herr);
- printf("%sgethostbyname_r() ", (ret ? "!!!" : ""));
-
- memset(&hent, 0x00, sizeof(hent));
- ret = gethostbyname2_r("localhost", AF_INET, &hent, buf + i, sizeof(buf) - i, &hentres, &herr);
- printf("%sgethostbyname2_r() ", (ret ? "!!!" : ""));
-
- memset(&hent, 0x00, sizeof(hent));
- ret = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf + i, sizeof(buf) - i, &hentres, &herr);
- printf("%sgethostbyaddr_r() ", (ret ? "!!!" : ""));
-
- puts("OK!");
- }
-
- return 0;
-}
diff --git a/test/inet/gethostid.c b/test/inet/gethostid.c
deleted file mode 100644
index 1b9af86..0000000
--- a/test/inet/gethostid.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <unistd.h>
-#include <stdio.h>
-int main(void) {
- printf("hostid=%ld\n", gethostid());
- return 0;
-}
diff --git a/test/inet/getnetent.c b/test/inet/getnetent.c
deleted file mode 100644
index 1f55e43..0000000
--- a/test/inet/getnetent.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdio.h>
-#include <netdb.h>
-int main(void)
-{
- struct netent *net;
- setnetent(0);
- while ((net = getnetent())) {
- while (net->n_net && !((net->n_net >> 24) & 0xff)) {
- net->n_net <<= 8;
- }
- printf("%u.%u.%u.%u\n",
- (net->n_net >> 24) & 0xff, (net->n_net >> 16) & 0xff,
- (net->n_net >> 8) & 0xff, net->n_net & 0xff);
- }
- endnetent();
- return 0;
-}
diff --git a/test/inet/if_nameindex.c b/test/inet/if_nameindex.c
deleted file mode 100644
index 126c5ba..0000000
--- a/test/inet/if_nameindex.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* if_nameindex.c: test the if_nameindex() function
- *
- * Copyright (C) 2006 Erik Andersen <andersen(a)uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <net/if.h>
-
-static char ifname[IF_NAMESIZE];
-
-static void test_if_nameindex(void)
-{
- size_t i;
- struct if_nameindex *ret;
-
- ret = if_nameindex();
-
- if (ret == NULL) {
- perror("if_nameindex()");
- exit(1);
- }
-
- printf("--- if_nameindex()\n");
- for (i=0; ret[i].if_name; ++i)
- printf("%i: %s\n", ret[i].if_index, ret[i].if_name);
-
- if_freenameindex(ret);
-}
-
-static void test_if_indextoname(void)
-{
- if (if_indextoname(1, ifname) == NULL) {
- perror("if_nameindex()");
- exit(1);
- }
-
- printf("if_indextoname(1) = %s\n", ifname);
-}
-
-static void test_if_nametoindex(void)
-{
- int ifindex = if_nametoindex(ifname);
-
- if (ifindex == 0) {
- perror("if_nametoindex()");
- exit(1);
- }
-
- printf("if_nametoindex(%s) = %i\n", ifname, ifindex);
-}
-
-int main(void)
-{
- test_if_nameindex();
- test_if_indextoname();
- test_if_nametoindex();
- return 0;
-}
diff --git a/test/inet/tst-aton.c b/test/inet/tst-aton.c
deleted file mode 100644
index 3e945f1..0000000
--- a/test/inet/tst-aton.c
+++ /dev/null
@@ -1,80 +0,0 @@
-#include <stdio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-/* Note: uClibc only supports the standard notation 'a.b.c.d' */
-
-static struct tests
-{
- const char *input;
- int valid;
- uint32_t result;
-} tests[] =
-{
- { "", 0, 0 },
- { "-1", 0, 0 },
-/*
- { "256", 1, 0x00000100 },
-*/
- { "256.", 0, 0 },
- { "256a", 0, 0 },
-/*
- { "0x100", 1, 0x00000100 },
- { "0200.0x123456", 1, 0x80123456 },
- { "0300.0x89123456.", 0 ,0 },
- { "0100.-0xffff0000", 0, 0 },
- { "0.0xffffff", 1, 0x00ffffff },
- { "0.0x1000000", 0, 0 },
- { "0377.16777215", 1, 0xffffffff },
- { "0377.16777216", 0, 0 },
- { "0x87.077777777", 1, 0x87ffffff },
- { "0x87.0100000000", 0, 0 },
- { "0.1.3", 1, 0x00010003 },
-*/
- { "0.256.3", 0, 0 },
- { "256.1.3", 0, 0 },
-/*
- { "0.1.0x10000", 0, 0 },
- { "0.1.0xffff", 1, 0x0001ffff },
-*/
- { "0.1a.3", 0, 0 },
- { "0.1.a3", 0, 0 },
- { "1.2.3.4", 1, 0x01020304 },
- { "0400.2.3.4", 0, 0 },
- { "1.0x100.3.4", 0, 0 },
- { "1.2.256.4", 0, 0 },
- { "1.2.3.0x100", 0, 0 },
- { "323543357756889", 0, 0 },
- { "10.1.2.3.4", 0, 0},
-};
-
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- size_t cnt;
-
- for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt)
- {
- struct in_addr addr;
-
- if ((int) inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
- {
- if (tests[cnt].valid)
- printf ("\"%s\" not seen as valid IP address\n", tests[cnt].input);
- else
- printf ("\"%s\" seen as valid IP address\n", tests[cnt].input);
- result = 1;
- }
- else if (tests[cnt].valid && addr.s_addr != ntohl (tests[cnt].result))
- {
- printf ("\"%s\" not converted correctly: is %08x, should be %08x\n",
- tests[cnt].input, addr.s_addr, tests[cnt].result);
- result = 1;
- }
- }
-
- return result;
-}
diff --git a/test/inet/tst-ether_aton.c b/test/inet/tst-ether_aton.c
deleted file mode 100644
index 67cb435..0000000
--- a/test/inet/tst-ether_aton.c
+++ /dev/null
@@ -1,46 +0,0 @@
-#include <stdio.h>
-#include <stdint.h>
-#include <string.h>
-#include <netinet/ether.h>
-
-static struct tests
-{
- const char *input;
- int valid;
- uint8_t result[6];
-} tests[] =
-{
- { "", 0, {0, 0, 0, 0, 0, 0} },
- { "AB:CD:EF:01:23:45", 1, {171, 205, 239, 1, 35, 69} },
- { "\022B:BB:BB:BB:BB:BB", 0, {0, 0, 0, 0, 0, 0} }
-};
-
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- size_t cnt;
-
- for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt)
- {
- struct ether_addr *addr;
-
- if (!!(addr = ether_aton (tests[cnt].input)) != tests[cnt].valid)
- {
- if (tests[cnt].valid)
- printf ("\"%s\" not seen as valid MAC address\n", tests[cnt].input);
- else
- printf ("\"%s\" seen as valid MAC address\n", tests[cnt].input);
- result = 1;
- }
- else if (tests[cnt].valid
- && memcmp(addr, &tests[cnt].result, sizeof(struct ether_addr)))
- {
- printf ("\"%s\" not converted correctly\n", tests[cnt].input);
- result = 1;
- }
- }
-
- return result;
-}
diff --git a/test/inet/tst-ethers-line.c b/test/inet/tst-ethers-line.c
deleted file mode 100644
index 182faf0..0000000
--- a/test/inet/tst-ethers-line.c
+++ /dev/null
@@ -1,55 +0,0 @@
-#include <netinet/ether.h>
-#include <stdio.h>
-#include <sys/mman.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <stdlib.h>
-
-/* glibc 2.4 has no ETHER_FILE_NAME, host compile fails without this */
-#ifndef ETHER_FILE_NAME
-#define ETHER_FILE_NAME "/etc/ethers"
-#endif
-
-#define ETHER_LINE_LEN 256
-
-/* This test requires /etc/ethers to exist
- * and to have nonzero length. You should create it manually,
- * if it doesn't exist.
- */
-
-int main(void)
-{
- struct ether_addr addr;
- char hostname[ETHER_LINE_LEN];
- int fd, i;
- const char *ethers;
- struct stat statb;
-
- if ((fd = open(ETHER_FILE_NAME, O_RDONLY)) == -1) {
- perror ("Cannot open file /etc/ethers");
- exit(1);
- }
-
- if (fstat(fd, &statb)) {
- perror("Stat failed");
- exit(1);
- }
- ethers = mmap(NULL, statb.st_size, PROT_READ, MAP_SHARED, fd, 0);
-
- if (ethers == MAP_FAILED) {
- perror("File mapping failed");
- exit(1);
- }
-
- ether_line(ethers, &addr, hostname);
-
- for (i = 0; i < 6; i++) {
- printf("%02x", addr.ether_addr_octet[i]);
- if (i < 5)
- printf(":");
- }
- printf(" %s\n", hostname);
-
- return 0;
-}
diff --git a/test/inet/tst-ethers.c b/test/inet/tst-ethers.c
deleted file mode 100644
index f12813a..0000000
--- a/test/inet/tst-ethers.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <netinet/ether.h>
-#include <stdio.h>
-
-#define ETHER_LINE_LEN 256
-
-/* This test requires /etc/ethers to exist
- * and to have host "teeth". For example:
- * 00:11:22:33:44:55 teeth
- * You should create /etc/ethers file with
- * host "teeth" manually, if it doesn't exist.
- */
-
-int main(void)
-{
- struct ether_addr addr;
- char host[ETHER_LINE_LEN];
- int i;
- int res = ether_hostton("teeth", &addr);
-
- if (res) {
- printf("Either /etc/ethers is missing or it has incorrect contents\n");
- return 1;
- }
-
- for (i = 0; i < 6; i++) {
- printf("%02x", addr.ether_addr_octet[i]);
- if (i < 5)
- printf(":");
- }
-
- res = ether_ntohost(host, &addr);
- if (res)
- return 1;
- printf(" %s\n", host);
-
- return 0;
-}
diff --git a/test/inet/tst-ifaddrs.c b/test/inet/tst-ifaddrs.c
deleted file mode 100644
index 6e6c015..0000000
--- a/test/inet/tst-ifaddrs.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Test listing of network interface addresses.
- Copyright (C) 2002-2015 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/>. */
-
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ifaddrs.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-static int failures;
-
-static const char *
-addr_string (struct sockaddr *sa, char *buf, size_t size)
-{
- if (sa == NULL)
- return "<none>";
-
- switch (sa->sa_family)
- {
- case AF_INET:
- return inet_ntop (AF_INET, &((struct sockaddr_in *) sa)->sin_addr,
- buf, size);
- case AF_INET6:
- return inet_ntop (AF_INET6, &((struct sockaddr_in6 *) sa)->sin6_addr,
- buf, size);
-#ifdef AF_LINK
- case AF_LINK:
- return "<link>";
-#endif
- case AF_UNSPEC:
- return "---";
-
-#ifdef AF_PACKET
- case AF_PACKET:
- return "<packet>";
-#endif
-
- default:
- ++failures;
- printf ("sa_family=%d %08x\n", sa->sa_family,
- *(int*)&((struct sockaddr_in *) sa)->sin_addr.s_addr);
- return "<unexpected sockaddr family>";
- }
-}
-
-
-static int
-do_test (void)
-{
- struct ifaddrs *ifaces, *ifa;
-
- if (getifaddrs (&ifaces) < 0)
- {
- if (errno != ENOSYS)
- {
- printf ("Couldn't get any interfaces: %s.\n", strerror (errno));
- exit (1);
- }
- /* The function is simply not implemented. */
- exit (0);
- }
-
- puts ("\
-Name Flags Address Netmask Broadcast/Destination");
-
- for (ifa = ifaces; ifa != NULL; ifa = ifa->ifa_next)
- {
- char abuf[64], mbuf[64], dbuf[64];
- printf ("%-15s%#.4x %-15s %-15s %-15s\n",
- ifa->ifa_name, ifa->ifa_flags,
- addr_string (ifa->ifa_addr, abuf, sizeof (abuf)),
- addr_string (ifa->ifa_netmask, mbuf, sizeof (mbuf)),
- addr_string (ifa->ifa_broadaddr, dbuf, sizeof (dbuf)));
- }
-
- freeifaddrs (ifaces);
-
- return failures ? 1 : 0;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/inet/tst-network.c b/test/inet/tst-network.c
deleted file mode 100644
index c6089aa..0000000
--- a/test/inet/tst-network.c
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Test for inet_network.
- Copyright (C) 2000, 2002 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Andreas Jaeger <aj(a)suse.de>, 2000.
-
- 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/>. */
-
-#include <stdio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-struct
-{
- const char *network;
- uint32_t number;
-} tests [] =
-{
- {"1.0.0.0", 0x1000000},
- {"1.0.0", 0x10000},
- {"1.0", 0x100},
- {"1", 0x1},
- {"192.168.0.0", 0xC0A80000},
- /* Now some invalid addresses. */
- {"141.30.225.2800", INADDR_NONE},
- {"141.76.1.1.1", INADDR_NONE},
- {"141.76.1.11.", INADDR_NONE},
- {"1410", INADDR_NONE},
- {"1.1410", INADDR_NONE},
- {"1.1410.", INADDR_NONE},
- {"1.1410", INADDR_NONE},
- {"141.76.1111", INADDR_NONE},
- {"141.76.1111.", INADDR_NONE},
- {"1.1.1.257", INADDR_NONE},
- /* Now some from BSD */
- {"0x12", 0x00000012},
- {"127.1", 0x00007f01},
- {"127.1.2.3", 0x7f010203},
- {"0x123456", INADDR_NONE},
- {"0x12.0x34", 0x00001234},
- {"0x12.0x345", INADDR_NONE},
- {"1.2.3.4.5", INADDR_NONE},
- {"1..3.4", INADDR_NONE},
- {".", INADDR_NONE},
- {"1.", INADDR_NONE},
- {".1", INADDR_NONE},
- {"x", INADDR_NONE},
- {"0x", INADDR_NONE},
- {"0", 0x00000000},
- {"0x0", 0x00000000},
- {"01.02.07.077", 0x0102073f},
- {"0x1.23.045.0", 0x01172500},
- {"", INADDR_NONE},
- {" ", INADDR_NONE},
- {"bar", INADDR_NONE},
- {"1.2bar", INADDR_NONE},
- {"1.", INADDR_NONE},
- {"������", INADDR_NONE},
- {"255.255.255.255", INADDR_NONE},
- {"x", INADDR_NONE},
- {"0X12", 0x00000012},
- {"078", INADDR_NONE},
- {"1 bar", INADDR_NONE},
- {"127.0xfff", INADDR_NONE},
-};
-
-
-int
-main (void)
-{
- int errors = 0;
- size_t i;
- uint32_t res;
-
- for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
- {
- printf ("Testing: %s\n", tests[i].network);
- res = inet_network (tests[i].network);
-
- if (res != tests[i].number)
- {
- ++errors;
- printf ("Test failed for inet_network (\"%s\"):\n",
- tests[i].network);
- printf ("Expected return value %u (0x%x) but got %u (0x%x).\n",
- tests[i].number, tests[i].number, res, res);
- }
-
- }
-
- return errors != 0;
-}
diff --git a/test/inet/tst-ntoa.c b/test/inet/tst-ntoa.c
deleted file mode 100644
index 9be91eb..0000000
--- a/test/inet/tst-ntoa.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-
-
-static int
-test (unsigned int inaddr, const char *expected)
-{
- struct in_addr addr;
- char *res;
- int fail;
-
- addr.s_addr = htonl (inaddr);
- res = inet_ntoa (addr);
- fail = strcmp (res, expected);
-
- printf ("%#010x -> \"%s\" -> %s%s\n", inaddr, res,
- fail ? "fail, expected" : "ok", fail ? expected : "");
-
- return fail;
-}
-
-
-int
-main (void)
-{
- int result = 0;
-
- result |= test (INADDR_LOOPBACK, "127.0.0.1");
- result |= test (INADDR_BROADCAST, "255.255.255.255");
- result |= test (INADDR_ANY, "0.0.0.0");
- result |= test (0xc0060746, "192.6.7.70");
-
- return result;
-}
diff --git a/test/inet/tst-res.c b/test/inet/tst-res.c
deleted file mode 100644
index b65f30f..0000000
--- a/test/inet/tst-res.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <stdlib.h>
-#include <assert.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <arpa/nameser.h>
-#include <resolv.h>
-#include <netdb.h>
-
-int main(int argc, char **argv)
-{
- int r;
- struct __res_state state;
-
- r = res_ninit(&state);
- if (r) {
- herror("ninit");
- abort();
- }
- r = res_init();
- if (r) {
- herror("init");
- abort();
- }
-
-#ifdef __UCLIBC_HAS_BSD_RES_CLOSE__
- res_close();
-#endif
-#ifdef __UCLIBC__
- /* assume there is at least one resolver configured */
- assert (state._u._ext.nscount > 0);
-#else
- assert (state._u._ext.nscount == 0);
-#endif
- assert (state.options & RES_INIT);
- res_nclose(&state);
-#ifdef __UCLIBC__
- /* We wipe the whole thing */
- assert ((state.options & RES_INIT) == 0);
-#endif
- assert (state._u._ext.nscount == 0);
-
- return 0;
-}
-
diff --git a/test/inet/tst-sock-nonblock.c b/test/inet/tst-sock-nonblock.c
deleted file mode 100644
index 54a7ee2..0000000
--- a/test/inet/tst-sock-nonblock.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* vi: set sw=4 ts=4 sts=4: */
-/*
- * Nonblocking socket test for uClibc
- * Copyright (C) 2012 by Kevin Cernekee <cernekee(a)gmail.com>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#include <error.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <sys/fcntl.h>
-
-static int
-do_test(void)
-{
- int fd, ret, result = 0;
- struct sockaddr_un sa;
- char buf;
-
- fd = socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0);
- if (fd < 0) {
- perror("socket()");
- result = 1;
- }
-
- memset(&sa, 0, sizeof(sa));
- sa.sun_family = AF_UNIX;
- strcpy(sa.sun_path, "socktest");
- unlink("socktest");
- if (bind(fd, (const struct sockaddr *)&sa, sizeof(sa)) < 0) {
- perror("bind()");
- result = 1;
- }
-
- ret = read(fd, &buf, sizeof(buf));
- if (ret != -1 || errno != EAGAIN) {
- error(0, 0, "Nonblocking read returned %d", ret);
- result = 1;
- }
-
- return result;
-}
-
-#define TIMEOUT 5
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/librt/Makefile b/test/librt/Makefile
deleted file mode 100644
index 1021afe..0000000
--- a/test/librt/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc shm tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/librt/Makefile.in b/test/librt/Makefile.in
deleted file mode 100644
index f25522c..0000000
--- a/test/librt/Makefile.in
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc shm tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-LDFLAGS_shmtest := -lrt
-
-ifeq ($(ARCH_USE_MMU),)
-TESTS_DISABLED := shmtest
-endif
diff --git a/test/librt/shmtest.c b/test/librt/shmtest.c
deleted file mode 100644
index a14302d..0000000
--- a/test/librt/shmtest.c
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Copyright (C) 2009 Mikael Lund Jepsen <mlj(a)iccc.dk>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <errno.h>
-#include <fcntl.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
-char shared_name[] = "/sharetest";
-int test_data[11] = {0,1,2,3,4,5,6,7,8,9,10};
-
-int main(void) {
- int pfds[2];
- pid_t pid;
- int fd;
- int test_data_fails = 0;
- char *ptest_data;
- unsigned int i;
- char buf[30];
- int rv;
-
- pipe(pfds);
-
- switch(pid = fork()) {
- case -1:
- perror("fork");
- exit(1); /* parent exits */
-
- case 0:
- /* Child */
-
- /* wait for parent */
- read(pfds[0], buf, 5);
-
- fd = shm_open(shared_name, O_RDWR, DEFFILEMODE);
- if (fd == -1) {
- perror("CHILD - shm_open(existing):");
- exit(1);
- } else {
- ptest_data = mmap(0, sizeof(test_data), PROT_READ + PROT_WRITE, MAP_SHARED, fd, 0);
- if (ptest_data != MAP_FAILED) {
- for (i=0; i < ARRAY_SIZE(test_data); i++) {
- if (ptest_data[i] != test_data[i]) {
- printf("%-40s: Offset %d, local %d, shm %d\n", "Compare memory error", i, test_data[i], ptest_data[i]);
- test_data_fails++;
- }
- }
- if (test_data_fails == 0)
- printf("%-40s: %s\n", "Compare memory", "Success");
-
- munmap(ptest_data, sizeof(test_data));
- }
- }
- exit(0);
-
- default:
- /* Parent */
- fd = shm_open(shared_name, O_RDWR+O_CREAT+O_EXCL, DEFFILEMODE );
- if (fd == -1) {
- perror("PARENT - shm_open(create):");
- } else {
- if ((ftruncate(fd, sizeof(test_data))) == -1)
- {
- printf("%-40s: %s", "ftruncate", strerror(errno));
- shm_unlink(shared_name);
- return 0;
- }
-
- ptest_data = mmap(0, sizeof(test_data), PROT_READ + PROT_WRITE, MAP_SHARED, fd, 0);
- if (ptest_data == MAP_FAILED)
- {
- perror("PARENT - mmap:");
- if (shm_unlink(shared_name) == -1) {
- perror("PARENT - shm_unlink:");
- }
- return 0;
- }
- for (i=0; i < ARRAY_SIZE(test_data); i++)
- ptest_data[i] = test_data[i];
-
- /* signal child */
- write(pfds[1], "rdy", 5);
- /* wait for child */
- wait(&rv);
-
- /* Cleanup */
- munmap(ptest_data, sizeof(test_data));
- if (shm_unlink(shared_name) == -1) {
- perror("PARENT - shm_unlink:");
- }
- }
- }
- return 0;
-}
diff --git a/test/locale-mbwc/Makefile b/test/locale-mbwc/Makefile
deleted file mode 100644
index 263f325..0000000
--- a/test/locale-mbwc/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc locale tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/locale-mbwc/Makefile.in b/test/locale-mbwc/Makefile.in
deleted file mode 100644
index 6c0d894..0000000
--- a/test/locale-mbwc/Makefile.in
+++ /dev/null
@@ -1,30 +0,0 @@
-# uClibc locale tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-# tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm \
-
-TESTS := tst_iswalnum tst_iswalpha tst_iswcntrl \
- tst_iswctype tst_iswdigit tst_iswgraph \
- tst_iswlower tst_iswprint tst_iswpunct \
- tst_iswspace tst_iswupper tst_iswxdigit \
- tst_mblen tst_mbrlen tst_mbrtowc tst_mbsrtowcs \
- tst_mbstowcs tst_mbtowc tst_strcoll tst_strxfrm \
- tst_swscanf tst_towctrans tst_towlower \
- tst_towupper tst_wcrtomb tst_wcscat tst_wcschr \
- tst_wcscmp tst_wcscoll tst_wcscpy tst_wcscspn \
- tst_wcslen tst_wcsncat tst_wcsncmp tst_wcsncpy \
- tst_wcspbrk tst_wcsrtombs tst_wcsspn tst_wcsstr \
- tst_wcstod tst_wcstok tst_wcstombs tst_wcswidth \
- tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans \
- tst_wctype tst_wcwidth tst_strfmon \
- tst2_mbrtowc
-
-# NOTE: For now disabled tst_strfmon to avoid build failure.
-TESTS_DISABLED := tst_strfmon
-
-ifneq ($(UCLIBC_HAS_FLOATS),y)
-TESTS_DISABLED += tst_swscanf tst_wcstod
-endif
-
-DODIFF_rint := 1
-
-EXTRA_CFLAGS := -D__USE_GNU -fno-builtin
diff --git a/test/locale-mbwc/dat_isw-funcs.h b/test/locale-mbwc/dat_isw-funcs.h
deleted file mode 100644
index 70aecb0..0000000
--- a/test/locale-mbwc/dat_isw-funcs.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_isw-funcs.h
- *
- * ISW*: int isw* (wint_t wc);
- */
-
-#include <errno.h>
-#include <stdlib.h>
-#include <wctype.h>
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-#define TST_ISW_LOC(FUNC, func) \
- TST_ISW## FUNC tst_isw## func ##_loc []
-
-#define TST_ISW_REC(locale, func) \
- { Tisw## func, TST_LOC_## locale },
-
-/*
- * NOTE:
- * Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
- * Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
- *
- * Since the functions return *non*-zero value for TRUE, can't
- * compare an actual return value with an expected return value.
- * Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
- * the non-zero value.
- *
- * { { WEOF }, { 0,1,0 } },
- * | |
- * | ret_val: an expected return value
- * ret_flg: if 1, compare an actual return value with the
- * ret_val; if 0, the test program
- * checks the actual return value.
- */
diff --git a/test/locale-mbwc/dat_iswalnum.c b/test/locale-mbwc/dat_iswalnum.c
deleted file mode 100644
index 5093703..0000000
--- a/test/locale-mbwc/dat_iswalnum.c
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswalnum.c
- *
- * ISW*: int iswalnum (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (ALNUM, alnum) = {
-
- { TST_ISW_REC (de, alnum)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,0,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,0,0 } }, /* a grave */
- { { 0x00F6 }, { 0,0,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF }, { 0,0,0 } }, /* y dia */
- { .is_last = 1 } /* last element */
- }
- },
- { TST_ISW_REC (de_UTF8, alnum)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,0,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,0,0 } }, /* a grave */
- { { 0x00F6 }, { 0,0,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF }, { 0,0,0 } }, /* y dia */
- { .is_last = 1 } /* last element */
- }
- },
- { TST_ISW_REC (enUS, alnum)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,0,0 } },
- { { 0x0039 }, { 0,0,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,0,0 } },
- { { 0x005A }, { 0,0,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,0,0 } },
- { { 0x007A }, { 0,0,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* last element */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, alnum)
-#else
- { TST_ISW_REC (ja_UTF8, alnum)
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
-#else
- { { 0x3029 }, { 0,0,0 } }, /* Hangzhou NUM9 */
-#endif
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
-#else
- { { 0x3041 }, { 0,0,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,0,0 } }, /* HIRAGANA u" */
-#endif
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
-#ifdef SHOJI_IS_RIGHT
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
-#else
- { { 0x309E }, { 0,0,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,0,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,0,0 } }, /* KATAKANA wo" */
-#endif
- { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */
-#ifdef SHOJI_IS_RIGHT
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
-#else
- { { 0x30FE }, { 0,0,0 } }, /* KATAKANA ITERATION */
-#endif
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#ifdef SHOJI_IS_RIGHT
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
-#else
- { { 0x4E00 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#endif
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,0,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
-#else
- { { 0xFF66 }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,0,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
-#endif
- { .is_last = 1 } /* last element */
- }
- },
- { TST_ISW_REC (end, alnum) }
-};
diff --git a/test/locale-mbwc/dat_iswalpha.c b/test/locale-mbwc/dat_iswalpha.c
deleted file mode 100644
index c2b59fb..0000000
--- a/test/locale-mbwc/dat_iswalpha.c
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswalpha.c
- *
- * ISW*: int iswalpha (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (ALPHA, alpha) = {
-
- { TST_ISW_REC (de, alpha)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,0,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,0,0 } }, /* a grave */
- { { 0x00F6 }, { 0,0,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF }, { 0,0,0 } }, /* y dia */
- { .is_last = 1 } /* last element */
- }
- },
- { TST_ISW_REC (enUS, alpha)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,1,0 } },
- { { 0x0039 }, { 0,1,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,0,0 } },
- { { 0x005A }, { 0,0,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,0,0 } },
- { { 0x007A }, { 0,0,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } }, /* 20 */
- { .is_last = 1 } /* last element */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, alpha)
-#else
- { TST_ISW_REC (ja_UTF8, alpha)
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
-#else
- { { 0x3029 }, { 0,0,0 } }, /* Hangzhou NUM9 */
-#endif
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
-#else
- { { 0x3041 }, { 0,0,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,0,0 } }, /* HIRAGANA u" */
-#endif
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
-#ifdef SHOJI_IS_RIGHT
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
-#else
- { { 0x309E }, { 0,0,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,0,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,0,0 } }, /* KATAKANA wo" */
-#endif
- { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */
-#ifdef SHOJI_IS_RIGHT
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
-#else
- { { 0x30FE }, { 0,0,0 } }, /* KATAKANA ITERATION */
-#endif
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#ifdef SHOJI_IS_RIGHT
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
-#else
- { { 0x4E00 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#endif
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
-#else
- { { 0xFF19 }, { 0,0,0 } }, /* FULL 9 */
-#endif
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,0,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
-#else
- { { 0xFF66 }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,0,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
-#endif
- { .is_last = 1 } /* last element */
- }
- },
- { TST_ISW_REC (end, alpha) }
-};
diff --git a/test/locale-mbwc/dat_iswcntrl.c b/test/locale-mbwc/dat_iswcntrl.c
deleted file mode 100644
index e6ec685..0000000
--- a/test/locale-mbwc/dat_iswcntrl.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswcntrl.c
- *
- * ISW*: int iswcntrl (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (CNTRL, cntrl) = {
-
- { TST_ISW_REC (de, cntrl)
- {
- { { 0x0080 }, { 0,0,0 } }, /* CTRL */
- { { 0x009F }, { 0,0,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,1,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF }, { 0,1,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,1,0 } }, /* a grave */
- { { 0x00F6 }, { 0,1,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,1,0 } }, /* o stroke */
- { { 0x00FF }, { 0,1,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, cntrl)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,0,0 } },
- { { 0x001F }, { 0,0,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,1,0 } },
- { { 0x0039 }, { 0,1,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,1,0 } },
- { { 0x005A }, { 0,1,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,1,0 } },
- { { 0x007A }, { 0,1,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,0,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, cntrl)
-#else
- { TST_ISW_REC (ja_UTF8, cntrl)
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC(end, cntrl) }
-};
diff --git a/test/locale-mbwc/dat_iswctype.c b/test/locale-mbwc/dat_iswctype.c
deleted file mode 100644
index 0dcf182..0000000
--- a/test/locale-mbwc/dat_iswctype.c
+++ /dev/null
@@ -1,667 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswctype.c
- *
- * ISWCTYPE: int iswctype( wint_t wc, wctype_t charclass );
- */
-
-#include <errno.h>
-#include <stdlib.h>
-#include <wctype.h>
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-/*
- * NOTE:
- * Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
- * Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
- *
- * Since the functions return *non*-zero value for TRUE, can't
- * compare an actual return value with an expected return value.
- * Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
- * the non-zero value.
- *
- * { { WEOF }, { 0,1,0 } },
- * | |
- * | ret_val: an expected return value
- * ret_flg: if 1, compare an actual return value with the
- * ret_val; if 0, the test program checks
- * the actual return value.
- */
-
-TST_ISWCTYPE tst_iswctype_loc [] = {
- {
- { Tiswctype, TST_LOC_de },
- {
- { { 0x009F, "alnum" }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0, "alnum" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1, "alnum" }, { 0,1,0 } }, /* UD ! */
- { { 0x00B1, "alnum" }, { 0,1,0 } }, /* +- sign */
- { { 0x00B3, "alnum" }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4, "alnum" }, { 0,1,0 } }, /* ACUTE */
- { { 0x00BB, "alnum" }, { 0,1,0 } }, /* >> */
- { { 0x00BE, "alnum" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF, "alnum" }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0, "alnum" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "alnum" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "alnum" }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8, "alnum" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "alnum" }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0, "alnum" }, { 0,0,0 } }, /* a grave */
- { { 0x00F6, "alnum" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "alnum" }, { 0,1,0 } }, /* division */
- { { 0x00F8, "alnum" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "alnum" }, { 0,0,0 } }, /* y dia */
- { { 0x0080, "alpha" }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0, "alpha" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1, "alpha" }, { 0,1,0 } }, /* UD ! */
- { { 0x00B1, "alpha" }, { 0,1,0 } }, /* +- sign */
- { { 0x00B4, "alpha" }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8, "alpha" }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9, "alpha" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB, "alpha" }, { 0,1,0 } }, /* >> */
- { { 0x00BE, "alpha" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF, "alpha" }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0, "alpha" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "alpha" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "alpha" }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8, "alpha" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "alpha" }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0, "alpha" }, { 0,0,0 } }, /* a grave */
- { { 0x00F6, "alpha" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "alpha" }, { 0,1,0 } }, /* division */
- { { 0x00F8, "alpha" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "alpha" }, { 0,0,0 } }, /* y dia */
- { { 0x0080, "cntrl" }, { 0,0,0 } }, /* CTRL */
- { { 0x009F, "cntrl" }, { 0,0,0 } }, /* CTRL */
- { { 0x00A0, "cntrl" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00F6, "cntrl" }, { 0,1,0 } }, /* o dia */
- { { 0x00FF, "cntrl" }, { 0,1,0 } }, /* y dia */
- { { 0x00B9, "digit" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BE, "digit" }, { 0,1,0 } }, /* 3/4 */
- { { 0x009F, "graph" }, { 0,1,0 } }, /* CTRL */
-#ifdef SHOJI_IS_RIGHT
- { { 0x00A0, "graph" }, { 0,1,0 } }, /* NB SPACE */
-#else
- { { 0x00A0, "graph" }, { 0,0,0 } }, /* NB SPACE */
-#endif
- { { 0x00A1, "graph" }, { 0,0,0 } }, /* UD ! */
- { { 0x00B1, "graph" }, { 0,0,0 } }, /* +- sign */
- { { 0x00B3, "graph" }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4, "graph" }, { 0,0,0 } }, /* ACUTE */
- { { 0x00BB, "graph" }, { 0,0,0 } }, /* >> */
- { { 0x00BE, "graph" }, { 0,0,0 } }, /* 3/4 */
- { { 0x00C0, "graph" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "graph" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "graph" }, { 0,0,0 } }, /* multipl. */
- { { 0x00D8, "graph" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "graph" }, { 0,0,0 } }, /* small Sh */
- { { 0x00F7, "graph" }, { 0,0,0 } }, /* division */
- { { 0x00F8, "graph" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "graph" }, { 0,0,0 } }, /* y dia */
- { { 0x009F, "print" }, { 0,1,0 } }, /* CTRL */
-#ifdef SHOJI_IS_RIGHT
- { { 0x00A0, "print" }, { 0,1,0 } }, /* NB SPACE */
-#else
- { { 0x00A0, "print" }, { 0,0,0 } }, /* NB SPACE */
-#endif
- { { 0x00A1, "print" }, { 0,0,0 } }, /* UD ! */
- { { 0x00B1, "print" }, { 0,0,0 } }, /* +- sign */
- { { 0x00B4, "print" }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8, "print" }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9, "print" }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB, "print" }, { 0,0,0 } }, /* >> */
- { { 0x00BE, "print" }, { 0,0,0 } }, /* 3/4 */
- { { 0x00C0, "print" }, { 0,0,0 } }, /* A Grave */
- { { 0x00DF, "print" }, { 0,0,0 } }, /* small Sh */
- { { 0x00F6, "print" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "print" }, { 0,0,0 } }, /* division */
- { { 0x00F8, "print" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "print" }, { 0,0,0 } }, /* y dia */
- { { 0x009F, "punct" }, { 0,1,0 } }, /* CTRL */
-#ifdef SHOJI_IS_RIGHT
- { { 0x00A0, "punct" }, { 0,1,0 } }, /* NB SPACE */
-#else
- { { 0x00A0, "punct" }, { 0,0,0 } }, /* NB SPACE */
-#endif
- { { 0x00A1, "punct" }, { 0,0,0 } }, /* UD ! */
- { { 0x00B0, "punct" }, { 0,0,0 } }, /* Degree */
- { { 0x00B1, "punct" }, { 0,0,0 } }, /* +- sign */
- { { 0x00B2, "punct" }, { 0,0,0 } }, /* SUP 2 */
- { { 0x00B3, "punct" }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4, "punct" }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8, "punct" }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9, "punct" }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB, "punct" }, { 0,0,0 } }, /* >> */
- { { 0x00BC, "punct" }, { 0,0,0 } }, /* 1/4 */
- { { 0x00BD, "punct" }, { 0,0,0 } }, /* 1/2 */
- { { 0x00BE, "punct" }, { 0,0,0 } }, /* 3/4 */
- { { 0x00BF, "punct" }, { 0,0,0 } }, /* UD ? */
- { { 0x00C0, "punct" }, { 0,1,0 } }, /* A Grave */
- { { 0x00D7, "punct" }, { 0,0,0 } }, /* multipl. */
- { { 0x00DF, "punct" }, { 0,1,0 } }, /* small Sh */
- { { 0x00F6, "punct" }, { 0,1,0 } }, /* o dia */
- { { 0x00F7, "punct" }, { 0,0,0 } }, /* division */
- { { 0x00FF, "punct" }, { 0,1,0 } }, /* y dia */
- { { 0x009F, "space" }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0, "space" }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1, "space" }, { 0,1,0 } }, /* UD ! */
- { { 0x00B1, "space" }, { 0,1,0 } }, /* +- sign */
- { { 0x00F8, "space" }, { 0,1,0 } }, /* o stroke */
- { { 0x00B3, "lower" }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B8, "lower" }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00BE, "lower" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00C0, "lower" }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6, "lower" }, { 0,1,0 } }, /* O dia */
- { { 0x00D8, "lower" }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF, "lower" }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0, "lower" }, { 0,0,0 } }, /* a grave */
- { { 0x00F6, "lower" }, { 0,0,0 } }, /* o dia */
- { { 0x00F7, "lower" }, { 0,1,0 } }, /* division */
- { { 0x00F8, "lower" }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF, "lower" }, { 0,0,0 } }, /* y dia */
- { { 0x00B4, "upper" }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8, "upper" }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9, "upper" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BE, "upper" }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF, "upper" }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0, "upper" }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6, "upper" }, { 0,0,0 } }, /* O dia */
- { { 0x00D7, "upper" }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8, "upper" }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF, "upper" }, { 0,1,0 } }, /* small Sh */
- { { 0x00FF, "upper" }, { 0,1,0 } }, /* y dia */
- { { 0x00B9, "xdigit" }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BC, "xdigit" }, { 0,1,0 } }, /* 1/4 */
- { .is_last = 1 }
- }
- },
- {
- { Tiswctype, TST_LOC_enUS },
- {
- { { WEOF, "alnum" }, { 0,1,0 } },
- { { 0x0000, "alnum" }, { 0,1,0 } },
- { { 0x001F, "alnum" }, { 0,1,0 } },
- { { 0x0020, "alnum" }, { 0,1,0 } },
- { { 0x0021, "alnum" }, { 0,1,0 } },
- { { 0x002F, "alnum" }, { 0,1,0 } },
- { { 0x0030, "alnum" }, { 0,0,0 } },
- { { 0x0039, "alnum" }, { 0,0,0 } },
- { { 0x003A, "alnum" }, { 0,1,0 } },
- { { 0x0040, "alnum" }, { 0,1,0 } },
- { { 0x0041, "alnum" }, { 0,0,0 } },
- { { 0x005A, "alnum" }, { 0,0,0 } },
- { { 0x005B, "alnum" }, { 0,1,0 } },
- { { 0x0060, "alnum" }, { 0,1,0 } },
- { { 0x0061, "alnum" }, { 0,0,0 } },
- { { 0x007A, "alnum" }, { 0,0,0 } },
- { { 0x007B, "alnum" }, { 0,1,0 } },
- { { 0x007E, "alnum" }, { 0,1,0 } },
- { { 0x007F, "alnum" }, { 0,1,0 } },
- { { 0x0080, "alnum" }, { 0,1,0 } },
- { { 0x0000, "alpha" }, { 0,1,0 } },
- { { 0x001F, "alpha" }, { 0,1,0 } },
- { { 0x0020, "alpha" }, { 0,1,0 } },
- { { 0x0021, "alpha" }, { 0,1,0 } },
- { { 0x002F, "alpha" }, { 0,1,0 } },
- { { 0x0030, "alpha" }, { 0,1,0 } },
- { { 0x0039, "alpha" }, { 0,1,0 } },
- { { 0x003A, "alpha" }, { 0,1,0 } },
- { { 0x0040, "alpha" }, { 0,1,0 } },
- { { 0x0041, "alpha" }, { 0,0,0 } },
- { { 0x005A, "alpha" }, { 0,0,0 } },
- { { 0x005B, "alpha" }, { 0,1,0 } },
- { { 0x0060, "alpha" }, { 0,1,0 } },
- { { 0x0061, "alpha" }, { 0,0,0 } },
- { { 0x007A, "alpha" }, { 0,0,0 } },
- { { 0x007B, "alpha" }, { 0,1,0 } },
- { { 0x007E, "alpha" }, { 0,1,0 } },
- { { 0x007F, "alpha" }, { 0,1,0 } },
- { { 0x0080, "alpha" }, { 0,1,0 } },
- { { 0x0009, "blank" }, { 0,0,0 } },
- { { 0x000B, "blank" }, { 0,1,0 } },
- { { 0x0020, "blank" }, { 0,0,0 } },
- { { 0x0000, "cntrl" }, { 0,0,0 } },
- { { 0x001F, "cntrl" }, { 0,0,0 } },
- { { 0x0020, "cntrl" }, { 0,1,0 } },
- { { 0x0021, "cntrl" }, { 0,1,0 } },
- { { 0x002F, "cntrl" }, { 0,1,0 } },
- { { 0x0030, "cntrl" }, { 0,1,0 } },
- { { 0x0039, "cntrl" }, { 0,1,0 } },
- { { 0x003A, "cntrl" }, { 0,1,0 } },
- { { 0x0040, "cntrl" }, { 0,1,0 } },
- { { 0x0041, "cntrl" }, { 0,1,0 } },
- { { 0x005A, "cntrl" }, { 0,1,0 } },
- { { 0x005B, "cntrl" }, { 0,1,0 } },
- { { 0x0060, "cntrl" }, { 0,1,0 } },
- { { 0x0061, "cntrl" }, { 0,1,0 } },
- { { 0x007A, "cntrl" }, { 0,1,0 } },
- { { 0x007B, "cntrl" }, { 0,1,0 } },
- { { 0x007E, "cntrl" }, { 0,1,0 } },
- { { 0x007F, "cntrl" }, { 0,0,0 } },
- { { 0x0080, "cntrl" }, { 0,1,0 } },
- { { 0x0000, "digit" }, { 0,1,0 } },
- { { 0x001F, "digit" }, { 0,1,0 } },
- { { 0x0020, "digit" }, { 0,1,0 } },
- { { 0x0021, "digit" }, { 0,1,0 } },
- { { 0x002F, "digit" }, { 0,1,0 } },
- { { 0x0030, "digit" }, { 0,0,0 } },
- { { 0x0039, "digit" }, { 0,0,0 } },
- { { 0x003A, "digit" }, { 0,1,0 } },
- { { 0x0040, "digit" }, { 0,1,0 } },
- { { 0x0041, "digit" }, { 0,1,0 } },
- { { 0x005A, "digit" }, { 0,1,0 } },
- { { 0x005B, "digit" }, { 0,1,0 } },
- { { 0x0060, "digit" }, { 0,1,0 } },
- { { 0x0061, "digit" }, { 0,1,0 } },
- { { 0x007A, "digit" }, { 0,1,0 } },
- { { 0x007B, "digit" }, { 0,1,0 } },
- { { 0x007E, "digit" }, { 0,1,0 } },
- { { 0x007F, "digit" }, { 0,1,0 } },
- { { 0x0080, "digit" }, { 0,1,0 } },
- { { 0x0000, "graph" }, { 0,1,0 } },
- { { 0x001F, "graph" }, { 0,1,0 } },
- { { 0x0020, "graph" }, { 0,1,0 } },
- { { 0x0021, "graph" }, { 0,0,0 } },
- { { 0x002F, "graph" }, { 0,0,0 } },
- { { 0x0030, "graph" }, { 0,0,0 } },
- { { 0x0039, "graph" }, { 0,0,0 } },
- { { 0x003A, "graph" }, { 0,0,0 } },
- { { 0x0040, "graph" }, { 0,0,0 } },
- { { 0x0041, "graph" }, { 0,0,0 } },
- { { 0x005A, "graph" }, { 0,0,0 } },
- { { 0x005B, "graph" }, { 0,0,0 } },
- { { 0x0060, "graph" }, { 0,0,0 } },
- { { 0x0061, "graph" }, { 0,0,0 } },
- { { 0x007A, "graph" }, { 0,0,0 } },
- { { 0x007B, "graph" }, { 0,0,0 } },
- { { 0x007E, "graph" }, { 0,0,0 } },
- { { 0x007F, "graph" }, { 0,1,0 } },
- { { 0x0080, "graph" }, { 0,1,0 } },
- { { 0x0000, "print" }, { 0,1,0 } },
- { { 0x001F, "print" }, { 0,1,0 } },
- { { 0x0020, "print" }, { 0,0,0 } },
- { { 0x0021, "print" }, { 0,0,0 } },
- { { 0x002F, "print" }, { 0,0,0 } },
- { { 0x0030, "print" }, { 0,0,0 } },
- { { 0x0039, "print" }, { 0,0,0 } },
- { { 0x003A, "print" }, { 0,0,0 } },
- { { 0x0040, "print" }, { 0,0,0 } },
- { { 0x0041, "print" }, { 0,0,0 } },
- { { 0x005A, "print" }, { 0,0,0 } },
- { { 0x005B, "print" }, { 0,0,0 } },
- { { 0x0060, "print" }, { 0,0,0 } },
- { { 0x0061, "print" }, { 0,0,0 } },
- { { 0x007A, "print" }, { 0,0,0 } },
- { { 0x007B, "print" }, { 0,0,0 } },
- { { 0x007E, "print" }, { 0,0,0 } },
- { { 0x007F, "print" }, { 0,1,0 } },
- { { 0x0080, "print" }, { 0,1,0 } },
- { { 0x0000, "punct" }, { 0,1,0 } },
- { { 0x001F, "punct" }, { 0,1,0 } },
- { { 0x0020, "punct" }, { 0,1,0 } },
- { { 0x0021, "punct" }, { 0,0,0 } },
- { { 0x002F, "punct" }, { 0,0,0 } },
- { { 0x0030, "punct" }, { 0,1,0 } },
- { { 0x0039, "punct" }, { 0,1,0 } },
- { { 0x003A, "punct" }, { 0,0,0 } },
- { { 0x0040, "punct" }, { 0,0,0 } },
- { { 0x0041, "punct" }, { 0,1,0 } },
- { { 0x005A, "punct" }, { 0,1,0 } },
- { { 0x005B, "punct" }, { 0,0,0 } },
- { { 0x0060, "punct" }, { 0,0,0 } },
- { { 0x0061, "punct" }, { 0,1,0 } },
- { { 0x007A, "punct" }, { 0,1,0 } },
- { { 0x007B, "punct" }, { 0,0,0 } },
- { { 0x007E, "punct" }, { 0,0,0 } },
- { { 0x007F, "punct" }, { 0,1,0 } },
- { { 0x0080, "punct" }, { 0,1,0 } },
- { { 0x0000, "space" }, { 0,1,0 } },
- { { 0x001F, "space" }, { 0,1,0 } },
- { { 0x0020, "space" }, { 0,0,0 } },
- { { 0x0021, "space" }, { 0,1,0 } },
- { { 0x002F, "space" }, { 0,1,0 } },
- { { 0x007E, "space" }, { 0,1,0 } },
- { { 0x007F, "space" }, { 0,1,0 } },
- { { 0x0080, "space" }, { 0,1,0 } },
- { { 0x0000, "lower" }, { 0,1,0 } },
- { { 0x001F, "lower" }, { 0,1,0 } },
- { { 0x0020, "lower" }, { 0,1,0 } },
- { { 0x0021, "lower" }, { 0,1,0 } },
- { { 0x002F, "lower" }, { 0,1,0 } },
- { { 0x0030, "lower" }, { 0,1,0 } },
- { { 0x0039, "lower" }, { 0,1,0 } },
- { { 0x003A, "lower" }, { 0,1,0 } },
- { { 0x0040, "lower" }, { 0,1,0 } },
- { { 0x0041, "lower" }, { 0,1,0 } },
- { { 0x005A, "lower" }, { 0,1,0 } },
- { { 0x005B, "lower" }, { 0,1,0 } },
- { { 0x0060, "lower" }, { 0,1,0 } },
- { { 0x0061, "lower" }, { 0,0,0 } },
- { { 0x007A, "lower" }, { 0,0,0 } },
- { { 0x007B, "lower" }, { 0,1,0 } },
- { { 0x007E, "lower" }, { 0,1,0 } },
- { { 0x007F, "lower" }, { 0,1,0 } },
- { { 0x0080, "lower" }, { 0,1,0 } },
- { { 0x0000, "upper" }, { 0,1,0 } },
- { { 0x001F, "upper" }, { 0,1,0 } },
- { { 0x0020, "upper" }, { 0,1,0 } },
- { { 0x0021, "upper" }, { 0,1,0 } },
- { { 0x002F, "upper" }, { 0,1,0 } },
- { { 0x0030, "upper" }, { 0,1,0 } },
- { { 0x0039, "upper" }, { 0,1,0 } },
- { { 0x003A, "upper" }, { 0,1,0 } },
- { { 0x0040, "upper" }, { 0,1,0 } },
- { { 0x0041, "upper" }, { 0,0,0 } },
- { { 0x005A, "upper" }, { 0,0,0 } },
- { { 0x005B, "upper" }, { 0,1,0 } },
- { { 0x0060, "upper" }, { 0,1,0 } },
- { { 0x0061, "upper" }, { 0,1,0 } },
- { { 0x007A, "upper" }, { 0,1,0 } },
- { { 0x007B, "upper" }, { 0,1,0 } },
- { { 0x007E, "upper" }, { 0,1,0 } },
- { { 0x007F, "upper" }, { 0,1,0 } },
- { { 0x0080, "upper" }, { 0,1,0 } },
- { { 0x0000, "xdigit" }, { 0,1,0 } },
- { { 0x001F, "xdigit" }, { 0,1,0 } },
- { { 0x0020, "xdigit" }, { 0,1,0 } },
- { { 0x0021, "xdigit" }, { 0,1,0 } },
- { { 0x002F, "xdigit" }, { 0,1,0 } },
- { { 0x0030, "xdigit" }, { 0,0,0 } },
- { { 0x0039, "xdigit" }, { 0,0,0 } },
- { { 0x003A, "xdigit" }, { 0,1,0 } },
- { { 0x0040, "xdigit" }, { 0,1,0 } },
- { { 0x0041, "xdigit" }, { 0,0,0 } },
- { { 0x005A, "xdigit" }, { 0,1,0 } },
- { { 0x005B, "xdigit" }, { 0,1,0 } },
- { { 0x0060, "xdigit" }, { 0,1,0 } },
- { { 0x0061, "xdigit" }, { 0,0,0 } },
- { { 0x007A, "xdigit" }, { 0,1,0 } },
- { { 0x007B, "xdigit" }, { 0,1,0 } },
- { { 0x007E, "xdigit" }, { 0,1,0 } },
- { { 0x007F, "xdigit" }, { 0,1,0 } },
- { { 0x0080, "xdigit" }, { 0,1,0 } },
- { { 0x0061, "xxxxxx" }, { 0,1,0 } },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Tiswctype, TST_LOC_eucJP },
-#else
- { Tiswctype, TST_LOC_ja_UTF8 },
-#endif
- {
-#ifdef SHOJI_IS_RIGHT
- { { 0x3029, "alnum" }, { 0,1,0 } }, /* Hangzhou NUM9 */
-#else
- { { 0x3029, "alnum" }, { 0,0,0 } }, /* Hangzhou NUM9 */
-#endif
- { { 0xFE4F, "alnum" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF19, "alnum" }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20, "alnum" }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A, "alnum" }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40, "alnum" }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "alnum" }, { 0,0,0 } }, /* FULL z */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFF71, "alnum" }, { 0,1,0 } }, /* HALF KATA A */
-#else
- { { 0xFF71, "alnum" }, { 0,0,0 } }, /* HALF KATA A */
-#endif
-#ifdef SHOJI_IS_RIGHT
- { { 0x3029, "alpha" }, { 0,1,0 } }, /* Hangzhou NUM9 */
-#else
- { { 0x3029, "alpha" }, { 0,0,0 } }, /* Hangzhou NUM9 */
-#endif
- { { 0xFE4F, "alpha" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFF19, "alpha" }, { 0,1,0 } }, /* FULL 9 */
-#else
- { { 0xFF19, "alpha" }, { 0,0,0 } }, /* FULL 9 */
-#endif
- { { 0xFF20, "alpha" }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A, "alpha" }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40, "alpha" }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "alpha" }, { 0,0,0 } }, /* FULL z */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFF71, "alpha" }, { 0,1,0 } }, /* HALF KATA A */
-#else
- { { 0xFF71, "alpha" }, { 0,0,0 } }, /* HALF KATA A */
-#endif
- { { 0x0080, "cntrl" }, { 0,0,0 } }, /* CNTRL */
- { { 0x3000, "cntrl" }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3029, "digit" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x32CB, "digit" }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- /* 21: */
- { { 0x33FE, "digit" }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- { { 0xFF19, "digit" }, { 0,1,0 } }, /* FULL 9 */
- { { 0x3000, "graph" }, { 0,1,0 } }, /* IDEO. SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3020, "graph" }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "graph" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "graph" }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "graph" }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F, "graph" }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#else
- { { 0x3020, "graph" }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "graph" }, { 0,0,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "graph" }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "graph" }, { 0,0,0 } }, /* Separator Symbol */
- { { 0x303F, "graph" }, { 0,0,0 } }, /* IDEO. HALF SPACE */
-#endif
- /* 29: */
- { { 0x3041, "graph" }, { 0,0,0 } }, /* HIRAGANA a */
- /* Non jis: */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3094, "graph" }, { 0,1,0 } }, /* HIRAGANA u" */
-#else
- { { 0x3094, "graph" }, { 0,0,0 } }, /* HIRAGANA u" */
-#endif
- /* Non jis: */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3099, "graph" }, { 0,1,0 } }, /* SOUND MARK */
-#else
- { { 0x3099, "graph" }, { 0,0,0 } }, /* SOUND MARK */
-#endif
- { { 0x309E, "graph" }, { 0,0,0 } }, /* ITERATION MARK */
- /* 33: */
- { { 0x30A1, "graph" }, { 0,0,0 } }, /* KATAKANA a */
- /* Non jis: */
-#ifdef SHOJI_IS_RIGHT
- { { 0x30FA, "graph" }, { 0,1,0 } }, /* KATAKANA wo" */
-#else
- { { 0x30FA, "graph" }, { 0,0,0 } }, /* KATAKANA wo" */
-#endif
- { { 0x30FB, "graph" }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE, "graph" }, { 0,0,0 } }, /* KATAKANA ITERATION */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3191, "graph" }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "graph" }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "graph" }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "graph" }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "graph" }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#else
- { { 0x3191, "graph" }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "graph" }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "graph" }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "graph" }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "graph" }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
-#endif
- { { 0x4E00, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x4E06, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x4E06, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x4E07, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x9007, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x9007, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- /* 51 */
- { { 0x9FA5, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- /* Non jis: */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFE4F, "graph" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
-#else
- { { 0xFE4F, "graph" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#endif
- { { 0xFF0F, "graph" }, { 0,0,0 } }, /* FULL SLASH */
- { { 0xFF19, "graph" }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20, "graph" }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A, "graph" }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40, "graph" }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "graph" }, { 0,0,0 } }, /* FULL z */
- { { 0xFF5E, "graph" }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61, "graph" }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65, "graph" }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66, "graph" }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F, "graph" }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0xFF70, "graph" }, { 0,0,0 } }, /* HALF KATA PL - */
- { { 0xFF71, "graph" }, { 0,0,0 } }, /* HALF KATA A */
- { { 0xFF9E, "graph" }, { 0,0,0 } }, /* HALF KATA MI */
- { { 0x3000, "print" }, { 0,0,0 } }, /* IDEO. SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3020, "print" }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "print" }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "print" }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "print" }, { 0,1,0 } }, /* Separator Symbol */
-#else
- { { 0x3020, "print" }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x3029, "print" }, { 0,0,0 } }, /* Hangzhou NUM9 */
- { { 0x302F, "print" }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "print" }, { 0,0,0 } }, /* Separator Symbol */
-#endif
- { { 0x4E00, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x4E06, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x4E06, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x4E07, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x9007, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x9007, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- /* 81: */
- { { 0x9FA5, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- /* Non jis: */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFE4F, "print" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
-#else
- { { 0xFE4F, "print" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#endif
- { { 0x3000, "punct" }, { 0,1,0 } }, /* IDEO. SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3020, "punct" }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x302F, "punct" }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "punct" }, { 0,1,0 } }, /* FEED Separator */
- { { 0x303F, "punct" }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#else
- { { 0x3020, "punct" }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x302F, "punct" }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037, "punct" }, { 0,0,0 } }, /* FEED Separator */
- { { 0x303F, "punct" }, { 0,0,0 } }, /* IDEO. HALF SPACE */
-#endif
- { { 0x3041, "punct" }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094, "punct" }, { 0,1,0 } }, /* HIRAGANA u" */
- /* 90: */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3099, "punct" }, { 0,1,0 } }, /* SOUND MARK */
-#else
- { { 0x3099, "punct" }, { 0,0,0 } }, /* SOUND MARK */
-#endif
- { { 0x309E, "punct" }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1, "punct" }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA, "punct" }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB, "punct" }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- /* 95: */
- { { 0x30FE, "punct" }, { 0,1,0 } }, /* KATAKANA ITERATION */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3191, "punct" }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "punct" }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "punct" }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "punct" }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "punct" }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#else
- { { 0x3191, "punct" }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243, "punct" }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB, "punct" }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE, "punct" }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE, "punct" }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
-#endif
- { { 0x9007, "punct" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4, "punct" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5, "punct" }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F, "punct" }, { 0,0,0 } }, /* FULL SLASH */
- /* 105: */
- { { 0xFF19, "punct" }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20, "punct" }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A, "punct" }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40, "punct" }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A, "punct" }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E, "punct" }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61, "punct" }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65, "punct" }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF70, "punct" }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF9E, "punct" }, { 0,1,0 } }, /* HALF KATA MI */
- /* 115: */
- { { 0x3000, "space" }, { 0,0,0 } }, /* IDEO. SPACE */
- { { 0x303F, "space" }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- { { 0x3041, "lower" }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094, "lower" }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x30A1, "lower" }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA, "lower" }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0xFF66, "lower" }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F, "lower" }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70, "lower" }, { 0,1,0 } }, /* HALF KATA PL - */
- /* 124: */
- { { 0xFF71, "lower" }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E, "lower" }, { 0,1,0 } }, /* HALF KATA MI */
- { { 0xFF71, "upper" }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF19, "xdigit" }, { 0,1,0 } }, /* FULL 9 */
- { { 0x3000, "jspace" }, { 0,0,0 } }, /* IDEO. SPACE */
- /* Non jis? */
- { { 0x303F, "jspace" }, { 0,1,0 } }, /* IDEO.HALF SPACE */
- { { 0xFF19, "jdigit" }, { 0,0,0 } }, /* FULL 9 */
- { { 0x3041, "jhira" }, { 0,0,0 } }, /* HIRAGANA a */
- { { 0x3094, "jhira" }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x30A1, "jkata" }, { 0,0,0 } }, /* KATAKANA a */
- /* Non jis: */
- { { 0x30FA, "jkata" }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0xFF66, "jkata" }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F, "jkata" }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0x4E05, "jkanji" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- /* <NO_WAIVER>: */
- { { 0x4E06, "jkanji" }, { 0,1,1 } }, /* CJK UNI.IDEO.NON-J */
-#else
- /* XXX This character does not exist in EUC-JP. */
- { { 0x4E06, "jkanji" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x4E07, "jkanji" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { .is_last = 1 }
- }
- },
- {
- { Tiswctype, TST_LOC_end }
- }
-};
-
-
-/* dat_isw-funcs.c */
diff --git a/test/locale-mbwc/dat_iswdigit.c b/test/locale-mbwc/dat_iswdigit.c
deleted file mode 100644
index 70ca544..0000000
--- a/test/locale-mbwc/dat_iswdigit.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswdigit.c
- *
- * ISW*: int iswdigit (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (DIGIT, digit) = {
-
- { TST_ISW_REC (de, digit)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,1,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF }, { 0,1,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,1,0 } }, /* a grave */
- { { 0x00F6 }, { 0,1,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,1,0 } }, /* o stroke */
- { { 0x00FF }, { 0,1,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, digit)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,0,0 } },
- { { 0x0039 }, { 0,0,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,1,0 } },
- { { 0x005A }, { 0,1,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,1,0 } },
- { { 0x007A }, { 0,1,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, digit)
-#else
- { TST_ISW_REC (ja_UTF8, digit)
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, digit) }
-};
diff --git a/test/locale-mbwc/dat_iswgraph.c b/test/locale-mbwc/dat_iswgraph.c
deleted file mode 100644
index 80cacb2..0000000
--- a/test/locale-mbwc/dat_iswgraph.c
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswgraph.c
- *
- * ISW*: int iswgraph (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (GRAPH, graph) = {
-
- { TST_ISW_REC (de, graph)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
-#ifdef SHOJI_IS_RIGHT
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
-#else
- { { 0x00A0 }, { 0,0,0 } }, /* NB SPACE */
-#endif
- { { 0x00A1 }, { 0,0,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,0,0 } }, /* Degree */
- { { 0x00B1 }, { 0,0,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,0,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,0,0 } }, /* >> */
- { { 0x00BC }, { 0,0,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,0,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,0,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,0,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,0,0 } }, /* O dia */
- { { 0x00D7 }, { 0,0,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,0,0 } }, /* a grave */
- { { 0x00F6 }, { 0,0,0 } }, /* o dia */
- { { 0x00F7 }, { 0,0,0 } }, /* division */
- { { 0x00F8 }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF }, { 0,0,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, graph)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,0,0 } },
- { { 0x002F }, { 0,0,0 } },
- { { 0x0030 }, { 0,0,0 } },
- { { 0x0039 }, { 0,0,0 } },
- { { 0x003A }, { 0,0,0 } },
- { { 0x0040 }, { 0,0,0 } },
- { { 0x0041 }, { 0,0,0 } },
- { { 0x005A }, { 0,0,0 } },
- { { 0x005B }, { 0,0,0 } },
- { { 0x0060 }, { 0,0,0 } },
- { { 0x0061 }, { 0,0,0 } },
- { { 0x007A }, { 0,0,0 } },
- { { 0x007B }, { 0,0,0 } },
- { { 0x007E }, { 0,0,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } }, /* 20 */
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC( eucJP, graph )
-#else
- { TST_ISW_REC( ja_UTF8, graph )
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#else
- { { 0x3020 }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,0,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,0,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,0,0 } }, /* IDEO. HALF SPACE */
-#endif
- { { 0x3041 }, { 0,0,0 } }, /* HIRAGANA a */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */ /* non jis */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
-#else
- { { 0x3094 }, { 0,0,0 } }, /* HIRAGANA u" */ /* non jis */
- { { 0x3099 }, { 0,0,0 } }, /* SOUND MARK */
-#endif
- { { 0x309E }, { 0,0,0 } }, /* ITERATION MARK */ /* 10 */
- { { 0x30A1 }, { 0,0,0 } }, /* KATAKANA a */
-#ifdef SHOJI_IS_RIGHT
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */ /* non jis */
-#else
- { { 0x30FA }, { 0,0,0 } }, /* KATAKANA wo" */ /* non jis */
-#endif
- { { 0x30FB }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,0,0 } }, /* KATAKANA ITERATION */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#else
- { { 0x3191 }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
-#endif
- { { 0x4E00 }, { 0,0,0 } }, /* CJK UNI.IDEO. */ /* 20 */
- { { 0x4E05 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x4E06 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x4E07 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x9007 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x9FA5 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFE4F }, { 0,1,0 } }, /* CJK Wave Low Line */ /* 30 */
-#else
- { { 0xFE4F }, { 0,0,0 } }, /* CJK Wave Low Line */ /* 30 */
-#endif
- { { 0xFF0F }, { 0,0,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,0,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,0,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,0,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, graph) }
-};
diff --git a/test/locale-mbwc/dat_iswlower.c b/test/locale-mbwc/dat_iswlower.c
deleted file mode 100644
index 58ec08e..0000000
--- a/test/locale-mbwc/dat_iswlower.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswlower.c
- *
- * ISW*: int iswlower (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (LOWER, lower) = {
-
- { TST_ISW_REC (de, lower)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,1,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,0,0 } }, /* a grave */
- { { 0x00F6 }, { 0,0,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF }, { 0,0,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, lower)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,1,0 } },
- { { 0x0039 }, { 0,1,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,1,0 } },
- { { 0x005A }, { 0,1,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,0,0 } },
- { { 0x007A }, { 0,0,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, lower)
-#else
- { TST_ISW_REC (ja_UTF8, lower)
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,0,0 } }, /* FULL z */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, lower) }
-
-};
diff --git a/test/locale-mbwc/dat_iswprint.c b/test/locale-mbwc/dat_iswprint.c
deleted file mode 100644
index bcd96d0..0000000
--- a/test/locale-mbwc/dat_iswprint.c
+++ /dev/null
@@ -1,170 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswprint.c
- *
- * ISW*: int iswprint (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (PRINT, print) = {
-
- { TST_ISW_REC (de, print)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
-#ifdef SHOJI_IS_RIGHT
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
-#else
- { { 0x00A0 }, { 0,0,0 } }, /* NB SPACE */
-#endif
- { { 0x00A1 }, { 0,0,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,0,0 } }, /* Degree */
- { { 0x00B1 }, { 0,0,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,0,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,0,0 } }, /* >> */
- { { 0x00BC }, { 0,0,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,0,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,0,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,0,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,0,0 } }, /* O dia */
- { { 0x00D7 }, { 0,0,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF }, { 0,0,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,0,0 } }, /* a grave */
- { { 0x00F6 }, { 0,0,0 } }, /* o dia */
- { { 0x00F7 }, { 0,0,0 } }, /* division */
- { { 0x00F8 }, { 0,0,0 } }, /* o stroke */
- { { 0x00FF }, { 0,0,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, print)
- {
- { { WEOF }, { 0,1,0 } }, /* 01 */
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,0,0 } },
- { { 0x0021 }, { 0,0,0 } },
- { { 0x002F }, { 0,0,0 } },
- { { 0x0030 }, { 0,0,0 } },
- { { 0x0039 }, { 0,0,0 } },
- { { 0x003A }, { 0,0,0 } },
- { { 0x0040 }, { 0,0,0 } },
- { { 0x0041 }, { 0,0,0 } },
- { { 0x005A }, { 0,0,0 } },
- { { 0x005B }, { 0,0,0 } },
- { { 0x0060 }, { 0,0,0 } },
- { { 0x0061 }, { 0,0,0 } },
- { { 0x007A }, { 0,0,0 } },
- { { 0x007B }, { 0,0,0 } },
- { { 0x007E }, { 0,0,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } }, /* 20 */
-#ifdef NO_WAIVER
- { { 0x3042 }, { 0,1,0 } }, /* <WAIVER> */
-#endif
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, print)
-#else
- { TST_ISW_REC (ja_UTF8, print)
-#endif
- {
- { { 0x3000 }, { 0,0,0 } }, /* IDEO. SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#else
- { { 0x3020 }, { 0,0,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,0,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,0,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,0,0 } }, /* IDEO. HALF SPACE */
-#endif
- { { 0x3041 }, { 0,0,0 } }, /* HIRAGANA a */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */ /* non jis */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
-#else
- { { 0x3094 }, { 0,0,0 } }, /* HIRAGANA u" */ /* non jis */
- { { 0x3099 }, { 0,0,0 } }, /* SOUND MARK */
-#endif
- { { 0x309E }, { 0,0,0 } }, /* ITERATION MARK */ /* 10 */
- { { 0x30A1 }, { 0,0,0 } }, /* KATAKANA a */
-#ifdef SHOJI_IS_RIGHT
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */ /* non jis */
-#else
- { { 0x30FA }, { 0,0,0 } }, /* KATAKANA wo" */ /* non jis */
-#endif
- { { 0x30FB }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,0,0 } }, /* KATAKANA ITERATION */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#else
- { { 0x3191 }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
-#endif
- { { 0x4E00 }, { 0,0,0 } }, /* CJK UNI.IDEO. */ /* 20 */
- { { 0x4E05 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x4E06 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x4E07 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
-#else
- { { 0x9007 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,0,0 } }, /* CJK UNI.IDEO.NON-J */
-#endif
- { { 0x9FA5 }, { 0,0,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFE4F }, { 0,1,0 } }, /* WAVE LOW LINE */ /* 30 */
-#else
- { { 0xFE4F }, { 0,0,0 } }, /* WAVE LOW LINE */ /* 30 */
-#endif
- { { 0xFF0F }, { 0,0,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,0,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,0,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,0,0 } }, /* HALF KATA WO */ /* 40 */
- { { 0xFF6F }, { 0,0,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,0,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, print) }
-};
diff --git a/test/locale-mbwc/dat_iswpunct.c b/test/locale-mbwc/dat_iswpunct.c
deleted file mode 100644
index 2b3612f..0000000
--- a/test/locale-mbwc/dat_iswpunct.c
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswpunct.c
- *
- * ISW*: int iswpunct (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (PUNCT, punct) = {
-
- { TST_ISW_REC (de, punct)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
-#ifdef SHOJI_IS_RIGHT
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
-#else
- { { 0x00A0 }, { 0,0,0 } }, /* NB SPACE */
-#endif
- { { 0x00A1 }, { 0,0,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,0,0 } }, /* Degree */
- { { 0x00B1 }, { 0,0,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,0,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,0,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,0,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,0,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,0,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,0,0 } }, /* >> */
- { { 0x00BC }, { 0,0,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,0,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,0,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,0,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,1,0 } }, /* O dia */
- { { 0x00D7 }, { 0,0,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF }, { 0,1,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,1,0 } }, /* a grave */
- { { 0x00F6 }, { 0,1,0 } }, /* o dia */
- { { 0x00F7 }, { 0,0,0 } }, /* division */
- { { 0x00F8 }, { 0,1,0 } }, /* o stroke */
- { { 0x00FF }, { 0,1,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, punct)
- {
- { { WEOF }, { 0,1,0 } }, /* 01 */
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,0,0 } },
- { { 0x002F }, { 0,0,0 } },
- { { 0x0030 }, { 0,1,0 } },
- { { 0x0039 }, { 0,1,0 } },
- { { 0x003A }, { 0,0,0 } },
- { { 0x0040 }, { 0,0,0 } },
- { { 0x0041 }, { 0,1,0 } },
- { { 0x005A }, { 0,1,0 } },
- { { 0x005B }, { 0,0,0 } },
- { { 0x0060 }, { 0,0,0 } },
- { { 0x0061 }, { 0,1,0 } },
- { { 0x007A }, { 0,1,0 } },
- { { 0x007B }, { 0,0,0 } },
- { { 0x007E }, { 0,0,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } }, /* 20 */
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, punct)
-#else
- { TST_ISW_REC (ja_UTF8, punct)
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
-#else
- { { 0x3020 }, { 0,0,0 } }, /* POSTAL MARK FACE */
-#endif
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
-#ifdef SHOJI_IS_RIGHT
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
-#else
- { { 0x302F }, { 0,0,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,0,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,0,0 } }, /* IDEO. HALF SPACE */
-#endif
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
-#else
- { { 0x3099 }, { 0,0,0 } }, /* SOUND MARK */
-#endif
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */ /* 10 */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB }, { 0,0,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
-#ifdef SHOJI_IS_RIGHT
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
-#else
- { { 0x3191 }, { 0,0,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,0,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,0,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,0,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,0,0 } }, /* CJK IDEO.TEL.31th */
-#endif
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */ /* 20 */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
-#ifdef SHOJI_IS_RIGHT
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */ /* 30 */
-#else
- { { 0xFE4F }, { 0,0,0 } }, /* CJK UNI.IDEO. */ /* 30 */
-#endif
- { { 0xFF0F }, { 0,0,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,0,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,0,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,0,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,0,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,0,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */ /* 40 */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, punct) }
-};
diff --git a/test/locale-mbwc/dat_iswspace.c b/test/locale-mbwc/dat_iswspace.c
deleted file mode 100644
index 2131b87..0000000
--- a/test/locale-mbwc/dat_iswspace.c
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswspace.c
- *
- * ISW*: int iswspace (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (SPACE, space) = {
-
- { TST_ISW_REC (de, space)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,1,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF }, { 0,1,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,1,0 } }, /* a grave */
- { { 0x00F6 }, { 0,1,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,1,0 } }, /* o stroke */
- { { 0x00FF }, { 0,1,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (enUS, space)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x0008 }, { 0,1,0 } },
- { { 0x0009 }, { 0,0,0 } },
- { { 0x000D }, { 0,0,0 } },
- { { 0x000E }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,0,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,1,0 } },
- { { 0x0039 }, { 0,1,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,1,0 } },
- { { 0x005A }, { 0,1,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,1,0 } },
- { { 0x007A }, { 0,1,0 } }, /* 20 */
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, space)
-#else
- { TST_ISW_REC (ja_UTF8, space)
-#endif
- {
- { { 0x3000 }, { 0,0,0 } }, /* IDEO. SPACE */
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */ /* No JIS */
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, space) }
-};
diff --git a/test/locale-mbwc/dat_iswupper.c b/test/locale-mbwc/dat_iswupper.c
deleted file mode 100644
index 865f42f..0000000
--- a/test/locale-mbwc/dat_iswupper.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswupper.c
- *
- * ISW*: int iswupper (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (UPPER, upper) = {
-
- { TST_ISW_REC (de, upper)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,0,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,0,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,0,0 } }, /* O stroke */
- { { 0x00DF }, { 0,1,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,1,0 } }, /* a grave */
- { { 0x00F6 }, { 0,1,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,1,0 } }, /* o stroke */
- { { 0x00FF }, { 0,1,0 } }, /* y dia */
- { .is_last = 1 } /* Last entry. */
- }
- },
- { TST_ISW_REC (enUS, upper)
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,1,0 } },
- { { 0x0039 }, { 0,1,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,0,0 } },
- { { 0x005A }, { 0,0,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,1,0 } },
- { { 0x007A }, { 0,1,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* Last entry. */
- }
- },
-#if 0
- { TST_ISW_REC (eucJP, upper)
-#else
- { TST_ISW_REC (ja_UTF8, upper)
-#endif
- {
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,0,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,1,0 } }, /* FULL z */
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last entry. */
- }
- },
- { TST_ISW_REC (end, upper) }
-};
diff --git a/test/locale-mbwc/dat_iswxdigit.c b/test/locale-mbwc/dat_iswxdigit.c
deleted file mode 100644
index 5d6c652..0000000
--- a/test/locale-mbwc/dat_iswxdigit.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_iswxdigit.c
- *
- * ISW*: int iswxdigit (wint_t wc);
- */
-
-
-#include "dat_isw-funcs.h"
-
-
-TST_ISW_LOC (XDIGIT, xdigit) = {
-
- { TST_ISW_REC (de, xdigit)
- {
- { { 0x0080 }, { 0,1,0 } }, /* CTRL */
- { { 0x009F }, { 0,1,0 } }, /* CTRL */
- { { 0x00A0 }, { 0,1,0 } }, /* NB SPACE */
- { { 0x00A1 }, { 0,1,0 } }, /* UD ! */
- { { 0x00B0 }, { 0,1,0 } }, /* Degree */
- { { 0x00B1 }, { 0,1,0 } }, /* +- sign */
- { { 0x00B2 }, { 0,1,0 } }, /* SUP 2 */
- { { 0x00B3 }, { 0,1,0 } }, /* SUP 3 */
- { { 0x00B4 }, { 0,1,0 } }, /* ACUTE */
- { { 0x00B8 }, { 0,1,0 } }, /* CEDILLA */
- { { 0x00B9 }, { 0,1,0 } }, /* SUP 1 */
- { { 0x00BB }, { 0,1,0 } }, /* >> */
- { { 0x00BC }, { 0,1,0 } }, /* 1/4 */
- { { 0x00BD }, { 0,1,0 } }, /* 1/2 */
- { { 0x00BE }, { 0,1,0 } }, /* 3/4 */
- { { 0x00BF }, { 0,1,0 } }, /* UD ? */
- { { 0x00C0 }, { 0,1,0 } }, /* A Grave */
- { { 0x00D6 }, { 0,1,0 } }, /* O dia */
- { { 0x00D7 }, { 0,1,0 } }, /* multipl. */
- { { 0x00D8 }, { 0,1,0 } }, /* O stroke */
- { { 0x00DF }, { 0,1,0 } }, /* small Sh */
- { { 0x00E0 }, { 0,1,0 } }, /* a grave */
- { { 0x00F6 }, { 0,1,0 } }, /* o dia */
- { { 0x00F7 }, { 0,1,0 } }, /* division */
- { { 0x00F8 }, { 0,1,0 } }, /* o stroke */
- { { 0x00FF }, { 0,1,0 } }, /* y dia */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC( enUS, xdigit )
- {
- { { WEOF }, { 0,1,0 } },
- { { 0x0000 }, { 0,1,0 } },
- { { 0x001F }, { 0,1,0 } },
- { { 0x0020 }, { 0,1,0 } },
- { { 0x0021 }, { 0,1,0 } },
- { { 0x002F }, { 0,1,0 } },
- { { 0x0030 }, { 0,0,0 } },
- { { 0x0039 }, { 0,0,0 } },
- { { 0x003A }, { 0,1,0 } },
- { { 0x0040 }, { 0,1,0 } },
- { { 0x0041 }, { 0,0,0 } },
- { { 0x005A }, { 0,1,0 } },
- { { 0x005B }, { 0,1,0 } },
- { { 0x0060 }, { 0,1,0 } },
- { { 0x0061 }, { 0,0,0 } },
- { { 0x007A }, { 0,1,0 } },
- { { 0x007B }, { 0,1,0 } },
- { { 0x007E }, { 0,1,0 } },
- { { 0x007F }, { 0,1,0 } },
- { { 0x0080 }, { 0,1,0 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_ISW_REC( eucJP, xdigit )
-#else
- { TST_ISW_REC( ja_UTF8, xdigit )
-#endif
- {
- { { 0x3000 }, { 0,1,0 } }, /* IDEO. SPACE */
- { { 0x3020 }, { 0,1,0 } }, /* POSTAL MARK FACE */
- { { 0x3029 }, { 0,1,0 } }, /* Hangzhou NUM9 */
- { { 0x302F }, { 0,1,0 } }, /* Diacritics(Hangul) */
- { { 0x3037 }, { 0,1,0 } }, /* Separator Symbol */
- { { 0x303F }, { 0,1,0 } }, /* IDEO. HALF SPACE */
- { { 0x3041 }, { 0,1,0 } }, /* HIRAGANA a */
- { { 0x3094 }, { 0,1,0 } }, /* HIRAGANA u" */
- { { 0x3099 }, { 0,1,0 } }, /* SOUND MARK */
- { { 0x309E }, { 0,1,0 } }, /* ITERATION MARK */
- { { 0x30A1 }, { 0,1,0 } }, /* KATAKANA a */
- { { 0x30FA }, { 0,1,0 } }, /* KATAKANA wo" */
- { { 0x30FB }, { 0,1,0 } }, /* KATAKANA MID.DOT */
- { { 0x30FE }, { 0,1,0 } }, /* KATAKANA ITERATION */
- { { 0x3191 }, { 0,1,0 } }, /* KANBUN REV.MARK */
- { { 0x3243 }, { 0,1,0 } }, /* IDEO. MARK (reach) */
- { { 0x32CB }, { 0,1,0 } }, /* IDEO.TEL.SYM.DEC12 */
- { { 0x32FE }, { 0,1,0 } }, /* MARU KATAKANA wo */
- { { 0x33FE }, { 0,1,0 } }, /* CJK IDEO.TEL.31th */
- { { 0x4E00 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E05 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4E06 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x4E07 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x4FFF }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9000 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9006 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0x9007 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA4 }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
- { { 0x9FA5 }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFE4F }, { 0,1,0 } }, /* CJK UNI.IDEO. */
- { { 0xFF0F }, { 0,1,0 } }, /* FULL SLASH */
- { { 0xFF19 }, { 0,1,0 } }, /* FULL 9 */
- { { 0xFF20 }, { 0,1,0 } }, /* FULL @ */
- { { 0xFF3A }, { 0,1,0 } }, /* FULL Z */
- { { 0xFF40 }, { 0,1,0 } }, /* FULL GRAVE ACC. */
- { { 0xFF5A }, { 0,1,0 } }, /* FULL z */
- { { 0xFF5E }, { 0,1,0 } }, /* FULL ~ (tilde) */
- { { 0xFF61 }, { 0,1,0 } }, /* HALF IDEO.STOP. . */
- { { 0xFF65 }, { 0,1,0 } }, /* HALF KATA MID.DOT */
- { { 0xFF66 }, { 0,1,0 } }, /* HALF KATA WO */
- { { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
- { { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
- { { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
- { { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_ISW_REC (end, xdigit) }
-};
diff --git a/test/locale-mbwc/dat_mblen.c b/test/locale-mbwc/dat_mblen.c
deleted file mode 100644
index 8da038c..0000000
--- a/test/locale-mbwc/dat_mblen.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_mblen.c
- *
- * MBLEN: int mblen (char *s, size_t n);
- */
-
-
-/*
- * NOTE:
- * int mblen (char *s, size_t n);
- *
- * where n: a maximum number of bytes
- *
- * return - the number of bytes
- *
- * CAUTION:
- *
- * o When you feed a null pointer for a string (s) to the function,
- * set s_flg=0 instead of putting just a 'NULL' there.
- * Even if you set a 'NULL', it doens't mean a NULL pointer.
- *
- * o When s is a null pointer, the function checks state dependency.
- *
- * state-dependent encoding - return NON-zero
- * state-independent encoding - return 0
- *
- * If state-dependent encoding is expected, set
- *
- * s_flg = 0, ret_flg = 0, ret_val = +1
- *
- * If state-independent encoding is expected, set
- *
- * s_flg = 0, ret_flg = 0, ret_val = 0
- *
- *
- * When you set ret_flg=1, the test program simply compares an
- * actual return value with an expected value. You can check
- * state-independent case (return value is 0) in that way, but
- * you can not check state-dependent case. So when you check
- * state- dependency in this test function: tst_mblen(), set
- * ret_flg=0 always. It's a special case, and the test
- * function takes care of it.
- *
- * s_flg=0 ret_flg=0
- * | |
- * { 0, 0 }, { 0, 0, 0, x }
- * | |
- * not used ret_val: 0/+1
- * (expected val) */
-
-
-TST_MBLEN tst_mblen_loc [] = {
- {
- { Tmblen, TST_LOC_de },
- {
- /* 01: a character. */
- { { 1, "\300", USE_MBCURMAX }, { 0, 1, 1 } },
- /* 02: a character. */
- { { 1, "\309", USE_MBCURMAX }, { 0, 1, 1 } },
- /* 03: a character + an invalid byte. */
- { { 1, "Z\204", USE_MBCURMAX }, { 0, 1, +1 } },
- /* 04: control/invalid characters. */
- { { 1, "\177\000", USE_MBCURMAX }, { 0, 1, +1 } },
- /* 05: a null string. */
- { { 1, "", USE_MBCURMAX }, { 0, 1, 0 } },
- /* 06: a null pointer. */
- { { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
- /* Last element. */
- { .is_last = 1 }
- }
- },
- {
- { Tmblen, TST_LOC_enUS },
- {
- /* 01: a character. */
- { { 1, "A", USE_MBCURMAX }, { 0, 1, 1 } },
- /* 02: a character. */
- { { 1, "a", USE_MBCURMAX }, { 0, 1, 1 } },
- /* 03: a character + an invalid byte. */
- { { 1, "Z\204", USE_MBCURMAX }, { 0, 1, +1 } },
- /* 04: control/invalid characters. */
- { { 1, "\177\000", USE_MBCURMAX }, { 0, 1, +1 } },
- /* 05: a null string. */
- { { 1, "", USE_MBCURMAX }, { 0, 1, 0 } },
- /* 06: a null pointer. */
- { { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
- /* Last element. */
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Tmblen, TST_LOC_eucJP },
- {
- /* 01: a character. */
- { { 1, "\264\301", USE_MBCURMAX }, { 0, 1, 2 } },
- /* 02: a character. */
- { { 1, "\216\261", USE_MBCURMAX }, { 0, 1, 2 } },
- /* 03: a character + an invalid byte. */
- { { 1, "\260\241\200", USE_MBCURMAX }, { 0, 1, 2 } },
- /* 04: control/invalid characters. */
- { { 1, "\377\202", USE_MBCURMAX }, { EILSEQ, 1, -1 } },
- /* 05: a null string. */
- { { 1, "", USE_MBCURMAX }, { 0, 1, 0 } },
- /* 06: a null pointer. */
- { { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
- /* Last element. */
- { .is_last = 1 }
- }
- },
-#else
- {
- { Tmblen, TST_LOC_ja_UTF8 },
- {
- /* 01: a character. */
- { { 1, "\346\274\242", USE_MBCURMAX }, { 0, 1, 3 } },
- /* 02: a character. */
- { { 1, "\357\275\261", USE_MBCURMAX }, { 0, 1, 3 } },
- /* 03: a character + an invalid byte. */
- { { 1, "\345\272\234\200", USE_MBCURMAX }, { 0, 1, 3 } },
- /* 04: control/invalid characters. */
- { { 1, "\377\202", USE_MBCURMAX }, { EILSEQ, 1, -1 } },
- /* 05: a null string. */
- { { 1, "", USE_MBCURMAX }, { 0, 1, 0 } },
- /* 06: a null pointer. */
- { { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
- /* Last element. */
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Tmblen, TST_LOC_end}
- }
-};
diff --git a/test/locale-mbwc/dat_mbrlen.c b/test/locale-mbwc/dat_mbrlen.c
deleted file mode 100644
index 63ae19f..0000000
--- a/test/locale-mbwc/dat_mbrlen.c
+++ /dev/null
@@ -1,222 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_mbrlen.c
- *
- * MBRLEN: size_t mbrlen (const char *s, size_t n, mbstate_t *ps);
- */
-
-/*
- * NOTE:
- * (1) A mbstate object is initialized for
- * every new data record by the test program.
- *
- * (2) USE_MBCURMAX is defined as a value of 99.
- *
- */
-
-
-TST_MBRLEN tst_mbrlen_loc [] = {
- {
- { Tmbrlen, TST_LOC_de },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "", 0, 0, 0 },
- { 1, "", 1, 0, 0 },
- { 1, "\300", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, 0, },
- { 0, 1, 1, },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "\300\001", 0, 0, 0 },
- { 1, "\300\001", 1, 0, 0 },
- { 1, "\317\001", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, 1, },
- { 0, 1, 1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { Tmbrlen, TST_LOC_enUS },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "A", 0, 0, 0 },
- { 1, "A", 1, 0, 0 },
- { 1, "A", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, 1, },
- { 0, 1, 1, },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "\317\001", 0, 1, 0 },
- { 1, "\317\001", 1, 1, 0 },
- { 1, "\317\001", USE_MBCURMAX, 1, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { EILSEQ, 1, -1, },
- { EILSEQ, 1, -1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Tmbrlen, TST_LOC_eucJP },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "\317\302", 1, 1, 1 },
- { 0, "", 0, 1, 0 },
- { 1, "\317\302", USE_MBCURMAX, 1, 1 },
- }
- },
- {
- {
- { 0, 1, -2, },
- { 0, 1, -1, },
- { 0, 1, 2, },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "\317", 1, 1, 0 },
- { 1, "\302", 1, 1, 0 },
- { 1, "\317\302", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, -2, },
-#ifdef SHOJI_IS_RIGHT
- { 0, 1, +2, },
-#else
- /* XXX ISO C explicitly says that the return value does not
- XXX reflect the bytes contained in the state. */
- { 0, 1, +1, },
-#endif
- { 0, 1, 2, },
- }
- }
- },
- { /*----------------- #03 -----------------*/
- {
- {
- { 1, "\216\217", 0, 0, 0 },
- { 1, "\216\217", 1, 0, 0 },
- { 1, "\216\217", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, -2, },
- { EILSEQ, 1, -1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Tmbrlen, TST_LOC_ja_UTF8 },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "\345\222\214", 1, 1, 1 },
- { 0, "", 0, 1, 0 },
- { 1, "\345\222\214", USE_MBCURMAX, 1, 1 },
- }
- },
- {
- {
- { 0, 1, -2, },
- { 0, 1, -1, },
- { 0, 1, 3, },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "\317", 1, 1, 0 },
- { 1, "\266", 1, 1, 0 },
- { 1, "\345\222\214", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, -2, },
-#ifdef SHOJI_IS_RIGHT
- { 0, 1, +2, },
-#else
- /* XXX ISO C explicitly says that the return value does not
- XXX reflect the bytes contained in the state. */
- { 0, 1, +1, },
-#endif
- { 0, 1, 3, },
- }
- }
- },
- { /*----------------- #03 -----------------*/
- {
- {
- { 1, "\302\303", 0, 0, 0 },
- { 1, "\302\303", 1, 0, 0 },
- { 1, "\302\303", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 0, },
- { 0, 1, -2, },
- { EILSEQ, 1, -1, },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Tmbrlen, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_mbrtowc.c b/test/locale-mbwc/dat_mbrtowc.c
deleted file mode 100644
index b8eb3dd..0000000
--- a/test/locale-mbwc/dat_mbrtowc.c
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_mbrtowc.c
- *
- * MBTOWC: size_t mbrtowc (wchar_t *pwc, char *s, size_t n,
- * mbstate_t *ps);
- */
-
-#include <limits.h>
-
-/* Note:
- assumes en_US = en_US.ascii
-*/
-
-
-
-
-TST_MBRTOWC tst_mbrtowc_loc [] = {
- {
- { Tmbrtowc, TST_LOC_de },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "���", 1, 0, 0 },
- { 1, 1, "���", 2, 0, 0 },
- { 1, 1, "���", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "���", 1, 0, 0 },
- { 1, 1, "���", 2, 0, 0 },
- { 1, 1, "���", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#if 0
- /* XXX: These tests don't make sense to me. */
- {
- { Tmbrtowc, TST_LOC_enUS },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "���", 1, 0, 0 },
- { 1, 1, "���", 2, 0, 0 },
- { 1, 1, "���", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "���", 1, 0, 0 },
- { 1, 1, "���", 2, 0, 0 },
- { 1, 1, "���", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { Tmbrtowc, TST_LOC_eucJP },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "���", 1, 0, 0 },
- { 1, 1, "���", 2, 0, 0 },
- { 1, 1, "���", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "���", 1, 0, 0 },
- { 1, 1, "���", 2, 0, 0 },
- { 1, 1, "���", USE_MBCURMAX, 0, 0 },
- }
- },
- {
- {
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- { 0, 1, 1, 0x00C4 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Tmbrtowc, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_mbsrtowcs.c b/test/locale-mbwc/dat_mbsrtowcs.c
deleted file mode 100644
index 30a0a6c..0000000
--- a/test/locale-mbwc/dat_mbsrtowcs.c
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_mbsrtowcs.c
- *
- * MBSRTOWCS: size_t mbsrtowcs (wchar_t *ws, char **s, size_t n,
- * mbstate_t *ps);
- */
-
-
-TST_MBSRTOWCS tst_mbsrtowcs_loc [] = {
- {
- { Tmbsrtowcs, TST_LOC_de },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "���", 4, 0,0 },
- { 1, "���", 3, 0,0 },
- { 1, "���", 2, 0,0 },
- }
- },
- {
- {
- { 0,1,3, { 0x00FC,0x00E4,0x00F6,0x0000 } },
- { 0,1,3, { 0x00FC,0x00E4,0x00F6,0x0000 } },
- { 0,1,2, { 0x00FC,0x00E4,0x00F6,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "���", 4, 0,0 },
- { 1, "", 1, 0,0 },
- { 0, "���", 4, 0,0 },
- }
- },
- {
- {
- { 0,1,3, { 0x00FC,0x00E4,0x00F6,0x0000 } },
- { 0,1,0, { 0x0000 } },
- { 0,1,3, { 0x0000 } },
- }
- }
- },
- { /*----------------- END -----------------*/
- .is_last = 1
- }
- }
- },
-
- {
- { Tmbsrtowcs, TST_LOC_enUS },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "ABC", 4, 0,0 },
- { 1, "ABC", 3, 0,0 },
- { 1, "ABC", 2, 0,0 },
- }
- },
- {
- {
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,2, { 0x0041,0x0042,0x0043,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "ABC", 4, 0,0 },
- { 1, "", 1, 0,0 },
- { 0, "ABC", 4, 0,0 },
- }
- },
- {
- {
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,0, { 0x0000 } },
- { 0,1,3, { 0x0000 } },
- }
- }
- },
- { /*----------------- END -----------------*/
- .is_last = 1
- }
- }
- },
-
-#if 0
- {
- { Tmbsrtowcs, TST_LOC_eucJP },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "\244\242\244\244\244\246ABC", 7, 0,0 },
- { 1, "\244\242\244\244\244\246ABC", 6, 0,0 },
- { 1, "\244\242\244\244\244\246ABC", 4, 0,0 },
- }
- },
- {
- {
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "\244\242\244\244\244\246ABC", 7, 0,0 },
- { 1, "", 1, 0,0 },
- { 0, "\244\242\244\244\244\246ABC", 7, 0,0 },
- }
- },
- {
- {
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,0, { 0x0000 } },
- { 0,1,6, { 0x0000 } },
- }
- }
- },
- { /*----------------- END -----------------*/
- .is_last = 1
- }
- }
- },
-#else
- {
- { Tmbsrtowcs, TST_LOC_ja_UTF8 },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, "\343\201\202\343\201\204\343\201\206ABC", 7, 0,0 },
- { 1, "\343\201\202\343\201\204\343\201\206ABC", 6, 0,0 },
- { 1, "\343\201\202\343\201\204\343\201\206ABC", 4, 0,0 },
- }
- },
- {
- {
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, "\343\201\202\343\201\204\343\201\206ABC", 7, 0,0 },
- { 1, "", 1, 0,0 },
- { 0, "\343\201\202\343\201\204\343\201\206ABC", 7, 0,0 },
- }
- },
- {
- {
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,0, { 0x0000 } },
- { 0,1,6, { 0x0000 } },
- }
- }
- },
- { /*----------------- END -----------------*/
- .is_last = 1
- }
- }
- },
-#endif
- {
- { Tmbsrtowcs, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_mbstowcs.c b/test/locale-mbwc/dat_mbstowcs.c
deleted file mode 100644
index 3b8ce65..0000000
--- a/test/locale-mbwc/dat_mbstowcs.c
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_mbstowcs.c
- *
- * MBSTOWCS: size_t mbstowcs (wchar_t *ws, char *s, size_t n);
- */
-
-#include <limits.h>
-
-TST_MBSTOWCS tst_mbstowcs_loc [] = {
- {
- { Tmbstowcs, TST_LOC_de },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "ABC", 4 },
- { 1, 1, "ABC", 3 },
- { 1, 1, "ABC", 2 },
- }
- },
- {
- {
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,2, { 0x0041,0x0042,0x0043,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "ABC", 4 },
- { 1, 1, "", 1 },
- { 0, 1, "ABC", 4 },
- }
- },
- {
- {
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,0, { 0x0000 } },
- { 0,1,3, { 0x0000 } },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { Tmbstowcs, TST_LOC_enUS },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "ABC", 4 },
- { 1, 1, "ABC", 3 },
- { 1, 1, "ABC", 2 },
- }
- },
- {
- {
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,2, { 0x0041,0x0042,0x0043,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "ABC", 4 },
- { 1, 1, "", 1 },
- { 0, 1, "ABC", 4 },
- }
- },
- {
- {
- { 0,1,3, { 0x0041,0x0042,0x0043,0x0000 } },
- { 0,1,0, { 0x0000 } },
- { 0,1,3, { 0x0000 } },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Tmbstowcs, TST_LOC_eucJP },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "\244\242\244\244\244\246ABC", 7 },
- { 1, 1, "\244\242\244\244\244\246ABC", 6 },
- { 1, 1, "\244\242\244\244\244\246ABC", 4 },
- }
- },
- {
- {
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
-#ifdef SHOJI_IS_RIGHT
- /* XXX I really don't understand the first and third line.
- the result of the first line is the same as the first
- in the last test (i.e., returns 6). Also, the third
- test will simply convert everything. */
- { 1, 1, "\244\242\244\244\244\246ABC", 7 },
- { 1, 1, "", 1 },
- { 0, 1, "\244\242\244\244\244\246ABC", 7 },
-#else
- { 1, 1, "\244\242\244\244\244\246ABC", 4 },
- { 1, 1, "", 1 },
- { 0, 1, "\244\242\244\244\244\246ABC", 0 },
-#endif
- }
- },
- {
- {
- { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
- { 0,1,0, { 0x0000 } },
- { 0,1,6, { 0x0000 } },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Tmbstowcs, TST_LOC_ja_UTF8 },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "\343\201\202\343\201\204\343\201\206ABC", 7 },
- { 1, 1, "\343\201\202\343\201\204\343\201\206ABC", 6 },
- { 1, 1, "\343\201\202\343\201\204\343\201\206ABC", 4 },
- }
- },
- {
- {
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,6, { 0x3042,0x3044,0x3046,0x0041,0x0042,0x0043,0x0000 }},
- { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
-#ifdef SHOJI_IS_RIGHT
- /* XXX I really don't understand the first and third line.
- the result of the first line is the same as the first
- in the last test (i.e., returns 6). Also, the third
- test will simply convert everything. */
- { 1, 1, "\244\242\244\244\244\246ABC", 7 },
- { 1, 1, "", 1 },
- { 0, 1, "\244\242\244\244\244\246ABC", 7 },
-#else
- { 1, 1, "\343\201\202\343\201\204\343\201\206ABC", 4 },
- { 1, 1, "", 1 },
- { 0, 1, "\343\201\202\343\201\204\343\201\206ABC", 7 },
-#endif
- }
- },
- {
- {
- { 0,1,4, { 0x3042,0x3044,0x3046,0x0041,0x0000 } },
- { 0,1,0, { 0x0000 } },
- { 0,1,6, { 0x0000 } },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Tmbstowcs, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_mbtowc.c b/test/locale-mbwc/dat_mbtowc.c
deleted file mode 100644
index 9a7a9c3..0000000
--- a/test/locale-mbwc/dat_mbtowc.c
+++ /dev/null
@@ -1,444 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_mbtowc.c
- *
- * MBTOWC: int mbtowc (wchar_t *wp, char *s, size_t n);
- */
-
-/* NOTE:
- *
- * int mbtowc (wchar_t *wp, char *s, size_t n);
- *
- * where n: a maximum number of bytes
- * return: the number of bytes
- *
- *
- * o When you feed a null pointer for a string (s) to the function,
- * set s_flg=0 instead of putting just a 'NULL' there.
- * Even if you put a 'NULL', it means a null string as well as "".
- *
- * o When s is a null pointer, the function checks state dependency.
- *
- * state-dependent encoding - return NON-zero
- * state-independent encoding - return 0
- *
- * If state-dependent encoding is expected, set
- *
- * s_flg = 0, ret_flg = 0, ret_val = +1
- *
- * If state-independent encoding is expected, set
- *
- * s_flg = 0, ret_flg = 0, ret_val = 0
- *
- *
- * When you set ret_flg=1, the test program simply compares
- * an actual return value with an expected value. You can
- * check state-independent case (return value is 0) in that
- * way, but you can not check state-dependent case. So when
- * you check state- dependency in this test function:
- * tst_mbtowc(), set ret_flg=0 always. It's a special case
- * and the test function takes care of it.
- *
- * w_flg
- * | s: (a null string; can't be (char *)NULL)
- * | |
- * input. { 1, 0, (char)NULL, MB_LEN_MAX },
- * |
- * s_flg=0: makes _s_ a null pointer.
- *
- * expect { 0,0,0,x, 0x0000 },
- * | |
- * | ret_val: 0/+1
- * ret_flg=0
- *
- *
- * Test data for State dependent encodings:
- *
- * mbtowc( NULL, NULL, 0 ); ... first data
- * mbtowc( &wc, s1, n1 ); ... second data
- * mbtowc( &wc, s2, n2 ); ... third data
- * */
-
-#include <limits.h>
-
-TST_MBTOWC tst_mbtowc_loc [] = {
- {
- { Tmbtowc, TST_LOC_de },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "\xfc\xe4\xf6", 1 },
- { 1, 1, "\xfc\xe4\xf6", 2 },
- { 1, 1, "\xfc\xe4\xf6", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x00FC },
- { 0, 1, 1, 0x00FC },
- { 0, 1, 1, 0x00FC },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "\177", MB_LEN_MAX },
- { 1, 1, "\200", MB_LEN_MAX },
- { 1, 1, "\201", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x007F },
- { 0, 1, 1, 0x0080 },
- { 0, 1, 1, 0x0081 },
- }
- }
- },
- { /*----------------- #03 -----------------*/
- {
- {
- { 1, 1, "", MB_LEN_MAX },
- { 0, 1, "\xfc\xe4\xf6", 1 },
- { 0, 1, "\xfc\xe4\xf6", 2 },
- }
- },
- {
- {
- { 0, 1, 0, 0x0000 },
- { 0, 1, 1, 0x0000 },
- { 0, 1, 1, 0x0000 },
- }
- }
- },
- { /*----------------- #04 -----------------*/
- {
- {
- { 0, 1, "\xfc\xe4\xf6", MB_LEN_MAX },
- { 0, 1, "\177", MB_LEN_MAX },
- { 0, 1, "", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x0000 },
- { 0, 1, 1, 0x0000 },
- { 0, 1, 0, 0x0000 },
- }
- }
- },
- { /*----------------- #05 -----------------*/
- {
- {
- { 0, 1, "\xfc\xe4\xf6", MB_LEN_MAX },
- { 0, 1, "\177", MB_LEN_MAX },
- { 0, 0, NULL, MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x0000 },
- { 0, 1, 1, 0x0000 },
- { 0, 0, 0, 0x0000 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { Tmbtowc, TST_LOC_enUS },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "ABC", 1 },
- { 1, 1, "ABC", 2 },
- { 1, 1, "ABC", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x0041 },
- { 0, 1, 1, 0x0041 },
- { 0, 1, 1, 0x0041 },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "\177", MB_LEN_MAX },
- { 1, 1, "\200", MB_LEN_MAX },
- { 1, 1, "\201", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x007F },
- { EILSEQ, 1, -1, 0x0000 },
- { EILSEQ, 1, -1, 0x0000 },
- }
- }
- },
- { /*----------------- #03 -----------------*/
- {
- {
- { 1, 1, "", MB_LEN_MAX },
- { 0, 1, "ABC", 1 },
- { 0, 1, "ABC", 2 },
- }
- },
- {
- {
- { 0, 1, 0, 0x0000 },
- { 0, 1, 1, 0x0000 },
- { 0, 1, 1, 0x0000 },
- }
- }
- },
- { /*----------------- #04 -----------------*/
- {
- {
- { 0, 1, "ABC", MB_LEN_MAX },
- { 0, 1, "\177", MB_LEN_MAX },
- { 0, 1, "", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x0000 },
- { 0, 1, 1, 0x0000 },
- { 0, 1, 0, 0x0000 },
- }
- }
- },
- { /*----------------- #05 -----------------*/
- {
- {
- { 0, 1, "ABC", MB_LEN_MAX },
- { 0, 1, "\177", MB_LEN_MAX },
- { 0, 0, NULL, MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 1, 0x0000 },
- { 0, 1, 1, 0x0000 },
- { 0, 0, 0, 0x0000 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Tmbtowc, TST_LOC_eucJP },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "\244\242A", 1 },
- { 1, 1, "\244\242A", 2 },
- { 1, 1, "\244\242A", MB_LEN_MAX },
- }
- },
- {
- {
-#ifdef SHOJI_IS_RIGHT
- { EILSEQ, 1, -1, 0x0000 },
-#else
- /* XXX EILSEQ was introduced in ISO C99. */
- { 0, 1, -1, 0x0000 },
-#endif
- { 0, 1, 2, 0x3042 },
- { 0, 1, 2, 0x3042 },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "\177\244\242", MB_LEN_MAX },
- { 1, 1, "\377\244\242", MB_LEN_MAX },
- { 1, 1, "\201\244\242", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, +1, 0x007F },
-#ifdef SHOJI_IS_RIGHT
- { EILSEQ, 1, -1, 0x0000 },
-#else
- { 0, 1, -1, 0x0000 },
-#endif
- { 0, 1, +1, 0x0081 },
- }
- }
- },
- { /*----------------- #03 -----------------*/
- {
- {
- { 1, 1, "", MB_LEN_MAX },
- { 0, 1, "\244\242A", 1 },
- { 0, 1, "\244\242A", 2 },
- }
- },
- {
- {
- { 0, 1, 0, 0x0000 },
-#ifdef SHOJI_IS_RIGHT
- { EILSEQ, 1, -1, 0x0000 },
-#else
- /* XXX EILSEQ was introduced in ISO C99. */
- { 0, 1, -1, 0x0000 },
-#endif
- { 0, 1, 2, 0x0000 },
- }
- }
- },
- { /*----------------- #04 -----------------*/
- {
- {
- { 0, 1, "\244\242A", MB_LEN_MAX },
- { 0, 1, "\177\244\242", MB_LEN_MAX },
- { 0, 1, "", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 2, 0x0000 },
- { 0, 1, +1, 0x0000 },
- { 0, 1, 0, 0x0000 },
- }
- }
- },
- { /*----------------- #05 -----------------*/
- {
- {
- { 0, 1, "\244\242A", MB_LEN_MAX },
- { 0, 1, "\177\244\242", MB_LEN_MAX },
- { 0, 0, NULL, MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 2, 0x0000 },
- { 0, 1, +1, 0x0000 },
- { 0, 0, 0, 0x0000 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Tmbtowc, TST_LOC_ja_UTF8 },
- {
- { /*----------------- #01 -----------------*/
- {
- {
- { 1, 1, "\343\201\202A", 1 },
- { 1, 1, "\343\201\202A", 3 },
- { 1, 1, "\343\201\202A", MB_LEN_MAX },
- }
- },
- {
- {
-#ifdef SHOJI_IS_RIGHT
- { EILSEQ, 1, -1, 0x0000 },
-#else
- /* XXX EILSEQ was introduced in ISO C99. */
- { 0, 1, -1, 0x0000 },
-#endif
- { 0, 1, 3, 0x3042 },
- { 0, 1, 3, 0x3042 },
- }
- }
- },
- { /*----------------- #02 -----------------*/
- {
- {
- { 1, 1, "\177\343\201\202", MB_LEN_MAX },
- { 1, 1, "\377\343\201\202", MB_LEN_MAX },
- { 1, 1, "\302\201\343\201\202", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, +1, 0x007F },
-#ifdef SHOJI_IS_RIGHT
- { EILSEQ, 1, -1, 0x0000 },
-#else
- { 0, 1, -1, 0x0000 },
-#endif
- { 0, 1, +2, 0x0081 },
- }
- }
- },
- { /*----------------- #03 -----------------*/
- {
- {
- { 1, 1, "", MB_LEN_MAX },
- { 0, 1, "\343\201\202A", 1 },
- { 0, 1, "\343\201\202A", 3 },
- }
- },
- {
- {
- { 0, 1, 0, 0x0000 },
-#ifdef SHOJI_IS_RIGHT
- { EILSEQ, 1, -1, 0x0000 },
-#else
- /* XXX EILSEQ was introduced in ISO C99. */
- { 0, 1, -1, 0x0000 },
-#endif
- { 0, 1, 3, 0x0000 },
- }
- }
- },
- { /*----------------- #04 -----------------*/
- {
- {
- { 0, 1, "\343\201\202A", MB_LEN_MAX },
- { 0, 1, "\177\343\201\202", MB_LEN_MAX },
- { 0, 1, "", MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 3, 0x0000 },
- { 0, 1, +1, 0x0000 },
- { 0, 1, 0, 0x0000 },
- }
- }
- },
- { /*----------------- #05 -----------------*/
- {
- {
- { 0, 1, "\343\201\202A", MB_LEN_MAX },
- { 0, 1, "\177\343\201\202", MB_LEN_MAX },
- { 0, 0, NULL, MB_LEN_MAX },
- }
- },
- {
- {
- { 0, 1, 3, 0x0000 },
- { 0, 1, +1, 0x0000 },
- { 0, 0, 0, 0x0000 },
- }
- }
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Tmbtowc, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_strcoll.c b/test/locale-mbwc/dat_strcoll.c
deleted file mode 100644
index e12037c..0000000
--- a/test/locale-mbwc/dat_strcoll.c
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_strcoll.c
- *
- * STRCOLL: int strcoll (const char *s1, const char *s2);
- */
-
-/*
- NOTE:
-
- If a return value is expected to be 0, set ret_flg=1 and the
- expected value = 0. If a return value is expected to be a
- positive/negative value, set ret_flg=0, and set the expected value
- = +1/-1.
- There is inconsistensy between tst_strcoll() and tst_wcscoll()(it
- has cmp_flg) for input data. I'll fix it.
-
- Assuming en_US to be en_US.ascii. (maybe, should be iso8859-1).
-
-
-
- ASCII CODE : A,B,C, ... , a, b, c, ... B,a:-1 a,B:+1
- DICTIONARY : A,a,B,b,C,c,.... a,B:-1 B,a:+1 */
-
-TST_STRCOLL tst_strcoll_loc [] = {
- {
- { Tstrcoll, TST_LOC_de },
- {
- { /*input.*/ { "�BCDEFG", "�BCDEFG" }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { "XX � XX", "XX B XX" }, /* #2 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "XX B XX", "XX � XX" }, /* #3 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "B", "a" }, /* #4 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "a", "B" }, /* #5 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "b", "A" }, /* #6 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "A", "b" }, /* #7 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "�", "B" }, /* #8 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "B", "�" }, /* #9 */
- /*expect*/ { 0,0,+1, },
- },
- { .is_last = 1 } /* Last element. */
- }
- },
- {
- { Tstrcoll, TST_LOC_en },
- {
- { /*input.*/ { "ABCDEFG", "ABCDEFG" }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { "XX a XX", "XX B XX" }, /* #2 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "XX B XX", "XX a XX" }, /* #3 */
- /*expect*/ { 0,0,+1, },
- },
- {
- /* <WAIVER> */
- /*input.*/ { "B", "a" }, /* #4 */
-#ifdef SHOJI_IS_RIGHT
- /*expect*/ { 0,0,-1, },
-#else
- /* XXX We are not testing the C locale. */
- /*expect*/ { 0,0,+1, },
-#endif
- },
- {
- /* <WAIVER> */
- /*input.*/ { "a", "B" }, /* #5 */
-#ifdef SHOJI_IS_RIGHT
- /*expect*/ { 0,0,+1, },
-#else
- /* XXX We are not testing the C locale. */
- /*expect*/ { 0,0,-1, },
-#endif
- },
- { /*input.*/ { "b", "A" }, /* #6 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "A", "b" }, /* #7 */
- /*expect*/ { 0,0,-1, },
- },
-#ifdef NO_WAIVER
- /* XXX I do not yet know whether strcoll really should reject
- characters outside the multibyte character range. */
- {
- /* #8 */ /* <WAIVER> */
- /*input.*/ { "\244\242\244\244\244\246\244\250\244\252", "ABCDEFG" },
- /*expect*/ { EINVAL,0,0, },
- },
- {
- /* #9 */ /* <WAIVER> */
- /*input.*/ { "ABCZEFG", "\244\242\244\244\244\246\244\250\244\252" },
- /*expect*/ { EINVAL,0,0, },
- },
-#endif
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- {
- { Tstrcoll, TST_LOC_eucJP },
- {
- { /*input.*/ { "\244\242\244\244\244\246\244\250\244\252",
- "\244\242\244\244\244\246\244\250\244\252" }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { "\244\242\244\244\244\246\244\250\244\252",
- "\244\242\244\244\244\363\244\250\244\252" }, /* #2 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "\244\242\244\244\244\363\244\250\244\252",
- "\244\242\244\244\244\246\244\250\244\252" }, /* #3 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "B", "a" }, /* #4 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "a", "B" }, /* #5 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "b", "A" }, /* #6 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "A", "b" }, /* #7 */
- /*expect*/ { 0,0,-1, },
- },
-#ifdef NO_WAIVER
- /* XXX I do not yet know whether strcoll really should reject
- characters outside the multibyte character range. */
- {
- /* <WAIVER> */
- /*input.*/ { "\200\216\217", "ABCDEFG" }, /* #8 */
- /*expect*/ { EINVAL,0,0, },
- },
- {
- /* <WAIVER> */
- /*input.*/ { "ABCZEFG", "\200\216\217" }, /* #9 */
- /*expect*/ { EINVAL,0,0, },
- },
-#endif
- { .is_last = 1 } /* Last element. */
- }
- },
-#else
- {
- { Tstrcoll, TST_LOC_ja_UTF8 },
- {
- { /*input.*/ { "\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212",
- "\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212" }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { "\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212",
- "\343\201\202\343\201\204\343\202\223\343\201\210\343\201\212" }, /* #2 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "\343\201\202\343\201\204\343\202\223\343\201\210\343\201\212",
- "\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212" }, /* #3 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "B", "a" }, /* #4 */
- /*expect*/ { 0,0,-1, },
- },
- { /*input.*/ { "a", "B" }, /* #5 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "b", "A" }, /* #6 */
- /*expect*/ { 0,0,+1, },
- },
- { /*input.*/ { "A", "b" }, /* #7 */
- /*expect*/ { 0,0,-1, },
- },
-#ifdef NO_WAIVER
- /* XXX I do not yet know whether strcoll really should reject
- characters outside the multibyte character range. */
- {
- /* <WAIVER> */
- /*input.*/ { "\200\216\217", "ABCDEFG" }, /* #8 */
- /*expect*/ { EINVAL,0,0, },
- },
- {
- /* <WAIVER> */
- /*input.*/ { "ABCZEFG", "\200\216\217" }, /* #9 */
- /*expect*/ { EINVAL,0,0, },
- },
-#endif
- { .is_last = 1 } /* Last element. */
- }
- },
-#endif
- {
- { Tstrcoll, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_strfmon.c b/test/locale-mbwc/dat_strfmon.c
deleted file mode 100644
index 8c28bba..0000000
--- a/test/locale-mbwc/dat_strfmon.c
+++ /dev/null
@@ -1,268 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_strfmon.c
- *
- * STRFMON: size_t strfmon (char *buf, size_t nbyte, char *fmt, ... );
- */
-
-/*
- * NOTE:
- *
- * The buffer size should be enough to contain a string including a
- * null char.
- * Returns the number of bytes of the string (NOT including a null char).
- */
-
-TST_STRFMON tst_strfmon_loc [] = {
- {
- { Tstrfmon, TST_LOC_de },
- {
- {
- /* #01 */
- /*inp*/ { 24, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,23, "123,00 EUR % 123,00 EUR" },
- },
- {
- /* #02 */
- /*inp*/ { 24, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,23, "123,00 EUR % 123,00 EUR" },
- },
- {
- /* #03 */
- /*inp*/ { 23, "%n %% %i", 123.00 },
- /*exp*/ { E2BIG,1,-1, "" },
- },
- {
- /* #04 */
- /*inp*/ { 31, "%n|%i", 1234.561 },
- /*exp*/ { 0,1,25, "1.234,56 EUR|1.234,56 EUR"},
- },
- {
- /* #05 */
- /*inp*/ { 33, "%n|%i", -1234.561 },
- /*exp*/ { 0,1,27, "-1.234,56 EUR|-1.234,56 EUR"},
- },
- {
- /* #06 */
- /*inp*/ { 33, "%13n|%12i", 1234.561 },
- /*exp*/ { 0,1,26, " 1.234,56 EUR|1.234,56 EUR"},
- },
- {
- /* #07 */
- /*inp*/ { 33, "%12n|%12i", -1234.561 },
- /*exp*/ { 0,1,27, "-1.234,56 EUR|-1.234,56 EUR"},
- },
- {
- /* #08 */
- /*inp*/ { 33, "%#5n|%#5i", 1234.561 },
- /*exp*/ { 0,1,29, " 1.234,56 EUR| 1.234,56 EUR"},
- },
- {
- /* #09 */
- /*inp*/ { 33, "%#5n|%#5i", -1234.561 },
- /*exp*/ { 0,1,29, "- 1.234,56 EUR|- 1.234,56 EUR"},
- },
- {
- /* #10 */
- /*inp*/ { 33, "%=*#5n|%=*#5i", 1234.561 },
- /*exp*/ { 0,1,29, " *1.234,56 EUR| *1.234,56 EUR"},
- },
- {
- /* #11 */
- /*inp*/ { 33, "%=0#5n|%=0#5i", -1234.561 },
- /*exp*/ { 0,1,29, "-01.234,56 EUR|-01.234,56 EUR"},
- },
- {
- /* #12 */
- /*inp*/ { 33, "%^#5n|%^#5i", -1234.561 },
- /*exp*/ { 0,1,27, "- 1234,56 EUR|- 1234,56 EUR"},
- },
- {
- /* #13 */
- /*inp*/ { 33, "%#5.0n|%#5.0i", 1234.444 },
- /*exp*/ { 0,1,23, " 1.234 EUR| 1.234 EUR" },
- },
- {
- /* #14 */
- /*inp*/ { 33, "%#5.0n|%#5.4i", -1234.555 },
- /*exp*/ { 0,1,28, "- 1.235 EUR|- 1.234,5550 EUR"},
- },
- {
- /* #15 */
- /*inp*/ { 33, "%(#5n|%!(#5i", -1234.561 },
- /*exp*/ { 0,1,27, "( 1.234,56 EUR)|( 1.234,56)"},
- },
- { .is_last = 1 }
- }
- },
- {
- { Tstrfmon, TST_LOC_enUS },
- {
- {
- /* #01 */
- /*inp*/ { 22, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,20, "$123.00 % USD 123.00" },
- },
- {
- /* #02 */
- /*inp*/ { 21, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,20, "$123.00 % USD 123.00" },
- },
- {
- /* #03 */
- /*inp*/ { 20, "%n %% %i", 123.00 },
- /*exp*/ { E2BIG,1,-1, "" },
- },
- {
- /* #04 */
- /*inp*/ { 30, "%n|%i", 1234.561 },
- /*exp*/ { 0,1,22, "$1,234.56|USD 1,234.56" },
- },
- {
- /* #05 */
- /*inp*/ { 32, "%n|%i", -1234.561 },
- /*exp*/ { 0,1,24, "-$1,234.56|-USD 1,234.56" },
- },
- {
- /* #06 */
- /*inp*/ { 30, "%12n|%12i", 1234.561 },
- /*exp*/ { 0,1,25, " $1,234.56|USD 1,234.56"},
- },
- {
- /* #07 */
- /*inp*/ { 32, "%12n|%12i", -1234.561 },
- /*exp*/ { 0,1,26, " -$1,234.56|-USD 1,234.56"},
- },
- {
- /* #08 */
- /*inp*/ { 32, "%#5n|%#5i", 1234.561 },
- /*exp*/ { 0,1,26, " $ 1,234.56| USD 1,234.56"},
- },
- {
- /* #09 */
- /*inp*/ { 32, "%#5n|%#5i", -1234.561 },
- /*exp*/ { 0,1,26, "-$ 1,234.56|-USD 1,234.56"},
- },
- {
- /* #10 */
- /*inp*/ { 32, "%=*#5n|%=*#5i", 1234.561 },
- /*exp*/ { 0,1,26, " $*1,234.56| USD *1,234.56"},
- },
- {
- /* #11 */
- /*inp*/ { 32, "%=0#5n|%=0#5i", -1234.561 },
- /*exp*/ { 0,1,26, "-$01,234.56|-USD 01,234.56"},
- },
- {
- /* #12 */
- /*inp*/ { 32, "%^#5n|%^#5i", -1234.561 },
- /*exp*/ { 0,1,24, "-$ 1234.56|-USD 1234.56" },
- },
- {
- /* #13 */
- /*inp*/ { 32, "%#5.0n|%#5.0i", 1234.444 },
- /*exp*/ { 0,1,20, " $ 1,234| USD 1,234" },
- },
- {
- /* #14 */
- /*inp*/ { 32, "%#5.0n|%#5.4i", -1234.555 },
- /*exp*/ { 0,1,25, "-$ 1,235|-USD 1,234.5550"},
- },
- {
- /* #15 */
- /*inp*/ { 32, "%(#5n|%!(#5i", -1234.561 },
- /*exp*/ { 0,1,24, "($ 1,234.56)|( 1,234.56)" },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Tstrfmon, TST_LOC_eucJP },
-#else
- { Tstrfmon, TST_LOC_ja_UTF8 },
-#endif
- {
- {
- /* #01 */
- /*inp*/ { 17, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,15, "\241\357123 % JPY 123" },
- },
- {
- /* #02 */
- /*inp*/ { 16, "%n %% %i", 123.00 },
- /*exp*/ { 0,1,15, "\241\357123 % JPY 123" },
- },
- {
- /* #03 */
- /*inp*/ { 15, "%n %% %i", 123.00 },
- /*exp*/ { E2BIG,1,-1, "" },
- },
- {
- /* #04 */
- /*inp*/ { 30, "%n|%i", 1234.561 },
- /*exp*/ { 0,1,17, "\241\3571,235|JPY 1,235" },
- },
- {
- /* #05 */
- /*inp*/ { 32, "%n|%i", -1234.561 },
- /*exp*/ { 0,1,19, "\241\357-1,235|JPY -1,235" },
- },
- {
- /* #06 */
- /*inp*/ { 32, "%12n|%12i", 1234.561 },
- /*exp*/ { 0,1,25, " \241\3571,235| JPY 1,235" },
- },
- {
- /* #07 */
- /*inp*/ { 32, "%12n|%12i", -1234.561 },
- /*exp*/ { 0,1,25, " \241\357-1,235| JPY -1,235" },
- },
- {
- /* #08 */
- /*inp*/ { 32, "%#5n|%#5i", 1234.561 },
- /*exp*/ { 0,1,21, " \241\357 1,235| JPY 1,235" },
- },
- {
- /* #09 */
- /*inp*/ { 32, "%#5n|%#5i", -1234.561 },
- /*exp*/ { 0,1,21, "\241\357- 1,235|JPY - 1,235" },
- },
- {
- /* #10 */
- /*inp*/ { 32, "%=*#5n|%=*#5i", 1234.561 },
- /*exp*/ { 0,1,21, " \241\357*1,235| JPY *1,235" },
- },
- {
- /* #11 */
- /*inp*/ { 32, "%=0#5n|%=0#5i", -1234.561 },
- /*exp*/ { 0,1,21, "\241\357-01,235|JPY -01,235" },
- },
- {
- /* #12 */
- /*inp*/ { 32, "%^#5n|%^#5i", -1234.561 },
- /*exp*/ { 0,1,19, "\241\357- 1235|JPY - 1235" },
- },
- {
- /* #13 */
- /*inp*/ { 32, "%#5.0n|%#5.0i", 1234.444 },
- /*exp*/ { 0,1,21, " \241\357 1,234| JPY 1,234" },
- },
- {
- /* #14 */
- /*inp*/ { 32, "%#5.0n|%#5.4i", -1234.555 },
- /*exp*/ { 0,1,26, "\241\357- 1,235|JPY - 1,234.5550"},
- },
- {
- /* #15 */
- /*inp*/ { 32, "%(#5n|%!(#5i", -1234.561 },
- /*exp*/ { 0,1,19, "(\241\357 1,235)|( 1,235)" },
- },
- { .is_last = 1 }
- }
- },
- {
- { Tstrfmon, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_strxfrm.c b/test/locale-mbwc/dat_strxfrm.c
deleted file mode 100644
index 0c672d3..0000000
--- a/test/locale-mbwc/dat_strxfrm.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_strxfrm.c
- *
- * STRXFRM: size_t strxfrm (char *s1, const char s2, size_t n);
- */
-
-
-/*
- * NOTE:
- *
- * Return value and errno value are checked only for 2nd string:
- * org2[]; n1 and n2 don't mean bytes to be translated.
- * It means a buffer size including a null character.
- * Results of this test depens on results of strcoll().
- * If you got errors, check both test results.
- *
- * The buffer size should be enough to contain a string including a
- * null char. Returns the number of bytes of the string (NOT
- * including a null char).
- */
-
-
-
-TST_STRXFRM tst_strxfrm_loc [] = {
- {
- { Tstrxfrm, TST_LOC_de },
- {
- { /*inp*/ { "\xf6\xc4\xe4\xfc", "\xf6\xc4\xe4\xfc", 17, 17 }, /* #01 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "aA", "Aa", 10, 10 }, /* #02 */
- /*exp*/ { 0,0,0 , },
- },
- { /*inp*/ { "Aa", "aA", 10, 10 }, /* #03 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "abc", "", 13, 13 }, /* #04 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "a", "B", 7, 7 }, /* #05 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "B", "a", 7, 7 }, /* #06 */
- /*exp*/ { 0,0,0, },
- },
- {
- /* hiragana == latin1 */
- /*inp*/ { "abc", "\244\241\244\242", 13, 9 }, /* #07 */
- /*exp*/ { 0,0,0, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Tstrxfrm, TST_LOC_enUS },
- {
- { /*inp*/ { "abcd", "abcd", 17, 17 }, /* #01 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "aA", "Aa", 10, 10 }, /* #02 */
- /*exp*/ { 0,0,0 , },
- },
- { /*inp*/ { "Aa", "aA", 10, 10 }, /* #03 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "abc", "", 13, 13 }, /* #04 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "a", "B", 7, 7 }, /* #05 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "B", "a", 7, 7 }, /* #06 */
- /*exp*/ { 0,0,0, },
- },
-#ifdef NO_WAIVER
- {
- /* <WAIVER> */
- /*inp*/ { "abc", "\244\241\244\242", 13, 9 }, /* #07 */
- /*exp*/ { EINVAL,0,0, },
- },
-#endif
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Tstrxfrm, TST_LOC_eucJP }, /* ??? */
- {
- {
- /* #01 */
- /*inp*/ { "\244\242\244\241", "\244\241\244\242", 5, 5 },
- /*exp*/ { 0,0,0, },
- },
- {
- /* #02 */
- /*inp*/ { "\244\241\244\242", "\244\242\244\241", 5, 5 },
- /*exp*/ { 0,0,0, },
- },
- {
- /* #03 */
- /*inp*/ { "\244\242\216\261", "\216\261\244\242", 5, 5 },
- /*exp*/ { 0,0,0, },
- },
-#ifdef NO_WAIVER
- {
- /*inp*/ { "AAA", "\216\217", 5, 5 }, /* #04 */ /* <WAIVER> */
- /*exp*/ { EINVAL,0,0, },
- },
-#endif
- { .is_last = 1 }
- }
- },
-#else
- {
- { Tstrxfrm, TST_LOC_ja_UTF8 }, /* ??? */
- {
- {
- /* #01 */
- /*inp*/ { "\343\201\202\343\201\201", "\343\201\201\343\201\202", 7, 7 },
- /*exp*/ { 0,0,0, },
- },
- {
- /* #02 */
- /*inp*/ { "\343\201\201\343\201\202", "\343\201\202\343\201\201", 7, 7 },
- /*exp*/ { 0,0,0, },
- },
- {
- /* #03 */
- /*inp*/ { "\343\201\202\357\275\261", "\357\275\261343\201\202", 7, 7 },
- /*exp*/ { 0,0,0, },
- },
-#ifdef NO_WAIVER
- {
- /*inp*/ { "AAA", "\340\277\220", 5, 5 }, /* #04 */ /* <WAIVER> */
- /*exp*/ { EINVAL,0,0, },
- },
-#endif
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Tstrxfrm, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_swscanf.c b/test/locale-mbwc/dat_swscanf.c
deleted file mode 100644
index 088f165..0000000
--- a/test/locale-mbwc/dat_swscanf.c
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_swscanf.c
- *
- * SWSCANF: int swscanf (const wchar_t *s, const wchar_t *fmt, ...);
- */
-
-
-#include <errno.h>
-#include <stdlib.h>
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-
-TST_SWSCANF tst_swscanf_loc [] =
-{
- {
- { Tswscanf, TST_LOC_de },
- {
- /*------------------------ 01 -----------------------*/
- { { {
- 0x002D, 0x0031, 0x003A, /* %d: -1 */
- 0x0032, 0x003A, /* %u: 2 */
- 0x0033, 0x002C, 0x0033, 0x003A, /* %f: 3.3 */
- 0x00E4, 0x003A, /* %c: '�' */
- 0x00C4, 0x00DC, 0x0000, 0x0000, /* %s: "��" */
- },
- L"%d:%u:%f:%c:%s", 0
- },
- { /* The fields are: err_val, ret_flag, ret_val,
- val_int, val_uns, val_flt, val_c, val_s, val_S. */
- 0,1,5,
- -1, 2, 3.3, '�', "��", { 0x0000, },
- },
- },
- /*------------------------ 02 -----------------------*/
- { { {
- 0x00E4, 0x00C4, 0x0000 /* "��" */
- },
- L"%lc", 'C'
- },
- { 0,1,1,
- 0,0,0,0,"", { 0x00E4, 0x0000 },
- },
- },
- /*------------------------ 03 -----------------------*/
- { { {
- 0x00E4, 0x00C4, 0x0000 /* "��" */
- },
- L"%ls", 'S'
- },
- { 0,1,1,
- 0,0,0,0,"", { 0x00E4, 0x00C4, 0x0000 },
- },
- },
- /*------------------------ 04 -----------------------*/
- /* <NO_WAIVER> x 2 */
- { { {
- 0x00E4, 0x00C4, 0x0000 /* "��" */
- },
- L"1%d:2%d:3%d:4%d:5%d:6%d:7%d:8%d:9%d", 0
- },
-#ifdef SHOJI_IS_RIGHT
- { 1,EINVAL,1,WEOF,
- 0,0,0,0,"", { 0x0000 },
-#else
- { 0,1,0,
- 0,0,0,0,"", { 0x0000 },
-#endif
- },
- },
- /*---------------------------------------------------*/
- { .is_last = 1} /* Last element. */
- }
- },
- {
- { Tswscanf, TST_LOC_enUS },
- {
- /*------------------------ 01 -----------------------*/
- { { { 0x002D, 0x0031, 0x003A,
- 0x0032, 0x003A,
- 0x0035, 0x0034, 0x002E, 0x0033, 0x0045, 0x002D, 0x0031, 0x003A,
- 0x0041, 0x003A,
- 0x0061, 0x0062, 0x0000, 0x0000,
- },
- L"%d:%u:%f:%c:%s", 0
- },
- { 0,1,5,
- -1, 2, 5.43, 'A', "ab", { 0x0000 },
- },
- },
- /*------------------------ 02 -----------------------*/
- /* <NO_WAIVER> x 2 */
- { { {
- 0x0063, 0x0064, 0x0000
- },
- L"%C", 'C'
- },
- { 0,1,1,
- 0,0,0,0,"", { 0x0063, 0x0000 },
- },
- },
- /*------------------------ 03 -----------------------*/
- { { {
- 0x0063, 0x0064, 0x0000
- },
- L"%S", 'S'
- },
- { 0,1,1,
- 0,0,0,0,"", { 0x0063, 0x0064, 0x0000 },
- },
- },
- /*---------------------------------------------------*/
- { .is_last = 1} /* Last element. */
- }
- },
- {
-#if 0
- { Tswscanf, TST_LOC_eucJP },
-#else
- { Tswscanf, TST_LOC_ja_UTF8 },
-#endif
- {
- /*------------------------ 01 -----------------------*/
- { { { 0x002D, 0x0031, 0x003A,
- 0x0032, 0x003A,
- 0x0033, 0x002E, 0x0033, 0x003A,
- 0x0062, 0x003A,
- 0x0061, 0x0062, 0x0000, 0x0000,
- },
- L"%d:%u:%f:%c:%s", 0
- },
- { 0,1,5,
- -1, 2, 3.3, 'b', "ab", { 0x0000 }
- },
- },
- /*------------------------ 02 -----------------------*/
- { { {
- 0x30A2, 0x30A4, 0x0000
- },
- L"%ls", 'S'
- },
- { 0,1,1,
- 0,0,0,0,"", { 0x30A2, 0x30A4, 0x0000 }
- },
- },
- /*------------------------ 03 -----------------------*/
- { { {
- 0x0031, 0x003A,
- 0x0030, 0x003A,
- 0x0033, 0x002E, 0x0039, 0x003A,
- 0x0061, 0x003A,
- 0x0063, 0x0064, 0x0000, 0x0000,
- },
- L"%2$d:%1$u:%3$f:%4$c:%5$s", 0
- },
- { 0,1,5,
- 0, 1, 3.9, 'a', "cd", { 0x0000 }
- },
- },
-#ifdef SHOJI_IS_RIGHT
- /* XXX This test does not make sense. The format string is
- L"\x1\x2\x25\x53" and it is supposed to match the words
- 0x30A2, 0x30A4, 0x0001. */
- /*------------------------ 04 -----------------------*/
- /* <NO_WAIVER> x 2 */
- { { {
- 0x30A2, 0x30A4, 0x0001, 0x0000
- },
- { 0x0001,0x0002,0x0025,0x0053,0x0000 }, 'S'
- },
- { EILSEQ,1,EOF,
- 0,0,0,0,"", { 0x0000 }
- },
- },
-#endif
- /*---------------------------------------------------*/
- { .is_last = 1} /* Last element. */
- }
- },
- {
- { Tswscanf, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_tow-funcs.h b/test/locale-mbwc/dat_tow-funcs.h
deleted file mode 100644
index 4456437..0000000
--- a/test/locale-mbwc/dat_tow-funcs.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_tow-funcs.h
- *
- * ISW*: int tow*( wint_t wc );
- */
-
-#include <errno.h>
-#include <stdlib.h>
-#include <wctype.h>
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-#define TST_TOW_LOC(FUNC, func) \
- TST_TOW## FUNC tst_tow## func ##_loc[]
-
-#define TST_TOW_REC(locale, func) \
- { Ttow## func, TST_LOC_## locale },
-
-/*
- * NOTE:
- * need more test data!
- */
diff --git a/test/locale-mbwc/dat_towctrans.c b/test/locale-mbwc/dat_towctrans.c
deleted file mode 100644
index cf3712a..0000000
--- a/test/locale-mbwc/dat_towctrans.c
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_towctrans.c
- *
- * TOWCTRANS: wint_t towctrans (wint_t wc, wctrans_t charclass);
- */
-
-#include <errno.h>
-#include <stdlib.h>
-#include <wctype.h>
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-/*
- * NOTE:
- * Set ret_flg = 1, when a return value is expected to be 0 (FALSE).
- * Set ret_flg = 0, when a return value is expected to be non-zero (TRUE).
- *
- * Since the functions return *non*-zero value for TRUE, can't
- * compare an actual return value with an expected return value.
- * Set the ret_flg=0 for TRUE cases and the tst_isw*() will check
- * the non-zero value.
- *
- * { { WEOF }, { 0,0,1,0 } },
- * | |
- * | ret_val: an expected return value
- * ret_flg: if 1, compare an actual return value with the
- * ret_val; if 0, the test program checks
- * the actual return value.
- *
- * CAUTION: if a charclass is invalid, the test function gives
- * towctrans() an invalid wctrans object instead of a return value
- * from wctrans() which is supposed to be 0.
- */
-
-TST_TOWCTRANS tst_towctrans_loc [] = {
- {
- { Ttowctrans, TST_LOC_C },
- {
-#ifdef SHOJI_IS_RIGHT
- { { 0x0010, "xxxxxxx" }, { EINVAL,1,0x0010 } },
-#else
- { { 0x0010, "xxxxxxx" }, { 0, 1,0x0010 } },
-#endif
- { { 0x007F, "tolower" }, { 0, 1,0x007F } },
- { { 0x0061, "toupper" }, { 0, 1,0x0041 } },
- { { 0x0041, "tolower" }, { 0, 1,0x0061 } },
- { .is_last = 1 }
- }
- },
- {
- { Ttowctrans, TST_LOC_de },
- {
-#ifdef SHOJI_IS_RIGHT
- { { 0x0010, "tojkata" }, { EINVAL,1,0x0010 } },
-#else
- { { 0x0010, "tojkata" }, { 0, 1,0x0010 } },
-#endif
- { { 0x0080, "tolower" }, { 0, 1,0x0080 } },
- { { 0x00EC, "toupper" }, { 0, 1,0x00CC } },
- { { 0x00CC, "tolower" }, { 0, 1,0x00EC } },
- { .is_last = 1 }
- }
- },
- {
- { Ttowctrans, TST_LOC_enUS },
- {
-#ifdef SHOJI_IS_RIGHT
- { { 0x0010, "xxxxxxx" }, { EINVAL,1,0x0010 } },
-#else
- { { 0x0010, "xxxxxxx" }, { 0, 1,0x0010 } },
-#endif
- { { 0x007F, "tolower" }, { 0, 1,0x007F } },
- { { 0x0061, "toupper" }, { 0, 1,0x0041 } },
- { { 0x0041, "tolower" }, { 0, 1,0x0061 } },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Ttowctrans, TST_LOC_eucJP },
-#else
- { Ttowctrans, TST_LOC_ja_UTF8 },
-#endif
- {
- { { 0xFF21, "tolower" }, { 0, 1,0xFF41 } },
- { { 0xFF41, "toupper" }, { 0, 1,0xFF21 } },
- { { 0x30A1, "tojhira" }, { 0, 1,0x3041 } },
- { { 0x3041, "tojkata" }, { 0, 1,0x30A1 } },
- { .is_last = 1 }
- }
- },
- {
- { Ttowctrans, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_towlower.c b/test/locale-mbwc/dat_towlower.c
deleted file mode 100644
index b6dd275..0000000
--- a/test/locale-mbwc/dat_towlower.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_towlower.c
- *
- * ISW*: int towlower (wint_t wc);
- */
-
-
-#include "dat_tow-funcs.h"
-
-
-TST_TOW_LOC (LOWER, lower) = {
-
- { TST_TOW_REC (de, lower)
- {
- { { WEOF }, { 0, 1, (wint_t)-1 } },
- { { 0x0080 }, { 0, 1, 0x0080 } },
- { { 0x00CC }, { 0, 1, 0x00EC } },
- { { 0x00EC }, { 0, 1, 0x00EC } },
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_TOW_REC (enUS, lower)
- {
- { { WEOF }, { 0, 1, (wint_t)-1 } },
- { { 0x007F }, { 0, 1, 0x007F } },
- { { 0x0041 }, { 0, 1, 0x0061 } },
- { { 0x0061 }, { 0, 1, 0x0061 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_TOW_REC (eucJP, lower)
-#else
- { TST_TOW_REC (ja_UTF8, lower)
-#endif
- {
- { { 0x007F }, { 0, 1, 0x007F } },
- { { 0x0080 }, { 0, 1, 0x0080 } },
- { { 0xFF21 }, { 0, 1, 0xFF41 } },
- { { 0xFF41 }, { 0, 1, 0xFF41 } },
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_TOW_REC (end, lower) }
-};
diff --git a/test/locale-mbwc/dat_towupper.c b/test/locale-mbwc/dat_towupper.c
deleted file mode 100644
index 704ad44..0000000
--- a/test/locale-mbwc/dat_towupper.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_towupper.c
- *
- * ISW*: int towupper (wint_t wc);
- */
-
-
-#include "dat_tow-funcs.h"
-
-
-TST_TOW_LOC (UPPER, upper) = {
-
- { TST_TOW_REC (de, upper)
- {
- { { WEOF }, { 0, 1, (wint_t)-1 } },
- { { 0x0080 }, { 0, 1, 0x0080 } },
- { { 0x00EC }, { 0, 1, 0x00CC } },
- { { 0x00CC }, { 0, 1, 0x00CC } },
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_TOW_REC (enUS, upper)
- {
- { { WEOF }, { 0, 1, (wint_t)-1 } },
- { { 0x0080 }, { 0, 1, 0x0080 } },
- { { 0x0041 }, { 0, 1, 0x0041 } },
- { { 0x0061 }, { 0, 1, 0x0041 } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { TST_TOW_REC (eucJP, upper)
-#else
- { TST_TOW_REC (ja_UTF8, upper)
-#endif
- {
- { { WEOF }, { 0, 1, (wint_t)-1 } },
- { { 0x007F }, { 0, 1, 0x007F } },
- { { 0xFF41 }, { 0, 1, 0xFF21 } },
- { { 0xFF21 }, { 0, 1, 0xFF21 } },
- { .is_last = 1 } /* Last element. */
- }
- },
- { TST_TOW_REC (end, upper) }
-};
diff --git a/test/locale-mbwc/dat_wcrtomb.c b/test/locale-mbwc/dat_wcrtomb.c
deleted file mode 100644
index 055f7b0..0000000
--- a/test/locale-mbwc/dat_wcrtomb.c
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcrtomb.c
- *
- * WCRTOMB: intwcrtomb (char *s, wchar_t wc, mbstate_t *ps);
- *
- */
-
-TST_WCRTOMB tst_wcrtomb_loc [] = {
- {
- { Twcrtomb, TST_LOC_de },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x00FC, 0,0 },
- /*expect*/ { 0, 1,1, "�" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x00D6, 0,0 },
- /*expect*/ { 0, 1,1, "�" },
- },
- /* #03 : error case */
- { /*input.*/ { 1, 0xFFA1, 0,0 },
- /*expect*/ { EILSEQ,1,-1, "" },
- },
- /* #04 : */
- { /*input.*/ { 0, 0x0041, 0,0 },
- /*expect*/ { 0, 1,1, "" },
- },
- /* #05 : */
- { /*input.*/ { 0, 0x0092, 0,0 },
- /*expect*/ { 0, 1,1, "" },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcrtomb, TST_LOC_enUS },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x0041, 0,0 },
- /*expect*/ { 0, 1,1, "A" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x0042, 0,0 },
- /*expect*/ { 0, 1,1, "B" },
- },
- /* #03 : error case */
- /* <WAIVER> x 2 */
- { /*input.*/ { 1, 0x0092, 0,0 }, /* assume ascii */
- /*expect*/ { EILSEQ,1,-1, "" },
- },
- /* #04 : */
- { /*input.*/ { 0, 0x0041, 0,0 },
- /*expect*/ { 0, 1,1, "" },
- },
- /* #05 : */
- { /*input.*/ { 0, 0x0092, 0,0 },
- /*expect*/ { 0, 1,1, "" },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Twcrtomb, TST_LOC_eucJP },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x3042, 0,0 },
- /*expect*/ { 0, 1,2, "\244\242" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x3044, 0,0 },
- /*expect*/ { 0, 1,2, "\244\244" },
- },
- /* #03 : normal case */
- { /*input.*/ { 1, 0x008E, 0,0 },
- /*expect*/ { EILSEQ, 1,-1, "" },
- },
- /* #04 : */
- { /*input.*/ { 0, 0x3042, 0,0 },
- /*expect*/ { 0, 0,0, "" },
- },
- /* #05 : */
- { /*input.*/ { 0, 0x008E, 0,0 },
- /*expect*/ { 0, 0,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Twcrtomb, TST_LOC_ja_UTF8 },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x3042, 0,0 },
- /*expect*/ { 0, 1,3, "\343\201\202" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x3044, 0,0 },
- /*expect*/ { 0, 1,3, "\343\201\204" },
- },
- /* #03 : normal case */
- { /*input.*/ { 1, 0x008E, 0,0 },
- /*expect*/ { EILSEQ, 1,-1, "" },
- },
- /* #04 : */
- { /*input.*/ { 0, 0x3042, 0,0 },
- /*expect*/ { 0, 0,0, "" },
- },
- /* #05 : */
- { /*input.*/ { 0, 0x008E, 0,0 },
- /*expect*/ { 0, 0,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Twcrtomb, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcscat.c b/test/locale-mbwc/dat_wcscat.c
deleted file mode 100644
index f54e72d..0000000
--- a/test/locale-mbwc/dat_wcscat.c
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcscat.c
- *
- * WCSCAT: wchar_t *wcscat (wchar_t *ws1, wchar_t *ws2)
- */
-
-/* NOTE:
- Since this is not a locale sensitive function,
- it doesn't make sense to test the function on some
- locales. Better make different test cases for each locale ...
- (Also some wc* functions are not locale sensitive.)
-*/
-
-
-TST_WCSCAT tst_wcscat_loc [] = {
-
- {
- {Twcscat, TST_LOC_de},
- {
- /* 1 */
- {{{ 0x00C1,0x00C2,0x0000 },
- { 0x00C3,0x00C4,0x0000 }, },
- { 0, 0, 0,
- { 0x00C1,0x00C2,0x00C3,0x00C4,0x0000 } },
- },
- /* 2 */
- {{{ 0x0001,0x0002,0x0000 },
- { 0x0003,0x0004,0x0000 }, },
- { 0, 0, 0,
- { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
- },
- /* 3 */
- {{{ 0x0000 },
- { 0x00C3,0x00C4,0x0000 }, },
- { 0, 0, 0,
- { 0x00C3,0x00C4,0x0000 } },
- },
- /* 4 */
- {{{ 0x0001,0xFFFF,0x0000 },
- { 0x0080,0x0090,0x0000 }, },
- { 0, 0, 0,
- { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
- {Twcscat, TST_LOC_enUS},
- {
- /* 1 */
- {{{ 0x0041,0x0042,0x0000 },
- { 0x0043,0x0044,0x0000 }, },
- { 0, 0, 0,
- { 0x0041,0x0042,0x0043,0x0044,0x0000 } },
- },
- /* 2 */
- {{{ 0x0001,0x0002,0x0000 },
- { 0x0003,0x0004,0x0000 }, },
- { 0, 0, 0,
- { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
- },
- /* 3 */
- {{{ 0x0000 },
- { 0x0043,0x0044,0x0000 }, },
- { 0, 0, 0,
- { 0x0043,0x0044,0x0000 } },
- },
- /* 4 */
- {{{ 0x0001,0xFFFF,0x0000 },
- { 0x0080,0x0090,0x0000 }, },
- { 0, 0, 0,
- { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
-#if 0
- {Twcscat, TST_LOC_eucJP},
-#else
- {Twcscat, TST_LOC_ja_UTF8},
-#endif
- {
- /* 1 */
- {{{ 0x30A2,0x74E0,0x0000 },
- { 0xFF71,0x0041,0x0000 }, },
- { 0, 0, 0,
- { 0x30A2,0x74E0,0xFF71,0x0041,0x0000 } },
- },
- /* 2 */
- {{{ 0x0001,0x0002,0x0000 },
- { 0x0003,0x0004,0x0000 }, },
- { 0, 0, 0,
- { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
- },
- /* 3 */
- {{{ 0x30A2,0xFF71,0x0000 },
- { 0x0000 }, },
- { 0, 0, 0,
- { 0x30A2,0xFF71,0x0000 } },
- },
- /* 4 */
- {{{ 0x0001,0xFFFF,0x0000 },
- { 0x0080,0x0090,0x0000 }, },
- { 0, 0, 0,
- { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
- {Twcscat, TST_LOC_end}
- }
-};
diff --git a/test/locale-mbwc/dat_wcschr.c b/test/locale-mbwc/dat_wcschr.c
deleted file mode 100644
index aa355e9..0000000
--- a/test/locale-mbwc/dat_wcschr.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcschr.c
- *
- * WCSCHR: wchar_t *wcschr (const wchar_t *ws, wchar_t wc);
- */
-
-TST_WCSCHR tst_wcschr_loc [] = {
-
- { { Twcschr, TST_LOC_de },
- {
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C0 }, /* #1 */
- /*expect*/ { 0,1,(wchar_t *)NULL },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C1 }, /* #2 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C2 }, /* #3 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x00C3 }, /* #4 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0x0000 }, /* #5 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x00C1 }, /* #6 */
- /*expect*/ { 0,1,(wchar_t *)NULL },
- },
- { /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x0000 }, /* #7 */
- /*expect*/ { 0,0,0 },
- },
- { .is_last = 1 }
- }
- },
- { { Twcschr, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0040 }, /* #1 */
- /*expect*/ { 0,1,(wchar_t *)NULL },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0041 }, /* #2 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0042 }, /* #3 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0043 }, /* #4 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 0x0000 }, /* #5 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0041 }, /* #6 */
- /*expect*/ { 0,1,(wchar_t *)NULL },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0000 }, /* #7 */
- /*expect*/ { 0,0,0 },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twcschr, TST_LOC_eucJP },
-#else
- { { Twcschr, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3040 }, /* #1 */
- /*expect*/ { 0,1,(wchar_t *)NULL },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3041 }, /* #2 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3042 }, /* #3 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x3043 }, /* #4 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0x0000 }, /* #5 */
- /*expect*/ { 0,0,0 },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x3041 }, /* #6 */
- /*expect*/ { 0,1,(wchar_t *)NULL },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x0000 }, /* #7 */
- /*expect*/ { 0,0,0 },
- },
- { .is_last = 1 }
- }
- },
- { { Twcschr, TST_LOC_end } }
-};
diff --git a/test/locale-mbwc/dat_wcscmp.c b/test/locale-mbwc/dat_wcscmp.c
deleted file mode 100644
index a2da551..0000000
--- a/test/locale-mbwc/dat_wcscmp.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcscmp.c
- *
- * WCSCMP: int wcscmp (const wchar_t *ws1, const wchar_t *ws2);
- */
-
-/* NOTE:
- This is not a locale sensitive function and
- it may not make sence testing it for each locale ...
-*/
-
-
-TST_WCSCMP tst_wcscmp_loc [] = {
- {
- { Twcscmp, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x00D1,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x00D3,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D1,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x00D3,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D1,0x00D3,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x00D1,0x00D5,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D9,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x0000 },
- { 0x00D1,0x00D2,0x00D9,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D9,0x0000 },
- { 0x00D1,0x00D2,0x0000 }, }, /* #8 */
- /*expect*/ { 0,1,1, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcscmp, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x0041,0x0043,0x0000 },
- { 0x0000,0x0042,0x0043,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0041,0x0043,0x0000 },
- { 0x0000,0x0042,0x0043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0041,0x0041,0x0043,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x0041,0x0045,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0049,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0000 },
- { 0x0041,0x0042,0x0049,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0049,0x0000 },
- { 0x0041,0x0042,0x0000 }, }, /* #8 */
- /*expect*/ { 0,1,1, },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcscmp, TST_LOC_eucJP},
-#else
- { Twcscmp, TST_LOC_ja_UTF8},
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x3041,0x3043,0x0000 },
- { 0x0000,0x3042,0x3043,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3041,0x3043,0x0000 },
- { 0x0000,0x3042,0x3043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x3041,0x3041,0x3043,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x3041,0x3045,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3049,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x0000 },
- { 0x3041,0x3042,0x3049,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,-1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3049,0x0000 },
- { 0x3041,0x3042,0x0000 }, }, /* #8 */
- /*expect*/ { 0,1,1, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcschr, TST_LOC_end}
- }
-};
diff --git a/test/locale-mbwc/dat_wcscoll.c b/test/locale-mbwc/dat_wcscoll.c
deleted file mode 100644
index a9733ad..0000000
--- a/test/locale-mbwc/dat_wcscoll.c
+++ /dev/null
@@ -1,210 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcscoll.c
- *
- * WCSCOLL: int wcscoll (const wchar_t *ws1, const wchar_t *ws2);
- */
-
-/*
- * CAUTION:
- * When LC_COLLATE (or LC_ALL) is set for ja_JP.EUC,
- * wcscoll() core-dumps for big values such as 0x3041
- * (0x0041 is okay) in glibc 2.1.2.
- *
- * NOTE:
- * a) When 0 is expected as a return value, set ret_flg=1.
- * - the return value is compared with an expected value: ret_val.
- * b) When a positive value is expected as a return value,
- * set ret_flg=0 and set cmp_flg=+1.
- * - the return value is not compared with the expected value
- * (can not be compared); instead, the test program checks
- * if the return value is positive when cmp_flg=+1.
- * c) When a negative value is expected as a return value,
- * ......
- * d) When data contains invalid values, set err_val to the expected errno.
- * Set ret_flg=0 and cmp_flg=0 so that it doesn't compare
- * the return value with an expected value or doesn't check
- * the sign of the return value.
- *
- *
- * -------------------------------------------
- * CASE err_val ret_flg ret_val cmp_flg
- * -------------------------------------------
- * a) 0 1 0 0
- * b) 0 0 0 +1
- * c) 0 0 0 -1
- * d) EINVAL 0 0 0
- * -------------------------------------------
- */
-
-
-TST_WCSCOLL tst_wcscoll_loc [] = {
-
- { { Twcscoll, TST_LOC_de },
- {
- { /*input.*/ { { 0x00E1,0x00E2,0x00E3,0x0000 },
- { 0x00E1,0x00E2,0x00E3,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, 0, },
- },
- { /*input.*/ { { 0x0000,0x00E1,0x00E3,0x0000 },
- { 0x0000,0x00E2,0x00E3,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, 0, },
- },
- { /*input.*/ { { 0x00E1,0x00E1,0x00E3,0x0000 },
- { 0x0000,0x00E2,0x00E3,0x0000 }, }, /* #3 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x0000,0x00E2,0x00E3,0x0000 },
- { 0x00E1,0x00E1,0x00E3,0x0000 }, }, /* #4 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x00E1,0x0042,0x00E3,0x0000 },
- { 0x00E1,0x0061,0x00E3,0x0000 }, }, /* #5 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x00E1,0x0061,0x00E3,0x0000 },
- { 0x00E1,0x0042,0x00E3,0x0000 }, }, /* #6 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x00E1,0x00E2,0x0000 },
- { 0x00E1,0x00E2,0x00E9,0x0000 }, }, /* #7 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x00E1,0x00E2,0x00E9,0x0000 },
- { 0x00E1,0x00E2,0x0000 }, }, /* #8 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x00E1,0x0092,0x00E9,0x0000 },
- { 0x00E1,0x008E,0x00E9,0x0000 }, }, /* #9 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x00E1,0x008E,0x00E9,0x0000 },
- { 0x00E1,0x0092,0x00E9,0x0000 }, }, /* #10 */
- /*expect*/ { 0,0,0, -1, },
- },
- { .is_last = 1 }
- }
- },
- { { Twcscoll, TST_LOC_en },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, 0, },
- },
- { /*input.*/ { { 0x0000,0x0041,0x0043,0x0000 },
- { 0x0000,0x0042,0x0043,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, 0, },
- },
- { /*input.*/ { { 0x0041,0x0041,0x0043,0x0000 },
- { 0x0000,0x0042,0x0043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0041,0x0041,0x0043,0x0000 }, }, /* #4 */
- /*expect*/ { 0,0,0, -1, },
- },
-#ifdef SHOJI_IS_RIGHT
- /* <WAIVER> */ /* assume ascii */
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0061,0x0043,0x0000 }, }, /* #5 */
- /*expect*/ { 0,0,0, -1, },
- },
- /* <WAIVER> */ /* assume ascii */
- { /*input.*/ { { 0x0041,0x0061,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #6 */
- /*expect*/ { 0,0,0, +1, },
- },
-#else
- /* XXX Correct order is lowercase before uppercase. */
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0061,0x0043,0x0000 }, }, /* #5 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x0041,0x0061,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #6 */
- /*expect*/ { 0,0,0, -1, },
- },
-#endif
- { /*input.*/ { { 0x0041,0x0042,0x0000 },
- { 0x0041,0x0042,0x0049,0x0000 }, }, /* #7 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0049,0x0000 },
- { 0x0041,0x0042,0x0000 }, }, /* #8 */
- /*expect*/ { 0,0,0, +1, },
- },
-#ifdef SHOJI_IS_RIGHT
- { /*input.*/ { { 0x0041,0x0092,0x0049,0x0000 },
- { 0x0041,0x008E,0x0049,0x0000 }, }, /* #9 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x0041,0x008E,0x0049,0x0000 },
- { 0x0041,0x0092,0x0049,0x0000 }, }, /* #10 */
- /*expect*/ { 0,0,0, -1, },
- },
-#else
- /* Do not assume position of character out of range. */
- { /*input.*/ { { 0x0041,0x0092,0x0049,0x0000 },
- { 0x0041,0x008E,0x0049,0x0000 }, }, /* #9 */
- /*expect*/ { 0,0,0, 0, },
- },
- { /*input.*/ { { 0x0041,0x008E,0x0049,0x0000 },
- { 0x0041,0x0092,0x0049,0x0000 }, }, /* #10 */
- /*expect*/ { 0,0,0, 0, },
- },
-#endif
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twcscoll, TST_LOC_eucJP },
-#else
- { { Twcscoll, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, 0, },
- },
- { /*input.*/ { { 0x0000,0x3041,0x3043,0x0000 },
- { 0x0000,0x3042,0x3043,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, 0, },
- },
- { /*input.*/ { { 0x3041,0x3041,0x3043,0x0000 },
- { 0x0000,0x3042,0x3043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x3041,0x3041,0x3043,0x0000 }, }, /* #4 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x3041,0x0042,0x3043,0x0000 },
- { 0x3041,0x0061,0x3043,0x0000 }, }, /* #5 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x3041,0x0061,0x3043,0x0000 },
- { 0x3041,0x0042,0x3043,0x0000 }, }, /* #6 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0xFF71,0x0000 },
- { 0x3041,0x3042,0x30A2,0x0000 }, }, /* #7 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x30A2,0x0000 },
- { 0x3041,0x3042,0xFF71,0x0000 }, }, /* #8 */
- /*expect*/ { 0,0,0, +1, },
- },
- { /*input.*/ { { 0x30FF,0x3092,0x3049,0x0000 },
- { 0x3041,0x308E,0x3049,0x0000 }, }, /* #9 */
- /*expect*/ { 0,0,0, -1, },
- },
- { /*input.*/ { { 0x3041,0x308E,0x3049,0x0000 },
- { 0x30FF,0x3092,0x3049,0x0000 }, }, /* #10 */
- /*expect*/ { 0,0,0, +1, },
- },
- { .is_last = 1 }
- }
- },
- { { Twcscoll, TST_LOC_end } }
-};
diff --git a/test/locale-mbwc/dat_wcscpy.c b/test/locale-mbwc/dat_wcscpy.c
deleted file mode 100644
index b376bfc..0000000
--- a/test/locale-mbwc/dat_wcscpy.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcscpy.c
- *
- * WCSCPY: wchar_t *wcscpy (wchar_t *ws1, const wchar_t *ws2);
- */
-
-TST_WCSCPY tst_wcscpy_loc [] = {
-
- { { Twcscpy, TST_LOC_de },
- {
- { { { 0x00F1,0x00F2,0x00F3,0x0000 }, }, /* 1 */
- { 0,0,0, { 0x00F1,0x00F2,0x00F3,0x0000, } }, },
- { { { 0x0000,0x00F2,0x00F3,0x0000 }, }, /* 2 */
- { 0,0,0, { 0x0000, } }, },
- { .is_last = 1 }
- }
- },
- { { Twcscpy, TST_LOC_enUS },
- {
- { { { 0x0041,0x0082,0x0043,0x0000 }, }, /* 1 */
- { 0,0,0, { 0x0041,0x0082,0x0043,0x0000, } }, },
- { { { 0x0000,0x0082,0x0043,0x0000 }, }, /* 2 */
- { 0,0,0, { 0x0000, } }, },
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twcscpy, TST_LOC_eucJP },
-#else
- { { Twcscpy, TST_LOC_ja_UTF8 },
-#endif
- {
- { { { 0x3041,0x0092,0x3043,0x0000 }, }, /* 1 */
- { 0,0,0, { 0x3041,0x0092,0x3043,0x0000, } }, },
- { { { 0x0000,0x0092,0x3043,0x0000 }, }, /* 2 */
- { 0,0,0, { 0x0000, } }, },
- { .is_last = 1 }
- }
- },
- { { Twcscpy, TST_LOC_end }}
-
-};
diff --git a/test/locale-mbwc/dat_wcscspn.c b/test/locale-mbwc/dat_wcscspn.c
deleted file mode 100644
index f6eb0c3..0000000
--- a/test/locale-mbwc/dat_wcscspn.c
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcscspn.c
- *
- * WCSCSPN: size_t wcscspn (const wchar_t *ws1, const wchar_t *ws2);
- */
-
-
-TST_WCSCSPN tst_wcscspn_loc [] = {
-
- { { Twcscspn, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D3,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D3,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D3,0x00D4,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D3,0x00D4,0x00D5,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x000 }, }, /* #8 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x00D3,0x0000 }, }, /* #9 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x0000 },
- { 0x00D1,0x00D3,0x00D4,0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twcscspn, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0043,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0043,0x0044,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0043,0x0044,0x0045,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0042,0x000 }, }, /* #8 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0000,0x0042,0x0043,0x0000 }, }, /* #9 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0000 },
- { 0x0041,0x0043,0x0044,0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twcscspn, TST_LOC_eucJP },
-#else
- { { Twcscspn, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x0043,0x0000 },
- { 0x3041,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x0043,0x0000 },
- { 0x3042,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x3044,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3043,0x3044,0x3045,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x3042,0x0000 }, }, /* #8 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x0000,0x3042,0x3043,0x0000 }, }, /* #9 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x0000 },
- { 0x3041,0x3043,0x3044,0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twcscspn, TST_LOC_end }}
-};
diff --git a/test/locale-mbwc/dat_wcslen.c b/test/locale-mbwc/dat_wcslen.c
deleted file mode 100644
index 7bb2c89..0000000
--- a/test/locale-mbwc/dat_wcslen.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_wcslen.c
- *
- * WCSLEN: size_t wcslen (const wchar_t *ws);
- */
-
-
-/*
- * NOTE:
- *
- * a header in each expected data:
- *
- * int err_val; ... expected value for errno
- * <typ> ret_flg; ... set ret_flg=1 to compare an expected
- * value with an actual value
- * <typ> ret_val; ... expected value for return
- */
-
-
-TST_WCSLEN tst_wcslen_loc [] = {
-
- { { Twcslen, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 } }, /* #01 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x0000 } }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twcslen, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 } }, /* #01 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x0000 } }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twcslen, TST_LOC_eucJP },
-#else
- { { Twcslen, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 } }, /* #01 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x0000 } }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twcslen, TST_LOC_end }}
-};
diff --git a/test/locale-mbwc/dat_wcsncat.c b/test/locale-mbwc/dat_wcsncat.c
deleted file mode 100644
index 9d1e46b..0000000
--- a/test/locale-mbwc/dat_wcsncat.c
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcsncat.c
- *
- * WCSNCAT: wchar_t *wcsncat (wchar_t *ws1, wchar_t *ws2, size_t n);
- */
-
-
-/*
- * Note:
- * A terminating null wide chararacter is always appended to
- * the result: ws1.
- *
- */
-
-
-TST_WCSNCAT tst_wcsncat_loc [] = {
- {
- {Twcsncat, TST_LOC_de},
- {
- /* 1 */
- {
- /* Input: */
- {{ 0x00D1,0x00D2,0x0000 },
- { 0x00D3,0x00D4,0x0000 }, 3 },
- /* Expect: */
- { 0, 0, 0,
- { 0x00D1,0x00D2,0x00D3,0x00D4,0x0000 } },
- },
- /* 2 */
- {{{ 0x00D1,0x00D2,0x0000 },
- { 0x00D3,0x00D4,0x0000 }, 2 },
- { 0, 0, 0,
- { 0x00D1,0x00D2,0x00D3,0x00D4,0x0000 } },
- },
- /* 3 */
- {{{ 0x00E1,0x00E2,0x0000 },
- { 0x00E3,0x00E4,0x0000 }, 1 },
- { 0, 0, 0,
- { 0x00E1,0x00E2,0x00E3,0x0000 } },
- },
- /* 4 */
- {{{ 0x00E1,0x00E2,0x0000 },
- { 0x00E3,0x00E4,0x0000 }, 0 },
- { 0, 0, 0,
- { 0x00E1,0x00E2,0x0000 } },
- },
- /* 5 */
- {{{ 0x0000 },
- { 0x00D3,0x00D4,0x0000 }, 3 },
- { 0, 0, 0,
- { 0x00D3,0x00D4,0x0000 } },
- },
- /* 6 */
- {{{ 0x00E1,0x00E2,0x0000 },
- { 0x0000 }, 3 },
- { 0, 0, 0,
- { 0x00E1,0x00E2,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
- {Twcsncat, TST_LOC_enUS},
- {
- /* 1 */
- {
- /* Input: */
- {{ 0x0041,0x0042,0x0000 },
- { 0x0043,0x0044,0x0000 }, 3 },
- /* Expect: */
- { 0, 0, 0,
- { 0x0041,0x0042,0x0043,0x0044,0x0000 } },
- },
- /* 2 */
- {{{ 0x0041,0x0042,0x0000 },
- { 0x0043,0x0044,0x0000 }, 2 },
- { 0, 0, 0,
- { 0x0041,0x0042,0x0043,0x0044,0x0000 } },
- },
- /* 3 */
- {{{ 0x0051,0x0052,0x0000 },
- { 0x0053,0x0054,0x0000 }, 1 },
- { 0, 0, 0,
- { 0x0051,0x0052,0x0053,0x0000 } },
- },
- /* 4 */
- {{{ 0x0051,0x0052,0x0000 },
- { 0x0053,0x0054,0x0000 }, 0 },
- { 0, 0, 0,
- { 0x0051,0x0052,0x0000 } },
- },
- /* 5 */
- {{{ 0x0000 },
- { 0x0043,0x0044,0x0000 }, 3 },
- { 0, 0, 0,
- { 0x0043,0x0044,0x0000 } },
- },
- /* 6 */
- {{{ 0x0051,0x0052,0x0000 },
- { 0x0000 }, 3 },
- { 0, 0, 0,
- { 0x0051,0x0052,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
-#if 0
- {Twcsncat, TST_LOC_eucJP},
-#else
- {Twcsncat, TST_LOC_ja_UTF8},
-#endif
- {
- /* 1 */
- {{{ 0x3041,0x3042,0x0000 },
- { 0x3043,0x3044,0x0000 }, 3 },
- { 0, 0, 0,
- { 0x3041,0x3042,0x3043,0x3044,0x0000 } },
- },
- /* 2 */
- {{{ 0x30A2,0x30A3,0x0000 },
- { 0xFF71,0xFF72,0x0000 }, 2 },
- { 0, 0, 0,
- { 0x30A2,0x30A3,0xFF71,0xFF72,0x0000 } },
- },
- /* 3 */
- {{{ 0x3051,0x3052,0x0000 },
- { 0x3053,0x3054,0x0000 }, 1 },
- { 0, 0, 0,
- { 0x3051,0x3052,0x3053,0x0000 } },
- },
- /* 4 */
- {{{ 0x3051,0x3052,0x0000 },
- { 0x3053,0x3054,0x0000 }, 0 },
- { 0, 0, 0,
- { 0x3051,0x3052,0x0000 } },
- },
- /* 5 */
- {{{ 0x0000 },
- { 0x3043,0x3044,0x0000 }, 3 },
- { 0, 0, 0,
- { 0x3043,0x3044,0x0000 } },
- },
- /* 6 */
- {{{ 0x3051,0x3052,0x0000 },
- { 0x0000 }, 3 },
- { 0, 0, 0,
- { 0x3051,0x3052,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
- {Twcsncat, TST_LOC_end}
- }
-};
diff --git a/test/locale-mbwc/dat_wcsncmp.c b/test/locale-mbwc/dat_wcsncmp.c
deleted file mode 100644
index 5c59631..0000000
--- a/test/locale-mbwc/dat_wcsncmp.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcsncmp.c
- *
- * WCSNCMP: int wcsncmp (const wchar_t *ws1, const wchar_t *ws2,
- * size_t n);
- */
-
-TST_WCSNCMP tst_wcsncmp_loc [] = {
- {
- { Twcsncmp, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, 4 }, /* #01 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, 3 }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D1,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, 2 }, /* #03 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D0,0x00D2,0x00D3,0x0000 }, 0 }, /* #04 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x00D1,0x0000 }, 3 }, /* #05 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x00D3,0x0000 }, 3 }, /* #06 */
- /*expect*/ { 0,1,0x00D1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D9,0x0000 }, 2 }, /* #07 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D9,0x0000 }, 3 }, /* #08 */
- /*expect*/ { 0,1,-0x0006, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x0000 }, 4 }, /* #09 */
- /*expect*/ { 0,1,0x00D3, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsncmp, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, 4 }, /* #01 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, 3 }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0041,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, 2 }, /* #03 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0040,0x0042,0x0043,0x0000 }, 0 }, /* #04 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0000,0x0042,0x0041,0x0000 }, 3 }, /* #05 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0000,0x0042,0x0043,0x0000 }, 3 }, /* #06 */
- /*expect*/ { 0,1,0x0041, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0049,0x0000 }, 2 }, /* #07 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0049,0x0000 }, 3 }, /* #08 */
- /*expect*/ { 0,1,-0x0006, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0000 }, 4 }, /* #09 */
- /*expect*/ { 0,1,0x0043, },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcsncmp, TST_LOC_eucJP },
-#else
- { Twcsncmp, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, 4 }, /* #01 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, 3 }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3041,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, 2 }, /* #03 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3040,0x3042,0x3043,0x0000 }, 0 }, /* #04 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x0000,0x3042,0x3041,0x0000 }, 3 }, /* #05 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x0000,0x3042,0x3043,0x0000 }, 3 }, /* #06 */
- /*expect*/ { 0,1,0x3041, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3049,0x0000 }, 2 }, /* #07 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3049,0x0000 }, 3 }, /* #08 */
- /*expect*/ { 0,1,-0x0006, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x0000 }, 4 }, /* #09 */
- /*expect*/ { 0,1,0x3043, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsncmp, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcsncpy.c b/test/locale-mbwc/dat_wcsncpy.c
deleted file mode 100644
index 7a65783..0000000
--- a/test/locale-mbwc/dat_wcsncpy.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcsncpy.c
- *
- * WCSNCPY: wchar_t *wcsncpy (wchar_t *ws1, const wchar_t *ws2,
- * size_t n);
- */
-
-
-/* Note:
- *
- * An initial value of ws1 in the test program is defined as:
- *
- * #define WCSNUM_NCPY 7
- * wchar_t ws1 [WCSSIZE] = { 0x9999, 0x9999, 0x9999, 0x9999,
- * 0x9999, 0x9999, 0x0000 };
- * */
-
-
-TST_WCSNCPY tst_wcsncpy_loc [] = {
- {
- {Twcsncpy, TST_LOC_de},
- {
- /* 1 */
- {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 6 },
- { 0,0,0, { 0x00D1,0x00D2,0x00D3,0x0000,0x0000,0x0000,0x0000 } },
- },
- /* 2 */
- {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 5 },
- { 0,0,0, { 0x00D1,0x00D2,0x00D3,0x0000,0x0000,0x9999,0x0000 } },
- },
- /* 3 */
- {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 3 },
- { 0,0,0, { 0x00D1,0x00D2,0x00D3,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 4 */
- {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 2 },
- { 0,0,0, { 0x00D1,0x00D2,0x9999,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 5 */
- {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 0 },
- { 0,0,0, { 0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 6 */
- {{ { 0x0000,0x00D2,0x00D3,0x0000 }, 3 },
- { 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
- {Twcsncpy, TST_LOC_enUS},
- {
- /* 1 */
- {{ { 0x0041,0x0042,0x0043,0x0000 }, 6 },
- { 0,0,0, { 0x0041,0x0042,0x0043,0x0000,0x0000,0x0000,0x0000 } },
- },
- /* 2 */
- {{ { 0x0041,0x0042,0x0043,0x0000 }, 5 },
- { 0,0,0, { 0x0041,0x0042,0x0043,0x0000,0x0000,0x9999,0x0000 } },
- },
- /* 3 */
- {{ { 0x0041,0x0042,0x0043,0x0000 }, 3 },
- { 0,0,0, { 0x0041,0x0042,0x0043,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 4 */
- {{ { 0x0041,0x0042,0x0043,0x0000 }, 2 },
- { 0,0,0, { 0x0041,0x0042,0x9999,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 5 */
- {{ { 0x0041,0x0042,0x0043,0x0000 }, 0 },
- { 0,0,0, { 0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 6 */
- {{ { 0x0000,0x0042,0x0043,0x0000 }, 3 },
- { 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
-#if 0
- {Twcsncpy, TST_LOC_eucJP},
-#else
- {Twcsncpy, TST_LOC_ja_UTF8},
-#endif
- {
- /* 1 */
- {{ { 0x3041,0x3042,0x3043,0x0000 }, 6 },
- { 0,0,0, { 0x3041,0x3042,0x3043,0x0000,0x0000,0x0000,0x0000 } },
- },
- /* 2 */
- {{ { 0x3041,0x3042,0x3043,0x0000 }, 5 },
- { 0,0,0, { 0x3041,0x3042,0x3043,0x0000,0x0000,0x9999,0x0000 } },
- },
- /* 3 */
- {{ { 0x3041,0x3042,0x3043,0x0000 }, 3 },
- { 0,0,0, { 0x3041,0x3042,0x3043,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 4 */
- {{ { 0x3041,0x3042,0x3043,0x0000 }, 2 },
- { 0,0,0, { 0x3041,0x3042,0x9999,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 5 */
- {{ { 0x3041,0x3042,0x3043,0x0000 }, 0 },
- { 0,0,0, { 0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0000 } },
- },
- /* 6 */
- {{ { 0x0000,0x3042,0x3043,0x0000 }, 3 },
- { 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
- },
- {.is_last = 1}
- }
- },
- {
- {Twcsncpy, TST_LOC_end}
- }
-};
diff --git a/test/locale-mbwc/dat_wcspbrk.c b/test/locale-mbwc/dat_wcspbrk.c
deleted file mode 100644
index 471515e..0000000
--- a/test/locale-mbwc/dat_wcspbrk.c
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcspbrk.c
- *
- * WCSSTR: wchar_t *wcspbrk (const wchar_t *ws1, const wchar_t *ws2);
- */
-
-
-/*
- * NOTE:
- * This is not a locale sensitive function.
- * So those data in each locale doesn't make sense
- * ... (redundant test cases)
- */
-
-
-TST_WCSPBRK tst_wcspbrk_loc [] = {
- {
- { Twcspbrk, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x0000 }, }, /* #01 */
- /*expect*/ { 0,0,0, 0x00D1 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x0000 }, }, /* #02 */
- /*expect*/ { 0,0,0, 0x00D2 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D3,0x0000 }, }, /* #03 */
- /*expect*/ { 0,0,0, 0x00D3 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x0000 }, }, /* #04 */
- /*expect*/ { 0,0,0, 0x00D1 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D3,0x0000 }, }, /* #05 */
- /*expect*/ { 0,0,0, 0x00D2 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #06 */
- /*expect*/ { 0,0,0, 0x00D1 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D0,0x00D4,0x00D5,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D5,0x00D0,0x00D4,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x0000 }, }, /* #09 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcspbrk, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0000 }, }, /* #01 */
- /*expect*/ { 0,0,0, 0x0041 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0000 }, }, /* #02 */
- /*expect*/ { 0,0,0, 0x0042 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0043,0x0000 }, }, /* #03 */
- /*expect*/ { 0,0,0, 0x0043 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0000 }, }, /* #04 */
- /*expect*/ { 0,0,0, 0x0041 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0043,0x0000 }, }, /* #05 */
- /*expect*/ { 0,0,0, 0x0042 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #06 */
- /*expect*/ { 0,0,0, 0x0041 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0040,0x0044,0x0045,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0045,0x0040,0x0044,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0000 }, }, /* #09 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0041,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcspbrk, TST_LOC_eucJP },
-#else
- { Twcspbrk, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x0000 }, }, /* #01 */
- /*expect*/ { 0,0,0, 0x3041 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x0000 }, }, /* #02 */
- /*expect*/ { 0,0,0, 0x3042 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3043,0x0000 }, }, /* #03 */
- /*expect*/ { 0,0,0, 0x3043 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x0000 }, }, /* #04 */
- /*expect*/ { 0,0,0, 0x3041 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x0000 }, }, /* #05 */
- /*expect*/ { 0,0,0, 0x3042 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #06 */
- /*expect*/ { 0,0,0, 0x3041 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x3044,0x0000 }, }, /* #07 */
- /*expect*/ { 0,0,0, 0x3042 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3040,0x3041,0x3042,0x0000 }, }, /* #08 */
- /*expect*/ { 0,0,0, 0x3041 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x0000 }, }, /* #09 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x3041,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcspbrk, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcsrtombs.c b/test/locale-mbwc/dat_wcsrtombs.c
deleted file mode 100644
index f8adc6c..0000000
--- a/test/locale-mbwc/dat_wcsrtombs.c
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcsrtombs.c
- *
- * WCSTOMBS: size_t wcsrtombs (char *s, const wchar_t **ws,
- * size_t n, mbstate *ps)
- */
-
-
-/*
- * CAUTION:
- * Do not use a value 0x01 for string data. The test program
- * uses it.
- *
- */
-
-
-TST_WCSRTOMBS tst_wcsrtombs_loc [] = {
- {
- { Twcsrtombs, TST_LOC_de },
- {
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 0, 0, 0},
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 1, 0, 0 },
- /*expect*/ { 0,1,1, "�" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 2, 0, 0 },
- /*expect*/ { 0,1,2, "��" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 3, 0, 0 },
- /*expect*/ { 0,1,3, "���" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 4, 0, 0 },
- /*expect*/ { 0,1,3, "���" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,3, "���" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2, 0, 0 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 1, 0, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5, 0, 0 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsrtombs, TST_LOC_enUS },
- {
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 1, 0, 0 },
- /*expect*/ { 0,1,1, "A" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 2, 0, 0 },
- /*expect*/ { 0,1,2, "AB" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 3, 0, 0 },
- /*expect*/ { 0,1,3, "ABC" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 4, 0, 0 },
- /*expect*/ { 0,1,3, "ABC" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,3, "ABC" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2, 0, 0 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0041,0x0042,0x0043,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0041,0x0042,0x0043,0x0000 }, 1, 0, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0041,0x0042,0x0043,0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5, 0, 0 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Twcsrtombs, TST_LOC_eucJP },
- {
-
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 2, 0, 0 },
- /*expect*/ { 0,1,2, "\244\242" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 4, 0, 0 },
- /*expect*/ { 0,1,4, "\244\242\244\244" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 6, 0, 0 },
- /*expect*/ { 0,1,6, "\244\242\244\244\216\263" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 7, 0, 0 },
- /*expect*/ { 0,1,6, "\244\242\244\244\216\263" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 8, 0, 0 },
- /*expect*/ { 0,1,6, "\244\242\244\244\216\263" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2, 0, 0 },
- /*expect*/ { EILSEQ,1,-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,6, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 1, 0, 0 },
- /*expect*/ { 0,1,6, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 8, 0, 0 },
- /*expect*/ { 0,1,6, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5, 0, 0 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Twcsrtombs, TST_LOC_ja_UTF8 },
- {
-
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 3, 0, 0 },
- /*expect*/ { 0,1,3, "\343\201\202" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 6, 0, 0 },
- /*expect*/ { 0,1,6, "\343\201\202\343\201\204" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 9, 0, 0 },
- /*expect*/ { 0,1,9, "\343\201\202\343\201\204\357\275\263" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 10, 0, 0 },
- /*expect*/ { 0,1,9, "\343\201\202\343\201\204\357\275\263" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 11, 0, 0 },
- /*expect*/ { 0,1,9, "\343\201\202\343\201\204\357\275\263" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2, 0, 0 },
- /*expect*/ { EILSEQ,1,-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0, 0, 0 },
- /*expect*/ { 0,1,9, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 1, 0, 0 },
- /*expect*/ { 0,1,9, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 8, 0, 0 },
- /*expect*/ { 0,1,9, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5, 0, 0 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Twcsrtombs, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcsspn.c b/test/locale-mbwc/dat_wcsspn.c
deleted file mode 100644
index 06af2d6..0000000
--- a/test/locale-mbwc/dat_wcsspn.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcsspn.c
- *
- * WCSSPN: size_t wcsspn (const wchar_t *ws1, const wchar_t *ws2);
- */
-
-TST_WCSSPN tst_wcsspn_loc [] = {
- {
- { Twcsspn, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x0000 }, }, /* #01 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x0000 }, }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D3,0x0000 }, }, /* #03 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D4,0x0000 }, }, /* #04 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D3,0x0000 }, }, /* #05 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D3,0x00D4,0x0000 }, }, /* #06 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x0000 }, }, /* #09 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x0000,0x00D2,0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D1,0x0000 }, }, /* #12 */
- /*expect*/ { 0,1,2, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsspn, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0000 }, }, /* #01 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0000 }, }, /* #02 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0043,0x0000 }, }, /* #03 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0044,0x0000 }, }, /* #04 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0043,0x0000 }, }, /* #05 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0043,0x0044,0x0000 }, }, /* #06 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0042,0x0000 }, }, /* #09 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0000,0x0042,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0000,0x0042,0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0041,0x0000 }, }, /* #12 */
- /*expect*/ { 0,1,2, },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcsspn, TST_LOC_eucJP },
-#else
- { Twcsspn, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x0000 }, }, /* #1 */
- /*expect*/ { 0,1,1, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x0000 }, }, /* #2 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3043,0x0000 }, }, /* #3 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3044,0x0000 }, }, /* #4 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x0000 }, }, /* #5 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3043,0x3044,0x0000 }, }, /* #6 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #7 */
- /*expect*/ { 0,1,3, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #8 */
- /*expect*/ { 0,1,2, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x3042,0x0000 }, }, /* #9 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x0000,0x3042,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x0000,0x3042,0x0000 }, }, /* #11 */
- /*expect*/ { 0,1,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3041,0x0000 }, }, /* #12 */
- /*expect*/ { 0,1,2, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsspn, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcsstr.c b/test/locale-mbwc/dat_wcsstr.c
deleted file mode 100644
index f999dc5..0000000
--- a/test/locale-mbwc/dat_wcsstr.c
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcsstr.c
- *
- * WCSSTR: wchar_t *wcsstr (const wchar_t *ws1, const wchar_t *ws2);
- */
-
-/*
- * NOTE:
- * This is not a locale sensitive function.
- * So those data in each locale doesn't make sense ...
- * (redundant test cases)
- */
-
-
-TST_WCSSTR tst_wcsstr_loc [] = {
- {
- { Twcsstr, TST_LOC_de },
- {
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x0000 }, }, /* #01 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x0000 }, }, /* #02 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D3,0x0000 }, }, /* #03 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x0000 }, }, /* #04 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D3,0x0000 }, }, /* #05 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #06 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D2,0x00D3,0x00D4,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x00D0,0x00D1,0x00D2,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
- { 0x0000 }, }, /* #09 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x00D1,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
- { 0x0000 }, }, /* #11 */
- /*expect*/ { 0,0,0, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsstr, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0000 }, }, /* #01 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0000 }, }, /* #02 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0043,0x0000 }, }, /* #03 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0000 }, }, /* #04 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0043,0x0000 }, }, /* #05 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0041,0x0042,0x0043,0x0000 }, }, /* #06 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0042,0x0043,0x0044,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0040,0x0041,0x0042,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
- { 0x0000 }, }, /* #09 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0041,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
- { 0x0000 }, }, /* #11 */
- /*expect*/ { 0,0,0, },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcsstr, TST_LOC_eucJP },
-#else
- { Twcsstr, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x0000 }, }, /* #01 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x0000 }, }, /* #02 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3043,0x0000 }, }, /* #03 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x0000 }, }, /* #04 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x0000 }, }, /* #05 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3041,0x3042,0x3043,0x0000 }, }, /* #06 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3042,0x3043,0x3044,0x0000 }, }, /* #07 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x3040,0x3041,0x3042,0x0000 }, }, /* #08 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
- { 0x0000 }, }, /* #09 */
- /*expect*/ { 0,0,0, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x3041,0x0000 }, }, /* #10 */
- /*expect*/ { 0,1,(wchar_t *)NULL, },
- },
- { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
- { 0x0000 }, }, /* #11 */
- /*expect*/ { 0,0,0, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsstr, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcstod.c b/test/locale-mbwc/dat_wcstod.c
deleted file mode 100644
index c7b4018..0000000
--- a/test/locale-mbwc/dat_wcstod.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_wcstod.c
- *
- * WCSTOD: double wcstod (const wchar_t *np, wchar_t **endp);
- */
-
-
-/*
- * NOTE:
- * need more test data!
- *
- */
-
-
-TST_WCSTOD tst_wcstod_loc [] = {
- {
- { Twcstod, TST_LOC_de },
- {
- {
- /*01*/
- /*I*/
- {{ 0x0030,0x0030,0x0030,0x002C,0x0030,0x0030,0x0030,0x0030,0x0000 }},
- /*E*/
- { 0,1,0.0, 0.0, 0x0000 }
- },
- {
- /*02*/
- /*I*/
- {{ 0x0031,0x0032,0x0033,0x002C,0x0034,0x0035,0x0036,0x0040,0x0000 }},
- /*E*/
- { 0,1,123.456, 123.456, 0x0040 }
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcstod, TST_LOC_enUS },
- {
- {
- /*01*/
- /*I*/
- {{ 0x0030,0x0030,0x0030,0x002E,0x0030,0x0030,0x0030,0x0030,0x0000 }},
- /*E*/
- { 0,1,0.0, 0.0, 0x0000 }
- },
- {
- /*02*/
- /*I*/
- {{ 0x0031,0x0032,0x0033,0x002E,0x0034,0x0035,0x0036,0x0040,0x0000 }},
- /*E*/
- { 0,1,123.456, 123.456, 0x0040 }
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcstod, TST_LOC_eucJP },
-#else
- { Twcstod, TST_LOC_ja_UTF8 },
-#endif
- {
- {
- /*01*/
- /*I*/
- {{ 0x0031,0x0032,0x0033,0x002E,0x0034,0x0035,0x0036,0x0040,0x0000 }},
- /*E*/
- { 0,1,123.456, 123.456, 0x0040 }
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcstod, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcstok.c b/test/locale-mbwc/dat_wcstok.c
deleted file mode 100644
index 559b401..0000000
--- a/test/locale-mbwc/dat_wcstok.c
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_wcstok.c
- *
- * WCSTOK: wchar_t *wcstok (wchar_t *ws, const wchar_t *dlm,
- * wchar_t **pt);
- */
-
-/*
- * NOTE:
- * need more test data!
- * locale insensitive function...
- */
-
-
-
-
-TST_WCSTOK tst_wcstok_loc [] = {
- {
- { Twcstok, TST_LOC_de },
- {
- {
- {
- {
- { 1, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
- 0x00D9,0x0000 },
- { 0x00D3,0x00D2, 0x00D5 }
- },
- { 0, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
- 0x00D9,0x0000 },
- { 0x00D3,0x00D2, 0x00D5 }
- },
- { 0, { 0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,
- 0x00D9,0x0000 },
- { 0x00D3,0x00D2, 0x00D5 }
- },
- }
- },
- {
- {
- { 0, 0,0,
- { 0x00D1,0x0000 }
- },
- { 0, 0,0,
- { 0x00D4,0x0000 }
- },
- { 0, 0,0,
- { 0x00D6,0x00D7,0x00D8,0x00D9,0x0000 }
- },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcstok, TST_LOC_enUS },
- {
- {
- {
- {
- { 1, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
- 0x0049,0x0000 },
- { 0x0043,0x0042, 0x0045 }
- },
- { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
- 0x0049,0x0000 },
- { 0x0043,0x0042, 0x0045 }
- },
- { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
- 0x0049,0x0000 },
- { 0x0043,0x0042, 0x0045 }
- },
- }
- },
- {
- {
- { 0, 0,0,
- { 0x0041,0x0000 }
- },
- { 0, 0,0,
- { 0x0044,0x0000 }
- },
- { 0, 0,0,
- { 0x0046,0x0047,0x0048,0x0049,0x0000 }
- },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcstok, TST_LOC_eucJP },
-#else
- { Twcstok, TST_LOC_ja_UTF8 },
-#endif
- {
- {
- {
- {
- { 1, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
- 0x0049,0x0000 },
- { 0x0043,0x0042, 0x0045 }
- },
- { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
- 0x0049,0x0000 },
- { 0x0043,0x0042, 0x0045 }
- },
- { 0, { 0x0041,0x0042,0x0043,0x0044,0x0045,0x0046,0x0047,0x0048,
- 0x0049,0x0000 },
- { 0x0043,0x0042, 0x0045 }
- },
- }
- },
- {
- {
- { 0, 0,0,
- { 0x0041,0x0000 }
- },
- { 0, 0,0,
- { 0x0044,0x0000 }
- },
- { 0, 0,0,
- { 0x0046,0x0047,0x0048,0x0049,0x0000 }
- },
- }
- }
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcstok, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcstombs.c b/test/locale-mbwc/dat_wcstombs.c
deleted file mode 100644
index ffeb0ef..0000000
--- a/test/locale-mbwc/dat_wcstombs.c
+++ /dev/null
@@ -1,271 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcstombs.c
- *
- * WCSTOMBS: size_t wcstombs (char *s, const wchar_t *ws, size_t n)
- */
-
-
-/*
- * CAUTION:
- * Do not use a value 0x01 for string data. The test program
- * uses it.
- *
- */
-
-
-TST_WCSTOMBS tst_wcstombs_loc [] = {
- {
- { Twcstombs, TST_LOC_de },
- {
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 1 },
- /*expect*/ { 0,1,1, "�" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 2 },
- /*expect*/ { 0,1,2, "��" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 3 },
- /*expect*/ { 0,1,3, "���" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 4 },
- /*expect*/ { 0,1,3, "���" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 5 },
- /*expect*/ { 0,1,3, "���" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 1 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x00C4,0x00D6,0x00DC,0x0000 }, 5 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcstombs, TST_LOC_enUS },
- {
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x00C4,0x0042,0x0043,0x0000 }, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 1 },
- /*expect*/ { 0,1,1, "A" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 2 },
- /*expect*/ { 0,1,2, "AB" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 3 },
- /*expect*/ { 0,1,3, "ABC" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 4 },
- /*expect*/ { 0,1,3, "ABC" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x0041,0x0042,0x0043,0x0000 }, 5 },
- /*expect*/ { 0,1,3, "ABC" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0041,0x0042,0x0043,0x0000 }, 0 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0041,0x0042,0x0043,0x0000 }, 1 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0041,0x0042,0x0043,0x0000 }, 5 },
- /*expect*/ { 0,1,3, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5, },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Twcstombs, TST_LOC_eucJP },
- {
-
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 2 },
- /*expect*/ { 0,1,2, "\244\242" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 4 },
- /*expect*/ { 0,1,4, "\244\242\244\244" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 6 },
- /*expect*/ { 0,1,6, "\244\242\244\244\216\263" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 7 },
- /*expect*/ { 0,1,6, "\244\242\244\244\216\263" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 8 },
- /*expect*/ { 0,1,6, "\244\242\244\244\216\263" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2 },
- /*expect*/ { EILSEQ,1,-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0 },
- /*expect*/ { 0,1,6, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 1 },
- /*expect*/ { 0,1,6, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 8 },
- /*expect*/ { 0,1,6, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Twcstombs, TST_LOC_ja_UTF8 },
- {
-
- /* #01 : Any chars including a null char should not be stored in s. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #02 : Only one chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 3 },
- /*expect*/ { 0,1,3, "\343\201\202" },
- },
- /* #03 : Only two chars should be stored in s. No null termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 6 },
- /*expect*/ { 0,1,6, "\343\201\202\343\201\204" },
- },
- /* #04 : Only three chars should be stored in s. No null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 9 },
- /*expect*/ { 0,1,9, "\343\201\202\343\201\204\357\275\263" },
- },
- /* #05 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 10 },
- /*expect*/ { 0,1,9, "\343\201\202\343\201\204\357\275\263" },
- },
- /* #06 : Only three chars should be stored in s with a null
- termination. */
- { /*input.*/ { 1,1, { 0x3042,0x3044,0xFF73,0x0000 }, 11 },
- /*expect*/ { 0,1,9, "\343\201\202\343\201\204\357\275\263" },
- },
- /* #07 : Invalid mb sequence. No chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0201,0x0221,0x0000,0x0000 }, 2 },
- /*expect*/ { EILSEQ,1,-1, "" },
- },
- /* #08 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 0 },
- /*expect*/ { 0,1,9, "" },
- },
- /* #09 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 1 },
- /*expect*/ { 0,1,9, "" },
- },
- /* #10 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x3042,0x3044,0xFF73,0x0000 }, 8 },
- /*expect*/ { 0,1,9, "" },
- },
- /* #11 : s is a null pointer. No chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0201,0x0221,0x0000,0x0000 }, 5 },
- /*expect*/ { EILSEQ,1,(size_t)-1, "" },
- },
- /* #12 : ws is a null wc string, no chars should be stored in s. */
- { /*input.*/ { 1,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- /* #13 : s is a null pointer, no chars should be stored in s. */
- { /*input.*/ { 0,1, { 0x0000 }, 5 },
- /*expect*/ { 0,1,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Twcstombs, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcswidth.c b/test/locale-mbwc/dat_wcswidth.c
deleted file mode 100644
index 6d2f98e..0000000
--- a/test/locale-mbwc/dat_wcswidth.c
+++ /dev/null
@@ -1,263 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcswidth.c
- *
- * WCSWIDTH: int wcswidth (const wchar_t *ws, size_t n);
- */
-
-TST_WCSWIDTH tst_wcswidth_loc [] = {
- {
- { Twcswidth, TST_LOC_de },
- {
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 0 }, /* 01 */
- /*expect*/ { 0,1,0 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 1 }, /* 02 */
- /*expect*/ { 0,1,1 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 2 }, /* 03 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 3 }, /* 04 */
- /*expect*/ { 0,1,3 },
- },
- { /*input.*/ { { 0x00C1,0x00C2,0x00C3,0x0000 }, 4 }, /* 05 */
- /*expect*/ { 0,1,3 },
- },
- { /*input.*/ { { 0x0000 }, 1 }, /* 06 */
- /*expect*/ { 0,1,0 },
- },
- { /*input.*/ { { 0x00C1,0x0001,0x0000 }, 2 }, /* 07 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x00C1,0x0001,0x0000 }, 1 }, /* 08 */
- /*expect*/ { 0,1,1 },
- },
- { /*input.*/ { { 0x00C1,0x0001,0x0000 }, 2 }, /* 09 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x00C1,0x0092,0x0000 }, 2 }, /* 10 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x00C1,0x0020,0x0000 }, 2 }, /* 11 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x00C1,0x0021,0x0000 }, 2 }, /* 12 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x00C1,0x007E,0x0000 }, 2 }, /* 13 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x00C1,0x007F,0x0000 }, 2 }, /* 14 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x00C1,0x0080,0x0000 }, 2 }, /* 15 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x00C1,0x00A0,0x0000 }, 2 }, /* 16 */
-#ifdef SHOJI_IS_RIGHT
- /*expect*/ { 0,1,-1 },
-#else
- /*expect*/ { 0,1,2 },
-#endif
- },
- { /*input.*/ { { 0x00C1,0x00A1,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x00C1,0x00FF,0x0000 }, 2 }, /* 18 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x00C1,0x3042,0x0000 }, 2 }, /* 19 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x00C1,0x3044,0x0000 }, 2 }, /* 20 */
- /*expect*/ { 0,1,-1 },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcswidth, TST_LOC_enUS },
- {
- { /*input.*/ { { 0x0041,0x0042,0x00C3,0x0000 }, 0 }, /* 01 */
- /*expect*/ { 0,1,0 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x00C3,0x0000 }, 1 }, /* 02 */
- /*expect*/ { 0,1,1 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x00C3,0x0000 }, 2 }, /* 03 */
- /*expect*/ { 0,1,2 },
- },
-#ifdef SHOJI_IS_RIGHT
- { /*input.*/ { { 0x0041,0x0042,0x00C3,0x0000 }, 3 }, /* 04 */
- /*expect*/ { 0,1,3 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x00C3,0x0000 }, 4 }, /* 05 */
- /*expect*/ { 0,1,3 },
- },
-#else
- { /*input.*/ { { 0x0041,0x0042,0x00C3,0x0000 }, 3 }, /* 04 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 }, 4 }, /* 05 */
- /*expect*/ { 0,1,3 },
- },
-#endif
- { /*input.*/ { { 0x0000 }, 1 }, /* 06 */
- /*expect*/ { 0,1,0 },
- },
- { /*input.*/ { { 0x0041,0x0001,0x0000 }, 2 }, /* 07 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x0001,0x0000 }, 1 }, /* 08 */
- /*expect*/ { 0,1,1 },
- },
- { /*input.*/ { { 0x0041,0x0001,0x0000 }, 2 }, /* 09 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x0092,0x0000 }, 2 }, /* 10 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x0020,0x0000 }, 2 }, /* 11 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x0021,0x0000 }, 2 }, /* 12 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x007E,0x0000 }, 2 }, /* 13 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x007F,0x0000 }, 2 }, /* 14 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x0080,0x0000 }, 2 }, /* 15 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x00A0,0x0000 }, 2 }, /* 16 */
- /*expect*/ { 0,1,-1 },
- },
-#ifdef SHOJI_IS_RIGHT
- { /*input.*/ { { 0x0041,0x00A1,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x00FF,0x0000 }, 2 }, /* 18 */
- /*expect*/ { 0,1,2 },
- },
-#else
- { /*input.*/ { { 0x0041,0x007E,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x0020,0x0000 }, 2 }, /* 18 */
- /*expect*/ { 0,1,2 },
- },
-#endif
- { /*input.*/ { { 0x0041,0x3042,0x0000 }, 2 }, /* 19 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x3044,0x0000 }, 2 }, /* 20 */
- /*expect*/ { 0,1,-1 },
- },
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcswidth, TST_LOC_eucJP },
-#else
- { Twcswidth, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 0 }, /* 01 */
- /*expect*/ { 0,1,0 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 1 }, /* 02 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 2 }, /* 03 */
- /*expect*/ { 0,1,4 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 3 }, /* 04 */
- /*expect*/ { 0,1,6 },
- },
- { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 }, 4 }, /* 05 */
- /*expect*/ { 0,1,6 },
- },
- { /*input.*/ { { 0x0000 }, 1 }, /* 06 */
- /*expect*/ { 0,1,0 },
- },
- { /*input.*/ { { 0x008E,0x0001,0x0000 }, 2 }, /* 07 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x3041,0x008E,0x0000 }, 1 }, /* 08 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x3041,0x008E,0x0000 }, 2 }, /* 09 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x3041,0x0001,0x0000 }, 2 }, /* 10 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x3041,0x3000,0x0000 }, 2 }, /* 11 */
- /*expect*/ { 0,1,4 },
- },
- { /*input.*/ { { 0x0041,0x0021,0x0000 }, 2 }, /* 12 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x007E,0x0000 }, 2 }, /* 13 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x007F,0x0000 }, 2 }, /* 14 */
- /*expect*/ { 0,1,-1 },
- },
- { /*input.*/ { { 0x0041,0x0080,0x0000 }, 2 }, /* 15 */
- /*expect*/ { 0,1,-1 },
- },
-#if 0
- { /*input.*/ { { 0x0041,0x00A0,0x0000 }, 2 }, /* 16 */
- /*expect*/ { 0,1,-1 },
- },
-#ifdef NO_WAIVER
- /* <NO_WAIVER> */ /* returns 3 */
- { /*input.*/ { { 0x0041,0x00A1,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,-1 },
- },
-#else
- /* XXX U00A1 is valid -> /x8f/xa2/xc4 in JIS X 0212 */
- { /*input.*/ { { 0x0041,0x00A1,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,3 },
- },
-#endif
-#else
- /* XXX U00A0 i UTF8 is valid -> /xc2/xa0 */
- { /*input.*/ { { 0x0041,0x00A0,0x0000 }, 2 }, /* 16 */
- /*expect*/ { 0,1,2 },
- },
-#ifdef NO_WAIVER
- /* <NO_WAIVER> */ /* returns 3 */
- { /*input.*/ { { 0x0041,0x00A1,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,-1 },
- },
-#else
- /* XXX U00A1 in UTF-8 is valid -> /xc2/xa1 */
- { /*input.*/ { { 0x0041,0x00A1,0x0000 }, 2 }, /* 17 */
- /*expect*/ { 0,1,2 },
- },
-#endif
-#endif
- { /*input.*/ { { 0x0041,0xFF71,0x0000 }, 2 }, /* 18 */
- /*expect*/ { 0,1,2 },
- },
- { /*input.*/ { { 0x0041,0x3042,0x0000 }, 2 }, /* 19 */
- /*expect*/ { 0,1,3 },
- },
- { /*input.*/ { { 0x0041,0x3044,0x0000 }, 2 }, /* 20 */
- /*expect*/ { 0,1,3 },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcswidth, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wcsxfrm.c b/test/locale-mbwc/dat_wcsxfrm.c
deleted file mode 100644
index acb6727..0000000
--- a/test/locale-mbwc/dat_wcsxfrm.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_wcsxfrm.c
- *
- * WCSXFRM: size_t wcsxfrm (char *s1, const char s2, size_t n);
- */
-
-/*
- * NOTE:
- *
- * Return value and errno value are checked only for 2nd string:
- * org2[]; n1 and n2 don't mean bytes to be translated.
- * It means a buffer size including a null character.
- * Results of this test depens on results of wcscoll().
- * If you got errors, check both test results.
- */
-
-
-TST_WCSXFRM tst_wcsxfrm_loc [] = {
-
- {
- { Twcsxfrm, TST_LOC_de },
- {
- { /*inp*/ { { 0x00C1,0x0000 }, { 0x00C1,0x0000 }, 7, 7 }, /* #01 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0042,0x0000 }, { 0x0061,0x0000 }, 7, 7 }, /* #02 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0061,0x0000 }, { 0x0042,0x0000 }, 7, 7 }, /* #03 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x00E4,0x0000 }, { 0x00DC,0x0000 }, 7, 7 }, /* #04 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x00DC,0x0000 }, { 0x00E4,0x0000 }, 7, 7 }, /* #05 */
- /*exp*/ { 0, 0,0, },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twcsxfrm, TST_LOC_enUS },
- {
- { /*inp*/ { { 0x0041,0x0000 }, { 0x0041,0x0000 }, 7, 7 }, /* #01 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0042,0x0000 }, { 0x0061,0x0000 }, 7, 7 }, /* #02 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0061,0x0000 }, { 0x0042,0x0000 }, 7, 7 }, /* #03 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0000,0x0000 }, { 0x0000,0x0000 }, 7, 7 }, /* #04 */
- /*exp*/ { 0, 0,0, },
- },
-#ifdef NO_WAIVER
- { /* <WAIVER> x 2 */
- /*inp*/ { { 0x3061,0x0000 }, { 0xFF42,0x0000 }, 7, 7 }, /* #05 */
- /* <WAIVER> */
- /*exp*/ { EINVAL, 1,(size_t)-1, },
- },
-#endif
- { .is_last = 1 }
- }
- },
- {
-#if 0
- { Twcsxfrm, TST_LOC_eucJP }, /* need more test data ! */
-#else
- { Twcsxfrm, TST_LOC_ja_UTF8 }, /* need more test data ! */
-#endif
- {
- { /*inp*/ { { 0x3041,0x0000 }, { 0x3041,0x0000 }, 7, 7 }, /* #01 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0042,0x0000 }, { 0x0061,0x0000 }, 7, 7 }, /* #02 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x0061,0x0000 }, { 0x0042,0x0000 }, 7, 7 }, /* #03 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0x30A2,0x0000 }, { 0xFF71,0x0000 }, 7, 7 }, /* #04 */
- /*exp*/ { 0, 0,0, },
- },
- { /*inp*/ { { 0xFF71,0x0000 }, { 0x30A2,0x0000 }, 7, 7 }, /* #05 */
- /*exp*/ { 0, 0,0, },
- },
-#ifdef NO_WAIVER
- /* <WAIVER> x 2 */
- { /*inp*/ { { 0x008E,0x0000 }, { 0x008F,0x0000 }, 7, 7 }, /* #06 */
- /*exp*/ { EINVAL, 1,(size_t)-1, },
- },
-#endif
- { .is_last = 1 }
- }
- },
- {
- { Twcsxfrm, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wctob.c b/test/locale-mbwc/dat_wctob.c
deleted file mode 100644
index dfd344e..0000000
--- a/test/locale-mbwc/dat_wctob.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wctob.c
- *
- * ISW*: int wctob( wint_t wc );
- */
-
-
-TST_WCTOB tst_wctob_loc [] = {
-
- { { Twctob, TST_LOC_de },
- {
- { { WEOF }, { 0, 1, EOF } },
- { { 0x0020 }, { 0, 1, 0x20 } },
- { { 0x0061 }, { 0, 1, 0x61 } },
- { { 0x0080 }, { 0, 1, 0x80 } },
- { { 0x00C4 }, { 0, 1, 0xC4 } },
- { { 0x30C4 }, { 0, 1, EOF } },
- { .is_last = 1 } /* Last element. */
- }
- },
- { { Twctob, TST_LOC_enUS },
- {
- { { WEOF }, { 0, 1, EOF } },
- { { 0x0020 }, { 0, 1, 0x20 } },
- { { 0x0061 }, { 0, 1, 0x61 } },
-#ifdef SHOJI_IS_RIGHT
- { { 0x0080 }, { 0, 1, 0x80 } },
- { { 0x00C4 }, { 0, 1, 0xC4 } },
-#else
- /* XXX These are no valid characters. */
- { { 0x0080 }, { 0, 1, EOF } },
- { { 0x00C4 }, { 0, 1, EOF } },
-#endif
- { { 0x30C4 }, { 0, 1, EOF } },
- { .is_last = 1 } /* Last element. */
- }
- },
-#if 0
- { { Twctob, TST_LOC_eucJP },
-#else
- { { Twctob, TST_LOC_ja_UTF8 },
-#endif
- {
- { { WEOF }, { 0, 1, EOF } },
- { { 0x0020 }, { 0, 1, 0x20 } },
- { { 0x0061 }, { 0, 1, 0x61 } },
-#if 0
- { { 0x0080 }, { 0, 1, 0x80 } },
-#else
- { { 0x0080 }, { 0, 1, EOF } },
-#endif
- { { 0x00FF }, { 0, 1, EOF } },
- { { 0x00C4 }, { 0, 1, EOF } },
- { { 0x30C4 }, { 0, 1, EOF } },
- { .is_last = 1 } /* Last element. */
- }
- },
- { { Twctob, TST_LOC_end } }
-};
diff --git a/test/locale-mbwc/dat_wctomb.c b/test/locale-mbwc/dat_wctomb.c
deleted file mode 100644
index 0ec3a9c..0000000
--- a/test/locale-mbwc/dat_wctomb.c
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wctomb.c
- *
- * WCTOMB: int wctomb (char *s, wchar_t wc)
- */
-
-
-/*
- * FUNCTION:
- *
- * int wctomb (char *s, wchar_t wc);
- *
- * return: the number of bytes
- *
- * NOTE:
- *
- * o When you feed a null pointer for a string (s) to the function,
- * set s_flg=0 instead of putting just a 'NULL' there.
- * Even if you put a 'NULL', it means a null string as well as "".
- *
- * o When s is a null pointer, the function checks state dependency.
- *
- * state-dependent encoding - return NON-zero
- * state-independent encoding - return 0
- *
- * If state-dependent encoding is expected, set
- *
- * s_flg = 0, ret_flg = 0, ret_val = +1
- *
- * If state-independent encoding is expected, set
- *
- * s_flg = 0, ret_flg = 0, ret_val = 0
- *
- *
- * When you set ret_flg=1, the test program simply compares an
- * actual return value with an expected value. You can check
- * state-independent case (return value is 0) in that way, but
- * you can not check state-dependent case. So when you check
- * state- dependency in this test function: tst_wctomb(), set
- * ret_flg=0 always. It's a special case, and the test
- * function takes care of it.
- *
- * Input Expect
- *
- * s_flg=0 ret_flg=0
- * | |
- * { 0, 0 }, { 0, 0, 0, x, "" }
- * | |
- * not used ret_val: 0/+1
- * (expected val)
- */
-
-
-TST_WCTOMB tst_wctomb_loc [] = {
- {
- { Twctomb, TST_LOC_de },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x00C4 },
- /*expect*/ { 0,1,1, "�" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x00DC },
- /*expect*/ { 0,1,1, "�" },
- },
- /* #03 : normal case */
- { /*input.*/ { 1, 0x0092 },
- /*expect*/ { 0,1,1, "\222" },
- },
- /* #04 : error case */
- { /*input.*/ { 1, 0x3041 },
- /*expect*/ { 0,1,-1, "" },
- },
- /* #05 : state dependency */
- { /*input.*/ { 0, 0x0000 },
- /*expect*/ { 0,0,0, "" },
- },
- { .is_last = 1 }
- }
- },
- {
- { Twctomb, TST_LOC_enUS },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x0041 },
- /*expect*/ { 0,1,1, "A" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x0042 },
- /*expect*/ { 0,1,1, "B" },
- },
- /* #03 : error case */
- /* <WAIVER> */
- { /*input.*/ { 1, 0x00C4 },
- /*expect*/ { 0,1,-1, "" },
- },
- /* #04 : error case */
- { /*input.*/ { 1, 0x30A4 },
- /*expect*/ { 0,1,-1, "" },
- },
- /* #05 : state dependency */
- { /*input.*/ { 0, 0x0000 },
- /*expect*/ { 0,0,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Twctomb, TST_LOC_eucJP },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x3042 },
- /*expect*/ { 0,1,2, "\244\242" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x3044 },
- /*expect*/ { 0,1,2, "\244\244" },
- },
- /* #03 : normal case */
- { /*input.*/ { 1, 0x008E },
- /*expect*/ { 0,1,-1, "" },
- },
- /* #04 : jisX0212 */
- { /*input.*/ { 1, 0x00C4 },
- /*expect*/ { 0,1,3, "\217\252\243" }, /* jisx0210 returns 3 */
- },
- /* #05 : state dependency */
- { /*input.*/ { 0, 0x008E },
- /*expect*/ { 0,0,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Twctomb, TST_LOC_ja_UTF8 },
- {
- /* #01 : normal case */
- { /*input.*/ { 1, 0x3042 },
- /*expect*/ { 0,1,3, "\343\201\202" },
- },
- /* #02 : normal case */
- { /*input.*/ { 1, 0x3044 },
- /*expect*/ { 0,1,3, "\343\201\204" },
- },
- /* #03 : normal case */
- { /*input.*/ { 1, 0x008E },
- /*expect*/ { 0,1,2, "\302\216" },
- },
- /* #04 : jisX0212 */
- { /*input.*/ { 1, 0x00C4 },
- /*expect*/ { 0,1,2, "\303\204" }, /* jisx0210 returns 3 */
- },
- /* #05 : state dependency */
- { /*input.*/ { 0, 0x008E },
- /*expect*/ { 0,0,0, "" },
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Twctomb, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/dat_wctrans.c b/test/locale-mbwc/dat_wctrans.c
deleted file mode 100644
index df4d3ad..0000000
--- a/test/locale-mbwc/dat_wctrans.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_wctrans.c
- *
- * WCTRANS: wctrans_t wctrans( const char *charclass );
- */
-
-/*
- * NOTE:
- * When a return value is expected to be 0 (false),
- * set ret_flg=1 and set ret_val=0.
- * Otherwise just set ret_flg=0.
- */
-
-
-TST_WCTRANS tst_wctrans_loc [] = {
-
- { { Twctrans, TST_LOC_de },
- {
- { /*inp*/ { "" }, /* #1 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "upper" }, /* #2 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "lower" }, /* #3 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "toupper" }, /* #4 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "tolower" }, /* #5 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "xxxxx" }, /* #6 */
- /*exp*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twctrans, TST_LOC_enUS },
- {
- { /*inp*/ { "" }, /* #1 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "upper" }, /* #2 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "lower" }, /* #3 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "toupper" }, /* #4 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "tolower" }, /* #5 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "xxxxx" }, /* #6 */
- /*exp*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twctrans, TST_LOC_eucJP },
-#else
- { { Twctrans, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*inp*/ { "" }, /* #1 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "upper" }, /* #2 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "lower" }, /* #3 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "toupper" }, /* #4 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "tolower" }, /* #5 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "xxxxx" }, /* #6 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "tojhira" }, /* #7 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "tojkata" }, /* #8 */
- /*exp*/ { 0,0,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twctrans, TST_LOC_end }}
-};
diff --git a/test/locale-mbwc/dat_wctype.c b/test/locale-mbwc/dat_wctype.c
deleted file mode 100644
index db3bf33..0000000
--- a/test/locale-mbwc/dat_wctype.c
+++ /dev/null
@@ -1,189 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
- *
- * FILE: dat_wctype.c
- *
- * WCTYPE: wctype_t wctype( const char *class );
- */
-
-/*
- * NOTE:
- * When a return value is expected to be 0 (false),
- * set ret_flg=1 and set ret_val=0.
- * Otherwise just set ret_flg=0.
- */
-
-
-TST_WCTYPE tst_wctype_loc [] = {
-
- { { Twctype, TST_LOC_de },
- {
- { /*inp*/ { "alnum" }, /* #01 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "alpha" }, /* #02 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "cntrl" }, /* #03 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "digit" }, /* #04 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "graph" }, /* #05 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "lower" }, /* #06 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "print" }, /* #07 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "punct" }, /* #08 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "space" }, /* #09 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "upper" }, /* #10 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "xdigit" }, /* #11 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "" }, /* #12 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "ideograph" }, /* #13 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "english" }, /* #14 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "ascii" }, /* #15 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "special" }, /* #16 */
- /*exp*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twctype, TST_LOC_enUS },
- {
- { /*inp*/ { "alnum" }, /* #01 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "alpha" }, /* #02 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "cntrl" }, /* #03 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "digit" }, /* #04 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "graph" }, /* #05 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "lower" }, /* #06 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "print" }, /* #07 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "punct" }, /* #08 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "space" }, /* #09 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "upper" }, /* #10 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "xdigit" }, /* #11 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "" }, /* #12 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "ideograph" }, /* #13 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "english" }, /* #14 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "ascii" }, /* #15 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "special" }, /* #16 */
- /*exp*/ { 0,1,0, },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- { { Twctype, TST_LOC_eucJP },
-#else
- { { Twctype, TST_LOC_ja_UTF8 },
-#endif
- {
- { /*inp*/ { "alnum" }, /* #01 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "alpha" }, /* #02 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "cntrl" }, /* #03 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "digit" }, /* #04 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "graph" }, /* #05 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "lower" }, /* #06 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "print" }, /* #07 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "punct" }, /* #08 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "space" }, /* #09 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "upper" }, /* #10 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "xdigit" }, /* #11 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "ideogram" }, /* #12 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "phonogram" }, /* #13 */
- /*exp*/ { 0,1,0, },
- },
- { /*inp*/ { "jspace" }, /* #14 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "jhira" }, /* #15 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "jkata" }, /* #16 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "jkanji" }, /* #17 */
- /*exp*/ { 0,0,0, },
- },
- { /*inp*/ { "jdigit" }, /* #18 */
- /*exp*/ { 0,0,0, },
- },
- { .is_last = 1 }
- }
- },
- { { Twctype, TST_LOC_end }}
-};
diff --git a/test/locale-mbwc/dat_wcwidth.c b/test/locale-mbwc/dat_wcwidth.c
deleted file mode 100644
index b6b7c29..0000000
--- a/test/locale-mbwc/dat_wcwidth.c
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: dat_wcwidth.c
- *
- * WCWIDTH: int wcwidth (wchar_t wc);
- */
-
-TST_WCWIDTH tst_wcwidth_loc [] = {
- {
- { Twcwidth, TST_LOC_de },
- {
- { /*inp*/ { 0x0000 }, /* #01 */
- /*exp*/ { 0, 1,0, },
- },
- { /*inp*/ { 0x0020 }, /* #02 */
- /*exp*/ { 0, 1,1, },
- },
- { /*inp*/ { 0x007F }, /* #03 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x0080 }, /* #04 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x00A1 }, /* #05 */
- /*exp*/ { 0, 1,1, },
- },
- { /*inp*/ { 0x00C1 }, /* #06 */
- /*exp*/ { 0, 1,1, },
- },
-#ifdef SHOJI_IS_RIGHT
- /* <WAIVER> */ /* CHECK : wint_t */
- { /*inp*/ { 0x3041 }, /* #07 */
- /*exp*/ { 0, 1,0, },
- },
-#else
- { /*inp*/ { 0x3041 }, /* #07 */
- /*exp*/ { 0, 1,EOF, },
- },
-#endif
- { .is_last = 1 }
- }
- },
- {
- { Twcwidth, TST_LOC_enUS },
- {
- { /*inp*/ { 0x0000 }, /* #01 */
- /*exp*/ { 0, 1,0, },
- },
- { /*inp*/ { 0x0020 }, /* #02 */
- /*exp*/ { 0, 1,1, },
- },
- { /*inp*/ { 0x007F }, /* #03 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x0080 }, /* #04 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x00A1 }, /* #05 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x00C1 }, /* #06 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x3041 }, /* #07 */
- /*exp*/ { 0, 1,-1, },
- },
- { .is_last = 1 }
- }
- },
-#if 0
- {
- { Twcwidth, TST_LOC_eucJP },
- {
- { /*inp*/ { 0x0000 }, /* #01 */
- /*exp*/ { 0, 1,0, },
- },
- { /*inp*/ { 0x0020 }, /* #02 */
- /*exp*/ { 0, 1,1, },
- },
- { /*inp*/ { 0x007F }, /* #03 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x0080 }, /* #04 */
- /*exp*/ { 0, 1,-1, },
- },
-#ifdef SHOJI_IS_RIGHT
- /* <NO_WAIVER> */
- { /*inp*/ { 0x00A1 }, /* #05 */
- /*exp*/ { 0, 1,0, },
- },
-#else
- /* XXX U00A1 is a valid character in EUC-JP. */
- { /*inp*/ { 0x00A1 }, /* #05 */
- /*exp*/ { 0, 1,2, },
- },
-#endif
- /* jisx0212 */
- { /*inp*/ { 0x00C1 }, /* #06 */
- /*exp*/ { 0, 1,2, },
- },
- { /*inp*/ { 0x3041 }, /* #07 */
- /*exp*/ { 0, 1,2, },
- },
- { .is_last = 1 }
- }
- },
-#else
- {
- { Twcwidth, TST_LOC_ja_UTF8 },
- {
- { /*inp*/ { 0x0000 }, /* #01 */
- /*exp*/ { 0, 1,0, },
- },
- { /*inp*/ { 0x0020 }, /* #02 */
- /*exp*/ { 0, 1,1, },
- },
- { /*inp*/ { 0x007F }, /* #03 */
- /*exp*/ { 0, 1,-1, },
- },
- { /*inp*/ { 0x0080 }, /* #04 */
- /*exp*/ { 0, 1,-1, },
- },
-#ifdef SHOJI_IS_RIGHT
- /* <NO_WAIVER> */
- { /*inp*/ { 0x00A1 }, /* #05 */
- /*exp*/ { 0, 1,0, },
- },
-#else
- /* XXX U00A1 is a valid character in EUC-JP.UTF-8. */
- { /*inp*/ { 0x00A1 }, /* #05 */
- /*exp*/ { 0, 1,1, },
- },
-#endif
- /* jisx0212 */
- { /*inp*/ { 0x00C1 }, /* #06 */
- /*exp*/ { 0, 1,1, },
- },
- { /*inp*/ { 0x3041 }, /* #07 */
- /*exp*/ { 0, 1,2, },
- },
- { .is_last = 1 }
- }
- },
-#endif
- {
- { Twcwidth, TST_LOC_end }
- }
-};
diff --git a/test/locale-mbwc/tgn_funcdef.h b/test/locale-mbwc/tgn_funcdef.h
deleted file mode 100644
index ec24792..0000000
--- a/test/locale-mbwc/tgn_funcdef.h
+++ /dev/null
@@ -1,160 +0,0 @@
-#ifndef TGN_FUNCDEF_H
-#define TGN_FUNCDEF_H
-
-/* Unique number for each test. */
-#define Tiswalnum 1
-#define Tiswalpha 2
-#define Tiswcntrl 3
-#define Tiswctype 4
-#define Tiswdigit 5
-#define Tiswgraph 6
-#define Tiswlower 7
-#define Tiswprint 8
-#define Tiswpunct 9
-#define Tiswspace 10
-#define Tiswupper 11
-#define Tiswxdigit 12
-#define Tmblen 13
-#define Tmbrlen 14
-#define Tmbrtowc 15
-#define Tmbsrtowcs 16
-#define Tmbstowcs 17
-#define Tmbtowc 18
-#define Tstrcoll 19
-#define Tstrfmon 20
-#define Tstrxfrm 21
-#define Tswscanf 22
-#define Ttowctrans 23
-#define Ttowlower 24
-#define Ttowupper 25
-#define Twcrtomb 26
-#define Twcscat 27
-#define Twcschr 28
-#define Twcscmp 29
-#define Twcscoll 30
-#define Twcscpy 31
-#define Twcscspn 32
-#define Twcslen 33
-#define Twcsncat 34
-#define Twcsncmp 35
-#define Twcsncpy 36
-#define Twcspbrk 37
-#define Twcsrtombs 38
-#define Twcsspn 39
-#define Twcsstr 40
-#define Twcstod 41
-#define Twcstok 42
-#define Twcstombs 43
-#define Twcswidth 44
-#define Twcsxfrm 45
-#define Twctob 46
-#define Twctomb 47
-#define Twctrans 48
-#define Twctype 49
-#define Twcwidth 50
-
-/* Name of each test. */
-#define S_ISWALNUM "iswalnum"
-#define S_ISWALPHA "iswalpha"
-#define S_ISWCNTRL "iswcntrl"
-#define S_ISWCTYPE "iswctype"
-#define S_ISWDIGIT "iswdigit"
-#define S_ISWGRAPH "iswgraph"
-#define S_ISWLOWER "iswlower"
-#define S_ISWPRINT "iswprint"
-#define S_ISWPUNCT "iswpunct"
-#define S_ISWSPACE "iswspace"
-#define S_ISWUPPER "iswupper"
-#define S_ISWXDIGIT "iswxdigit"
-#define S_MBLEN "mblen"
-#define S_MBRLEN "mbrlen"
-#define S_MBRTOWC "mbrtowc"
-#define S_MBSRTOWCS "mbsrtowcs"
-#define S_MBSTOWCS "mbstowcs"
-#define S_MBTOWC "mbtowc"
-#define S_STRCOLL "strcoll"
-#define S_STRFMON "strfmon"
-#define S_STRXFRM "strxfrm"
-#define S_SWSCANF "swscanf"
-#define S_TOWCTRANS "towctrans"
-#define S_TOWLOWER "towlower"
-#define S_TOWUPPER "towupper"
-#define S_WCRTOMB "wcrtomb"
-#define S_WCSCAT "wcscat"
-#define S_WCSCHR "wcschr"
-#define S_WCSCMP "wcscmp"
-#define S_WCSCOLL "wcscoll"
-#define S_WCSCPY "wcscpy"
-#define S_WCSCSPN "wcscspn"
-#define S_WCSLEN "wcslen"
-#define S_WCSNCAT "wcsncat"
-#define S_WCSNCMP "wcsncmp"
-#define S_WCSNCPY "wcsncpy"
-#define S_WCSPBRK "wcspbrk"
-#define S_WCSRTOMBS "wcsrtombs"
-#define S_WCSSPN "wcsspn"
-#define S_WCSSTR "wcsstr"
-#define S_WCSTOD "wcstod"
-#define S_WCSTOK "wcstok"
-#define S_WCSTOMBS "wcstombs"
-#define S_WCSWIDTH "wcswidth"
-#define S_WCSXFRM "wcsxfrm"
-#define S_WCTOB "wctob"
-#define S_WCTOMB "wctomb"
-#define S_WCTRANS "wctrans"
-#define S_WCTYPE "wctype"
-#define S_WCWIDTH "wcwidth"
-
-/* Prototypes for test functions. */
-extern int tst_iswalnum (FILE *, int);
-extern int tst_iswalpha (FILE *, int);
-extern int tst_iswcntrl (FILE *, int);
-extern int tst_iswctype (FILE *, int);
-extern int tst_iswdigit (FILE *, int);
-extern int tst_iswgraph (FILE *, int);
-extern int tst_iswlower (FILE *, int);
-extern int tst_iswprint (FILE *, int);
-extern int tst_iswpunct (FILE *, int);
-extern int tst_iswspace (FILE *, int);
-extern int tst_iswupper (FILE *, int);
-extern int tst_iswxdigit (FILE *, int);
-extern int tst_mblen (FILE *, int);
-extern int tst_mbrlen (FILE *, int);
-extern int tst_mbrtowc (FILE *, int);
-extern int tst_mbsrtowcs (FILE *, int);
-extern int tst_mbstowcs (FILE *, int);
-extern int tst_mbtowc (FILE *, int);
-extern int tst_strcoll (FILE *, int);
-extern int tst_strfmon (FILE *, int);
-extern int tst_strxfrm (FILE *, int);
-extern int tst_swscanf (FILE *, int);
-extern int tst_towctrans (FILE *, int);
-extern int tst_towlower (FILE *, int);
-extern int tst_towupper (FILE *, int);
-extern int tst_wcrtomb (FILE *, int);
-extern int tst_wcscat (FILE *, int);
-extern int tst_wcschr (FILE *, int);
-extern int tst_wcscmp (FILE *, int);
-extern int tst_wcscoll (FILE *, int);
-extern int tst_wcscpy (FILE *, int);
-extern int tst_wcscspn (FILE *, int);
-extern int tst_wcslen (FILE *, int);
-extern int tst_wcsncat (FILE *, int);
-extern int tst_wcsncmp (FILE *, int);
-extern int tst_wcsncpy (FILE *, int);
-extern int tst_wcspbrk (FILE *, int);
-extern int tst_wcsrtombs (FILE *, int);
-extern int tst_wcsspn (FILE *, int);
-extern int tst_wcsstr (FILE *, int);
-extern int tst_wcstod (FILE *, int);
-extern int tst_wcstok (FILE *, int);
-extern int tst_wcstombs (FILE *, int);
-extern int tst_wcswidth (FILE *, int);
-extern int tst_wcsxfrm (FILE *, int);
-extern int tst_wctob (FILE *, int);
-extern int tst_wctomb (FILE *, int);
-extern int tst_wctrans (FILE *, int);
-extern int tst_wctype (FILE *, int);
-extern int tst_wcwidth (FILE *, int);
-
-#endif /* TGN_FUNCDEF_H */
diff --git a/test/locale-mbwc/tgn_locdef.h b/test/locale-mbwc/tgn_locdef.h
deleted file mode 100644
index 89146a7..0000000
--- a/test/locale-mbwc/tgn_locdef.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef TGN_LOCDEF_H
-#define TGN_LOCDEF_H
-
-/* Defines for all locales used in the suite. */
-
-/* POSIX C locale. */
-#define TST_LOC_C "C"
-
-/* German locale with ISO-8859-1. */
-#define TST_LOC_de "de_DE.ISO-8859-1"
-
-/* For US we use ANSI_X3.4-1968 (ASCII). Changed in en_US.ISO-8859-1 */
-#define TST_LOC_en "en_US.ISO-8859-1"
-#define TST_LOC_enUS TST_LOC_C
-
-/* NOTE: ja_JP.EUC-JP locale isn't supported into the uClibc!
- UTF-8 is the only multibyte codeset supported. */
-/* Japanese locale with EUC-JP. */
-#if 0
-#define TST_LOC_eucJP "ja_JP.EUC-JP"
-#endif
-
-/* Japanese locale with UTF-8. */
-#define TST_LOC_ja_UTF8 "ja_JP.UTF-8"
-
-/* German locale with UTF-8. */
-#define TST_LOC_de_UTF8 "de_DE.UTF-8"
-
-/* End marker - must appear in each table as last entry. */
-#define TST_LOC_end "lastEntry"
-
-#endif /* TGN_LOCDEF_H */
diff --git a/test/locale-mbwc/tsp_common.c b/test/locale-mbwc/tsp_common.c
deleted file mode 100644
index cd88274..0000000
--- a/test/locale-mbwc/tsp_common.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- * Main driver
- */
-
-
-#define TST_FUNCTION_CALL(func) _TST_FUNCTION_CALL(func)
-#define _TST_FUNCTION_CALL(func) tst ##_## func
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <locale.h>
-#include <errno.h>
-#include <signal.h>
-
-#include "tst_types.h"
-#include "tgn_locdef.h"
-
-
-int
-main (int argc, char *argv[])
-{
- int ret;
- int debug;
-
- debug = argc > 1 ? atoi (argv[1]) : 0;
-
- if (debug)
- {
- fprintf (stdout, "\nTST_MBWC ===> %s ...\n", argv[0]);
- }
- ret = TST_FUNCTION_CALL (TST_FUNCTION) (stdout, debug);
-
- return (ret != 0);
-}
-
-#define MAX_RESULT_REC 132
-char result_rec[MAX_RESULT_REC];
-
-
-int
-result (FILE * fp, char res, const char *func, const char *loc, int rec_no,
- int seq_no, int case_no, const char *msg)
-{
- if (fp == NULL
- || strlen (func) + strlen (loc) + strlen (msg) + 32 > MAX_RESULT_REC)
- {
- fprintf (stderr,
- "Warning: result(): can't write the result: %s:%s:%d:%d:%s\n",
- func, loc, rec_no, case_no, msg);
- return 0;
- }
-
- sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no,
- case_no, res, msg);
-
- if (fputs (result_rec, fp) == EOF)
- {
- return 0;
- }
-
- return 1;
-}
diff --git a/test/locale-mbwc/tst2_mbrtowc.c b/test/locale-mbwc/tst2_mbrtowc.c
deleted file mode 100644
index 92e1283..0000000
--- a/test/locale-mbwc/tst2_mbrtowc.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <wchar.h>
-#include <assert.h>
-#include <stdlib.h>
-
-/* bugs.uclibc.org/1471 : make sure output is 0 */
-static int
-do_test(void)
-{
- wchar_t output;
- int result;
-
- output = L'A'; /* anything other than 0 will do... */
- result = mbrtowc (&output, "", 1, 0);
-
- assert (result == 0);
- assert (output == 0);
-
- return EXIT_SUCCESS;
-}
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/locale-mbwc/tst_funcs.h b/test/locale-mbwc/tst_funcs.h
deleted file mode 100644
index 02d5d34..0000000
--- a/test/locale-mbwc/tst_funcs.h
+++ /dev/null
@@ -1,294 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: tst_funcs.h
- *
- * Definitions of macros
- */
-
-
-#ifndef TST_FUNCS_H
-#define TST_FUNCS_H
-
-#define C_SUCCESS 'S' /* test case test passed */
-#define C_FAILURE 'F' /* test case failed */
-#define C_IGNORED 'I' /* test case/result ignored (not tested) */
-#define C_INVALID 'D' /* test data may be wrong */
-#define C_LOCALES 'L' /* can't set locale (skip) */
-
-
-extern int result (FILE * fp, char res, const char *func, const char *loc,
- int rec_no, int seq_num, int case_no, const char *msg);
-
-#define Result(C, S, E, M) \
- result (fp, (C), (S), locale, rec+1, seq_num+1, (E), (M))
-
-#define CASE_0 0
-#define CASE_1 1
-#define CASE_2 2
-#define CASE_3 3
-#define CASE_4 4
-#define CASE_5 5
-#define CASE_6 6
-#define CASE_7 7
-#define CASE_8 8
-#define CASE_9 9
-
-#define MS_PASSED "PASSED"
-#define MS_SPACE " "
-#define MS_FAILED " "
-#define MS_NOTEST "NOTEST"
-#define MS_ABORTU "ABEND0"
-#define MS_ABORT "ABEND1"
-
-#define MK_PASSED 0x00
-#define MK_SPACE 0x01
-#define MK_NOTEST 0x02
-#define MK_ABORTU 0x04
-#define MK_ABORT 0x08
-
-
-
-/* ------------------ COMMON MACROS ------------------ */
-
-#define TST_ABS(x) (((x) > 0) ? (x) : -(x))
-
-#define TMD_ERRET(_type_) int err_val; \
- int ret_flg; \
- _type_ ret_val
-
-#define TMD_RECHEAD(_FUNC_) \
- \
- typedef struct { \
- TIN_##_FUNC_##_REC input; \
- TEX_##_FUNC_##_REC expect; \
- int is_last; \
- } TST_##_FUNC_##_REC; \
- typedef struct { \
- TST_HEAD hd; \
- TST_##_FUNC_##_REC rec[ MAX_LOC_TEST ]; \
- } TST_##_FUNC_
-
-#define TST_FTYP(func) tst_##func##_loc
-#define TST_HEAD(func) tst_##func##_loc[ loc ].hd
-#define TST_INPUT(func) tst_##func##_loc[ loc ].rec[ rec ].input
-#define TST_EXPECT(func) tst_##func##_loc[ loc ].rec[ rec ].expect
-#define TST_INPUT_SEQ(func) \
- tst_##func##_loc[ loc ].rec[ rec ].input.seq[ seq_num ]
-#define TST_EXPECT_SEQ(func) \
- tst_##func##_loc[ loc ].rec[ rec ].expect.seq[ seq_num ]
-#define TST_IS_LAST(func) \
- tst_##func##_loc[ loc ].rec[ rec ].is_last
-
-
-#define TST_DECL_VARS(_type_) \
- int loc, rec, err_count = 0; \
- int warn_count __attribute__ ((unused)); \
- int seq_num = 0; \
- const char *locale; \
- int err_exp, ret_flg; \
- int errno_save = 0; \
- _type_ ret_exp; \
- _type_ ret
-
-#define TST_DO_TEST(o_func) \
- for (loc = 0; strcmp (TST_HEAD (o_func).locale, TST_LOC_end); ++loc)
-
-
-#ifdef __UCLIBC_HAS_LOCALE__
-#define TST_HEAD_LOCALE(ofunc, s_func) \
- locale = TST_HEAD (ofunc).locale; \
- if (setlocale (LC_ALL, locale) == NULL) \
- { \
- fprintf (stderr, "Warning : can't set locale: %s\nskipping ...\n", \
- locale); \
- result (fp, C_LOCALES, s_func, locale, 0, 0, 0, "can't set locale"); \
- ++err_count; \
- continue; \
- }
-#else
-#define TST_HEAD_LOCALE(ofunc, s_func) \
- locale = TST_HEAD (ofunc).locale; \
- if (strcmp(locale, "C") == 0) \
- { \
- if (setlocale (LC_ALL, locale) == NULL) \
- { \
- fprintf (stderr, "Warning : can't set locale: %s\nskipping ...\n", \
- locale); \
- result (fp, C_LOCALES, s_func, locale, 0, 0, 0, "can't set locale"); \
- ++err_count; \
- continue; \
- } \
- } \
- else \
- { \
- fprintf (stderr, "Warning : locale %s unsupported\n\n", \
- locale); \
- result (fp, C_LOCALES, s_func, locale, 0, 0, 0, "unsupported"); \
- continue; \
- }
-#endif
-
-#define TST_DO_REC(ofunc) \
- for (rec=0; !TST_IS_LAST (ofunc); ++rec)
-
-#define TST_DO_SEQ(_count_) \
- for (seq_num=0; seq_num < _count_; seq_num++)
-
-#define TST_GET_ERRET(_ofunc_) \
- err_exp = TST_EXPECT (_ofunc_).err_val; \
- ret_flg = TST_EXPECT (_ofunc_).ret_flg; \
- ret_exp = TST_EXPECT (_ofunc_).ret_val
-
-#define TST_GET_ERRET_SEQ(_ofunc_) \
- err_exp = TST_EXPECT_SEQ (_ofunc_).err_val; \
- ret_flg = TST_EXPECT_SEQ (_ofunc_).ret_flg; \
- ret_exp = TST_EXPECT_SEQ (_ofunc_).ret_val
-
-#define TST_CLEAR_ERRNO \
- errno = 0
-
-#define TST_SAVE_ERRNO \
- errno_save = errno
-
-/* Test value of ret and of errno if it should have a value. */
-#define TST_IF_RETURN(_s_func_) \
- if (err_exp != 0) \
- { \
- if (errno_save == err_exp) \
- { \
- result (fp, C_SUCCESS, _s_func_, locale, rec+1, seq_num+1, 1, \
- MS_PASSED); \
- } \
- else \
- { \
- err_count++; \
- result (fp, C_FAILURE, _s_func_, locale, rec+1, seq_num+1, 1, \
- "the value of errno is different from an expected value"); \
- } \
- } \
- \
- if (ret_flg == 1) \
- { \
- if (ret == ret_exp) \
- { \
- result (fp, C_SUCCESS, _s_func_, locale, rec+1, seq_num+1, 2, \
- MS_PASSED); \
- } \
- else \
- { \
- err_count++; \
- result (fp, C_FAILURE, _s_func_, locale, rec+1, seq_num+1, 2, \
- "the return value is different from an expected value"); \
- } \
- } \
- else
-
-#define TEX_ERRET_REC(_type_) \
- struct { \
- TMD_ERRET (_type_); \
- }
-
-#define TEX_ERRET_REC_SEQ(_type_, _count_) \
- struct { \
- struct { \
- TMD_ERRET (_type_); \
- } seq[ _count_ ]; \
- }
-
-
-
-/* ------------------ FUNCTION: ISW*() ------------------- */
-
-#define TST_ISW_STRUCT(_FUNC_, _func_) \
- typedef \
- struct { \
- wint_t wc; \
- } TIN_ISW##_FUNC_##_REC; \
- typedef \
- TEX_ERRET_REC (int) TEX_ISW##_FUNC_##_REC; \
- TMD_RECHEAD (ISW##_FUNC_)
-
-#define TST_FUNC_ISW(_FUNC_, _func_) \
-int \
-tst_isw##_func_ (FILE *fp, int debug_flg) \
-{ \
- TST_DECL_VARS(int); \
- wint_t wc; \
- TST_DO_TEST (isw##_func_) \
- { \
- TST_HEAD_LOCALE (isw##_func_, S_ISW##_FUNC_); \
- TST_DO_REC(isw##_func_) \
- { \
- TST_GET_ERRET (isw##_func_); \
- wc = TST_INPUT (isw##_func_).wc; \
- ret = isw##_func_ (wc); \
- if (debug_flg) \
- { \
- fprintf (stdout, "isw*() [ %s : %d ] ret = %d\n", locale, \
- rec+1, ret); \
- } \
- \
- TST_IF_RETURN (S_ISW##_FUNC_) \
- { \
- if (ret != 0) \
- { \
- result (fp, C_SUCCESS, S_ISW##_FUNC_, locale, rec+1, \
- seq_num+1, 3, MS_PASSED); \
- } \
- else \
- { \
- err_count++; \
- result (fp, C_FAILURE, S_ISW##_FUNC_, locale, rec+1, \
- seq_num+1, 3, \
- "the function returned 0, but should be non-zero"); \
- } \
- } \
- } \
- } \
- \
- return err_count; \
-}
-
-
-
-/* ------------------ FUNCTION: TOW*() ------------------ */
-
-#define TST_TOW_STRUCT(_FUNC_, _func_) \
- typedef \
- struct { \
- wint_t wc; \
- } TIN_TOW##_FUNC_##_REC; \
- typedef \
- TEX_ERRET_REC (wint_t) TEX_TOW##_FUNC_##_REC; \
- TMD_RECHEAD (TOW##_FUNC_)
-
-#define TST_FUNC_TOW(_FUNC_, _func_) \
-int \
-tst_tow##_func_ (FILE *fp, int debug_flg) \
-{ \
- TST_DECL_VARS (wint_t); \
- wint_t wc; \
- TST_DO_TEST (tow##_func_) \
- { \
- TST_HEAD_LOCALE (tow##_func_, S_TOW##_FUNC_); \
- TST_DO_REC (tow##_func_) \
- { \
- TST_GET_ERRET (tow##_func_); \
- wc = TST_INPUT (tow##_func_).wc; \
- ret = tow##_func_ (wc); \
- if (debug_flg) \
- { \
- fprintf (stdout, "tow*() [ %s : %d ] ret = 0x%x\n", \
- locale, rec+1, ret); \
- } \
- \
- TST_IF_RETURN (S_TOW##_FUNC_) { }; \
- } \
- } \
- \
- return err_count; \
-}
-
-
-#endif /* TST_FUNCS_H */
diff --git a/test/locale-mbwc/tst_iswalnum.c b/test/locale-mbwc/tst_iswalnum.c
deleted file mode 100644
index 95ba863..0000000
--- a/test/locale-mbwc/tst_iswalnum.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWALNUM: int iswalnum (wint_t wc)
-*/
-
-#define TST_FUNCTION iswalnum
-
-#include "tsp_common.c"
-#include "dat_iswalnum.c"
-
-TST_FUNC_ISW (ALNUM, alnum);
diff --git a/test/locale-mbwc/tst_iswalpha.c b/test/locale-mbwc/tst_iswalpha.c
deleted file mode 100644
index 8eff2cc..0000000
--- a/test/locale-mbwc/tst_iswalpha.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWALPHA: int iswalpha (wint_t wc);
-*/
-
-#define TST_FUNCTION iswalpha
-
-#include "tsp_common.c"
-#include "dat_iswalpha.c"
-
-TST_FUNC_ISW (ALPHA, alpha);
diff --git a/test/locale-mbwc/tst_iswcntrl.c b/test/locale-mbwc/tst_iswcntrl.c
deleted file mode 100644
index 4e1baa8..0000000
--- a/test/locale-mbwc/tst_iswcntrl.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWCNTRL: int iswcntrl (wint_t wc);
-*/
-
-#define TST_FUNCTION iswcntrl
-
-#include "tsp_common.c"
-#include "dat_iswcntrl.c"
-
-TST_FUNC_ISW (CNTRL, cntrl);
diff --git a/test/locale-mbwc/tst_iswctype.c b/test/locale-mbwc/tst_iswctype.c
deleted file mode 100644
index 3e79e09..0000000
--- a/test/locale-mbwc/tst_iswctype.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- ISWCTYPE: int iswctype (wint_t wc, wctype_t desc);
-*/
-
-#define TST_FUNCTION iswctype
-
-#include "tsp_common.c"
-#include "dat_iswctype.c"
-
-
-int
-tst_iswctype (FILE *fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wint_t wc;
- const char *ts;
-
- TST_DO_TEST (iswctype)
- {
- TST_HEAD_LOCALE (iswctype, S_ISWCTYPE);
- TST_DO_REC (iswctype)
- {
- TST_GET_ERRET (iswctype);
- wc = TST_INPUT (iswctype).wc;
- ts = TST_INPUT (iswctype).ts;
- ret = iswctype (wc, wctype (ts));
- TST_SAVE_ERRNO;
- if (debug_flg)
- {
- fprintf (stdout, "iswctype() [ %s : %d ] ret = %d\n",
- locale, rec+1, ret);
- }
-
- TST_IF_RETURN (S_ISWCTYPE)
- {
- if (ret != 0)
- {
- result (fp, C_SUCCESS, S_ISWCTYPE, locale, rec+1,
- seq_num+1, 3, MS_PASSED);
- }
- else
- {
- err_count++;
- result (fp, C_FAILURE, S_ISWCTYPE, locale, rec+1,
- seq_num+1, 3,
- "the function returned 0, but should be non-zero");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_iswdigit.c b/test/locale-mbwc/tst_iswdigit.c
deleted file mode 100644
index 5429ed0..0000000
--- a/test/locale-mbwc/tst_iswdigit.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- ISWDIGIT: int iswdigit (wint_t wc);
-*/
-
-
-#define TST_FUNCTION iswdigit
-
-#include "tsp_common.c"
-#include "dat_iswdigit.c"
-
-TST_FUNC_ISW (DIGIT, digit);
diff --git a/test/locale-mbwc/tst_iswgraph.c b/test/locale-mbwc/tst_iswgraph.c
deleted file mode 100644
index 91a70e2..0000000
--- a/test/locale-mbwc/tst_iswgraph.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWGRAPH: int iswgraph (wint_t wc);
-*/
-
-#define TST_FUNCTION iswgraph
-
-#include "tsp_common.c"
-#include "dat_iswgraph.c"
-
-TST_FUNC_ISW (GRAPH, graph);
diff --git a/test/locale-mbwc/tst_iswlower.c b/test/locale-mbwc/tst_iswlower.c
deleted file mode 100644
index e091100..0000000
--- a/test/locale-mbwc/tst_iswlower.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWLOWER: int iswlower (wint_t wc);
-*/
-
-#define TST_FUNCTION iswlower
-
-#include "tsp_common.c"
-#include "dat_iswlower.c"
-
-TST_FUNC_ISW (LOWER, lower);
diff --git a/test/locale-mbwc/tst_iswprint.c b/test/locale-mbwc/tst_iswprint.c
deleted file mode 100644
index 8d5bde5..0000000
--- a/test/locale-mbwc/tst_iswprint.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWPRINT: int iswprint (wint_t wc);
-*/
-
-#define TST_FUNCTION iswprint
-
-#include "tsp_common.c"
-#include "dat_iswprint.c"
-
-TST_FUNC_ISW (PRINT, print);
diff --git a/test/locale-mbwc/tst_iswpunct.c b/test/locale-mbwc/tst_iswpunct.c
deleted file mode 100644
index 4749d61..0000000
--- a/test/locale-mbwc/tst_iswpunct.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWPUNCT: int iswpunct (wint_t wc);
-*/
-
-#define TST_FUNCTION iswpunct
-
-#include "tsp_common.c"
-#include "dat_iswpunct.c"
-
-TST_FUNC_ISW (PUNCT, punct);
diff --git a/test/locale-mbwc/tst_iswspace.c b/test/locale-mbwc/tst_iswspace.c
deleted file mode 100644
index 6c26d5f..0000000
--- a/test/locale-mbwc/tst_iswspace.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWSPACE: int iswspace (wint_t wc);
-*/
-
-#define TST_FUNCTION iswspace
-
-#include "tsp_common.c"
-#include "dat_iswspace.c"
-
-TST_FUNC_ISW (SPACE, space);
diff --git a/test/locale-mbwc/tst_iswupper.c b/test/locale-mbwc/tst_iswupper.c
deleted file mode 100644
index dfe5a5b..0000000
--- a/test/locale-mbwc/tst_iswupper.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWUPPER: int iswupper (wint_t wc);
-*/
-
-#define TST_FUNCTION iswupper
-
-#include "tsp_common.c"
-#include "dat_iswupper.c"
-
-TST_FUNC_ISW (UPPER, upper);
diff --git a/test/locale-mbwc/tst_iswxdigit.c b/test/locale-mbwc/tst_iswxdigit.c
deleted file mode 100644
index 5f9c0c5..0000000
--- a/test/locale-mbwc/tst_iswxdigit.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- ISWXDIGIT: int iswxdigit (wint_t wc);
-*/
-
-#define TST_FUNCTION iswxdigit
-
-#include "tsp_common.c"
-#include "dat_iswxdigit.c"
-
-TST_FUNC_ISW (XDIGIT, xdigit);
diff --git a/test/locale-mbwc/tst_mblen.c b/test/locale-mbwc/tst_mblen.c
deleted file mode 100644
index 35ccf6c..0000000
--- a/test/locale-mbwc/tst_mblen.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- MBLEN: int mblen (char *s, size_t n)
-*/
-
-#define TST_FUNCTION mblen
-
-#include "tsp_common.c"
-#include "dat_mblen.c"
-
-int
-tst_mblen (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- char s_flg;
- const char *s_in;
- size_t n;
-
- TST_DO_TEST (mblen)
- {
- TST_HEAD_LOCALE (mblen, S_MBLEN);
- TST_DO_REC (mblen)
- {
- TST_GET_ERRET (mblen);
- s_flg = TST_INPUT (mblen).s_flg;
- s_in = TST_INPUT (mblen).s;
- n = TST_INPUT (mblen).n;
-
- if (s_flg == 0)
- {
- s_in = NULL;
- }
-
- if (n == USE_MBCURMAX)
- {
- n = MB_CUR_MAX;
- }
-
- TST_CLEAR_ERRNO;
- ret = mblen (s_in, n);
- TST_SAVE_ERRNO;
-
- TST_IF_RETURN (S_MBLEN)
- {
- if (s_in == NULL)
- { /* state dependency */
- if (ret_exp == +1)
- { /* state-dependent */
- if (ret != 0)
- {
- /* non-zero: state-dependent encoding */
- Result (C_SUCCESS, S_MBLEN, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_MBLEN, CASE_3,
- "should be state-dependent encoding, "
- "but the return value shows it is"
- " state-independent");
- }
- }
-
- if (ret_exp == 0)
- { /* state-independent */
- if (ret == 0)
- {
- /* non-zero: state-dependent encoding */
- Result (C_SUCCESS, S_MBLEN, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_MBLEN, CASE_3,
- "should be state-independent encoding, "
- "but the return value shows it is"
- " state-dependent");
- }
- }
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_mbrlen.c b/test/locale-mbwc/tst_mbrlen.c
deleted file mode 100644
index b8681b7..0000000
--- a/test/locale-mbwc/tst_mbrlen.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- MBRLEN: size_t mbrlen (char *s, size_t n, mbstate_t *ps)
-*/
-
-#define TST_FUNCTION mbrlen
-
-#include "tsp_common.c"
-#include "dat_mbrlen.c"
-
-
-int
-tst_mbrlen (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char s_flg;
- const char *s_in;
- size_t n;
- char t_flg;
- char t_ini;
- static mbstate_t s = { 0 };
- mbstate_t *ps;
-
- TST_DO_TEST (mbrlen)
- {
- TST_HEAD_LOCALE (mbrlen, S_MBRLEN);
- TST_DO_REC (mbrlen)
- {
- if (mbrlen (NULL, 0, &s) != 0)
- {
- err_count++;
- Result (C_FAILURE, S_MBRLEN, CASE_3,
- "Initialization (external mbstate object) failed "
- "- skipped this test case.");
- continue;
- }
-
- TST_DO_SEQ (MBRLEN_SEQNUM)
- {
- TST_GET_ERRET_SEQ (mbrlen);
- s_flg = TST_INPUT_SEQ (mbrlen).s_flg;
- s_in = TST_INPUT_SEQ (mbrlen).s;
- n = TST_INPUT_SEQ (mbrlen).n;
- t_flg = TST_INPUT_SEQ (mbrlen).t_flg;
- t_ini = TST_INPUT_SEQ (mbrlen).t_init;
- if (s_flg == 0)
- {
- s_in = NULL;
- }
-
- if (n == USE_MBCURMAX) /* rewrite tst_mblen() like this */
- {
- n = MB_CUR_MAX;
- }
-
- ps = (t_flg == 0) ? NULL : &s;
-
- if (t_ini != 0)
- {
- memset (&s, 0, sizeof (s));
- mbrlen (NULL, 0, NULL);
- }
-
- TST_CLEAR_ERRNO;
- ret = mbrlen (s_in, n, ps);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "mbrlen() [ %s : %d : %d ] ret = %zd\n",
- locale, rec + 1, seq_num + 1, ret);
- fprintf (stdout, " errno = %d\n", errno_save);
- }
-
- TST_IF_RETURN (S_MBRLEN)
- {
- };
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_mbrtowc.c b/test/locale-mbwc/tst_mbrtowc.c
deleted file mode 100644
index b6247ce..0000000
--- a/test/locale-mbwc/tst_mbrtowc.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- MBRTOWC: size_t mbrtowc (wchar_t *pwc, const char *s, size_t n,
- mbstate_t *ps)
-*/
-
-#define TST_FUNCTION mbrtowc
-
-#include "tsp_common.c"
-#include "dat_mbrtowc.c"
-
-
-int
-tst_mbrtowc (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char w_flg, s_flg;
- char *s;
- size_t n;
- char t_flg;
- static mbstate_t t = { 0 };
- mbstate_t *pt;
- wchar_t wc, *pwc, wc_ex;
-
- TST_DO_TEST (mbrtowc)
- {
- TST_HEAD_LOCALE (mbrtowc, S_MBRTOWC);
- TST_DO_REC (mbrtowc)
- {
- if (mbrtowc (NULL, "", 0, &t) != 0)
- {
- err_count++;
- Result (C_FAILURE, S_MBRTOWC, CASE_3,
- "Initialization failed - skipping this test case.");
- continue;
- }
-
- TST_DO_SEQ (MBRTOWC_SEQNUM)
- {
- TST_GET_ERRET_SEQ (mbrtowc);
- w_flg = TST_INPUT_SEQ (mbrtowc).w_flg;
- s_flg = TST_INPUT_SEQ (mbrtowc).s_flg;
- s = TST_INPUT_SEQ (mbrtowc).s;
- n = TST_INPUT_SEQ (mbrtowc).n;
- t_flg = TST_INPUT_SEQ (mbrtowc).t_flg;
- pwc = (w_flg == 0) ? NULL : &wc;
-
- if (s_flg == 0)
- {
- s = NULL;
- }
-
- if (n == USE_MBCURMAX)
- {
- n = MB_CUR_MAX;
- }
-
- pt = (t_flg == 0) ? NULL : &t;
- TST_CLEAR_ERRNO;
- ret = mbrtowc (pwc, s, n, pt);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "mbrtowc() [ %s : %d : %d ] ret = %zd\n",
- locale, rec + 1, seq_num + 1, ret);
- fprintf (stdout, " errno = %hd\n",
- errno_save);
- }
-
- TST_IF_RETURN (S_MBRTOWC)
- {
- };
-
- if (pwc == NULL || s == NULL || ret == (size_t) - 1
- || ret == (size_t) - 2)
- {
- continue;
- }
-
- wc_ex = TST_EXPECT_SEQ (mbrtowc).wc;
- if (wc_ex == wc)
- {
- Result (C_SUCCESS, S_MBRTOWC, CASE_4, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_MBRTOWC, CASE_4,
- "converted wc is different from an expected wc");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_mbsrtowcs.c b/test/locale-mbwc/tst_mbsrtowcs.c
deleted file mode 100644
index 3f3ea71..0000000
--- a/test/locale-mbwc/tst_mbsrtowcs.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- MBSRTOWCS: size_t mbsrtowcs (wchar_t *ws, const char **s, size_t n,
- mbstate_t *ps)
-*/
-
-#define TST_FUNCTION mbsrtowcs
-
-#include "tsp_common.c"
-#include "dat_mbsrtowcs.c"
-
-int
-tst_mbsrtowcs (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char w_flg;
- const char *s, *p;
- size_t n;
- char t_flg, t_ini;
- static mbstate_t t = { 0 };
- mbstate_t *pt;
- wchar_t ws[WCSSIZE], *ws_ex, *wp;
- int err, i;
-
- TST_DO_TEST (mbsrtowcs)
- {
- TST_HEAD_LOCALE (mbsrtowcs, S_MBSRTOWCS);
- TST_DO_REC (mbsrtowcs)
- {
- s = "";
- if (mbsrtowcs (NULL, &s, 0, &t) != 0)
- {
- err_count++;
- Result (C_FAILURE, S_MBSRTOWCS, CASE_3,
- "Initialization failed - skipping this test case.");
- continue;
- }
-
- TST_DO_SEQ (MBSRTOWCS_SEQNUM)
- {
- TST_GET_ERRET_SEQ (mbsrtowcs);
- w_flg = TST_INPUT_SEQ (mbsrtowcs).w_flg;
- p = s = TST_INPUT_SEQ (mbsrtowcs).s;
- n = TST_INPUT_SEQ (mbsrtowcs).n;
- t_flg = TST_INPUT_SEQ (mbsrtowcs).t_flg;
- t_ini = TST_INPUT_SEQ (mbsrtowcs).t_init;
- wp = (w_flg == 0) ? NULL : ws;
-
- if (n == USE_MBCURMAX)
- {
- n = MB_CUR_MAX;
- }
-
- pt = (t_flg == 0) ? NULL : &t;
-
- if (t_ini != 0)
- {
- memset (&t, 0, sizeof (t));
- }
-
- TST_CLEAR_ERRNO;
- ret = mbsrtowcs (wp, &p, n, pt);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stderr, "mbsrtowcs: [ %d ] : ret = %zd\n", rec + 1, ret);
- }
-
- TST_IF_RETURN (S_MBSRTOWCS)
- {
- };
-
- if (wp == NULL || ret == (size_t) - 1 || ret == (size_t) - 2)
- {
- continue;
- }
-
- ws_ex = TST_EXPECT_SEQ (mbsrtowcs).ws;
- for (err = 0, i = 0; i < ret; i++)
- {
- if (debug_flg)
- {
- fprintf (stderr,
- "mbsrtowcs: ws[%d] => 0x%lx : 0x%lx <= ws_ex[%d]\n",
- i, (unsigned long int) ws[i],
- (unsigned long int) ws_ex[i], i);
- }
-
- if (ws[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_MBSRTOWCS, CASE_4,
- "the converted wc string has "
- "different value from an expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_MBSRTOWCS, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_mbstowcs.c b/test/locale-mbwc/tst_mbstowcs.c
deleted file mode 100644
index 878df6a..0000000
--- a/test/locale-mbwc/tst_mbstowcs.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- MBSTOWCS: size_t mbstowcs (wchar_t *ws, char *s, size_t n)
-*/
-
-#define TST_FUNCTION mbstowcs
-
-#include "tsp_common.c"
-#include "dat_mbstowcs.c"
-
-int
-tst_mbstowcs (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char w_flg, s_flg;
- const char *s;
- size_t n;
- wchar_t ws[WCSSIZE], *ws_ex, *wp;
- int err, i;
-
- TST_DO_TEST (mbstowcs)
- {
- TST_HEAD_LOCALE (mbstowcs, S_MBSTOWCS);
- TST_DO_REC (mbstowcs)
- {
- if (mbstowcs (NULL, "", 0) != 0)
- {
- err_count++;
- Result (C_FAILURE, S_MBSTOWCS, CASE_3,
- "Initialization failed - skipping this test case.");
- continue;
- }
-
- TST_DO_SEQ (MBSTOWCS_SEQNUM)
- {
- TST_GET_ERRET_SEQ (mbstowcs);
- w_flg = TST_INPUT_SEQ (mbstowcs).w_flg;
- s_flg = TST_INPUT_SEQ (mbstowcs).s_flg;
- n = TST_INPUT_SEQ (mbstowcs).n;
-
- if (s_flg == 0)
- s = NULL;
- else
- s = TST_INPUT_SEQ (mbstowcs).s;
-
-
- wp = (wchar_t *) ((w_flg == 0) ? NULL : ws);
-
- TST_CLEAR_ERRNO;
- ret = mbstowcs (wp, s, n);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stderr, "mbstowcs: ret = %zd\n", ret);
- }
-
- TST_IF_RETURN (S_MBSTOWCS)
- {
- };
-
- if (s == NULL || wp == NULL || ret == (size_t) - 1)
- {
- continue;
- }
-
- ws_ex = TST_EXPECT_SEQ (mbstowcs).ws;
-
- for (err = 0, i = 0; i < ret; i++)
- {
- if (debug_flg)
- {
- fprintf (stderr,
- "mbstowcs: ws[%d] => 0x%lx : 0x%lx <= ws_ex[%d]\n",
- i, (unsigned long int) ws[i],
- (unsigned long int) ws_ex[i], i);
- }
-
- if (ws[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_MBSTOWCS, CASE_4,
- "the converted wc string has "
- "different value from an expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_MBSTOWCS, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_mbtowc.c b/test/locale-mbwc/tst_mbtowc.c
deleted file mode 100644
index 7c274f6..0000000
--- a/test/locale-mbwc/tst_mbtowc.c
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- MBTOWC: int mbtowc (wchar_t *wc, char *s, size_t n)
-*/
-
-#define TST_FUNCTION mbtowc
-
-#include "tsp_common.c"
-#include "dat_mbtowc.c"
-
-
-int
-tst_mbtowc (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- char w_flg, s_flg;
- const char *s_in;
- size_t n;
- wchar_t wc, wc_ex, *wp;
-
- TST_DO_TEST (mbtowc)
- {
- TST_HEAD_LOCALE (mbtowc, S_MBTOWC);
- TST_DO_REC (mbtowc)
- {
- if (mbstowcs (NULL, "", 0) != 0)
- {
- err_count++;
- Result (C_FAILURE, S_MBSTOWCS, CASE_3,
- "Initialization failed - skipping this test case.");
- continue;
- }
-
- TST_DO_SEQ (MBTOWC_SEQNUM)
- {
- TST_GET_ERRET_SEQ (mbtowc);
- w_flg = TST_INPUT_SEQ (mbtowc).w_flg;
- s_flg = TST_INPUT_SEQ (mbtowc).s_flg;
- n = TST_INPUT_SEQ (mbtowc).n;
-
- if (n == USE_MBCURMAX)
- {
- n = MB_CUR_MAX;
- }
-
- if (s_flg == 0)
- s_in = NULL;
- else
- s_in = TST_INPUT_SEQ (mbtowc).s;
-
- wp = (wchar_t *) ((w_flg == 0) ? NULL : &wc);
-
- /* XXX Clear the internal state. We should probably have
- a flag for this. */
- mbtowc (NULL, NULL, 0);
-
- TST_CLEAR_ERRNO;
- ret = mbtowc (wp, s_in, n);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "mbtowc() [ %s : %d ] ret = %d\n", locale,
- rec + 1, ret);
- fprintf (stdout, " errno = %d\n",
- errno_save);
- }
-
- TST_IF_RETURN (S_MBTOWC)
- {
- if (s_in == NULL)
- { /* state dependency */
- if (ret_exp == +1)
- { /* state-dependent */
- if (ret != 0)
- {
- /* Non-zero: state-dependent encoding. */
- Result (C_SUCCESS, S_MBTOWC, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_MBTOWC, CASE_3,
- "should be state-dependent encoding, "
- "but a return value shows it is "
- "state-independent");
- }
- }
-
- if (ret_exp == 0)
- { /* state-independent */
- if (ret == 0)
- {
- /* Non-zero: state-dependent encoding. */
- Result (C_SUCCESS, S_MBTOWC, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_MBTOWC, CASE_3,
- "should be state-independent encoding, "
- "but a return value shows it is "
- "state-dependent");
- }
- }
- }
- }
-
- if ((wp == NULL || s_in == NULL || s_in[0] == 0) || ret <= 0)
- {
- continue;
- }
-
- wc_ex = TST_EXPECT_SEQ (mbtowc).wc;
-
- if (wc_ex == wc)
- {
- Result (C_SUCCESS, S_MBTOWC, CASE_4, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_MBTOWC, CASE_4,
- "converted wc is different from an expected wc");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_strcoll.c b/test/locale-mbwc/tst_strcoll.c
deleted file mode 100644
index 4c5a84f..0000000
--- a/test/locale-mbwc/tst_strcoll.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- STRCOLL: int strcoll (const char *s1, const char *s2)
-*/
-
-#define TST_FUNCTION strcoll
-
-#include "tsp_common.c"
-#include "dat_strcoll.c"
-
-int
-tst_strcoll (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- const char *s1, *s2;
-
- TST_DO_TEST (strcoll)
- {
- TST_HEAD_LOCALE (strcoll, S_STRCOLL);
- TST_DO_REC (strcoll)
- {
- TST_GET_ERRET (strcoll);
- s1 = TST_INPUT (strcoll).s1;
- s2 = TST_INPUT (strcoll).s2;
-
- TST_CLEAR_ERRNO;
- ret = strcoll (s1, s2);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "strcoll() [ %s : %d ] ret = %d\n", locale,
- rec + 1, ret);
- fprintf (stdout, " errno = %d\n",
- errno_save);
- fprintf (stdout, " LC_COLLATE = %s\n",
- (setlocale (LC_COLLATE, NULL)) ? setlocale (LC_COLLATE,
- NULL) : "");
- }
-
- TST_IF_RETURN (S_STRCOLL)
- {
- if (ret_exp == +1)
- {
- if (ret > 0)
- {
- Result (C_SUCCESS, S_STRCOLL, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_STRCOLL, CASE_3,
- "the return value should be greater than 0,"
- " but is not ...");
- }
- }
- else if (ret_exp == -1)
- {
- if (ret < 0)
- {
- Result (C_SUCCESS, S_STRCOLL, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_STRCOLL, CASE_3,
- "the return value should less than 0, but not ...");
- }
- }
- else if (ret_exp != 0)
- {
- if (debug_flg)
- {
- fprintf (stderr, "*** Warning *** : tst_strcoll : "
- "(check the test data); should set ret_flg=1"
- " to check a return value");
- }
-
- warn_count++;
- Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data); "
- "should set ret_flg=1 to check a return value");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_strfmon.c b/test/locale-mbwc/tst_strfmon.c
deleted file mode 100644
index 88e9316..0000000
--- a/test/locale-mbwc/tst_strfmon.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- STRFMON: size_t strfmon (char *buf, size_t nbyte, const char *fmt, ...)
-*/
-
-#define TST_FUNCTION strfmon
-
-#include "tsp_common.c"
-#include "dat_strfmon.c"
-#include <monetary.h>
-
-int
-tst_strfmon (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char buf[MONSIZE], *mon;
- size_t nbt;
- char *fmt;
- double val;
-
- TST_DO_TEST (strfmon)
- {
- TST_HEAD_LOCALE (strfmon, S_STRFMON);
- TST_DO_REC (strfmon)
- {
- TST_GET_ERRET (strfmon);
- nbt = TST_INPUT (strfmon).nbytes;
- fmt = TST_INPUT (strfmon).fmt;
- val = TST_INPUT (strfmon).val;
- memset (buf, 0, MONSIZE);
- if (nbt > MONSIZE)
- {
- err_count++;
- Result (C_FAILURE, S_STRFMON, CASE_3, "buffer too small in test");
- continue;
- }
-
- TST_CLEAR_ERRNO;
- ret = strfmon (buf, nbt, fmt, val, val, val);
- TST_SAVE_ERRNO;
-
- if (debug_flg) /* seems fprintf doesn't update the errno */
- {
- fprintf (stdout, "strfmon() [ %s : %d ]\n", locale, rec + 1);
- fprintf (stdout, " : err = %d | %s\n", errno_save,
- strerror (errno));
- fprintf (stdout, " : ret = %zd; \t fmt = |%s|\n", ret, fmt);
- fprintf (stdout, " : buf = |%s|\n\n", buf);
- }
-
- TST_IF_RETURN (S_STRFMON)
- {
- };
- if (errno != 0 || ret == -1)
- {
- continue;
- }
-
- mon = TST_EXPECT (strfmon).mon;
-
- if (!strcmp (buf, mon))
- {
- Result (C_SUCCESS, S_STRFMON, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_STRFMON, CASE_3, "the formatted string is "
- "different from an expected result");
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_strxfrm.c b/test/locale-mbwc/tst_strxfrm.c
deleted file mode 100644
index fdfeffc..0000000
--- a/test/locale-mbwc/tst_strxfrm.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- STRXFRM: size_t strxfrm (char *s1, const char *s2, size_t n)
-*/
-
-#define TST_FUNCTION strxfrm
-
-#include "tsp_common.c"
-#include "dat_strxfrm.c"
-
-
-int
-tst_strxfrm (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- const char *org1, *org2;
- char frm1[MBSSIZE], frm2[MBSSIZE];
- size_t n1, n2;
- int ret_coll, ret_cmp;
-
- TST_DO_TEST (strxfrm)
- {
- TST_HEAD_LOCALE (strxfrm, S_STRXFRM);
- TST_DO_REC (strxfrm)
- {
- TST_GET_ERRET (strxfrm);
- org1 = TST_INPUT (strxfrm).org1;
- org2 = TST_INPUT (strxfrm).org2;
- n1 = TST_INPUT (strxfrm).n1;
- n2 = TST_INPUT (strxfrm).n2;
-
- if (n1 < 0 || sizeof (frm1) < n1 || sizeof (frm2) < n2)
- {
- warn_count++;
- Result (C_IGNORED, S_STRXFRM, CASE_9,
- "input data n1 or n2 is invalid");
- continue;
- }
-
- /* An errno and a return value are checked
- only for 2nd strxfrm() call.
- A result of 1st call is used for comparing
- those 2 values by using strcmp().
- */
-
- /*-- First call --*/
-
- TST_CLEAR_ERRNO;
- ret = strxfrm (frm1, org1, n1);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "strxfrm() [ %s : %d ] ( 1st call )\n", locale,
- rec + 1);
- fprintf (stdout, " : err = %d | %s\n", errno_save,
- strerror (errno));
- fprintf (stdout, " : ret = %zu\n", ret);
- fprintf (stdout, " : org = %s\n", org1);
- }
-
- if (ret >= n1 || errno != 0)
- {
- warn_count++;
- Result (C_INVALID, S_STRXFRM, CASE_8,
- "got an error in fist strxfrm() call");
- continue;
- }
-
- /*-- Second call --*/
-
- TST_CLEAR_ERRNO;
- ret = strxfrm (((n2 == 0) ? NULL : frm2), org2, n2);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stderr, " ..............( 2nd call )\n");
- fprintf (stdout, " : err = %d | %s\n", errno,
- strerror (errno));
- fprintf (stdout, " : ret = %zu\n", ret);
- fprintf (stdout, " : org = %s\n", org2);
- }
-
- TST_IF_RETURN (S_STRXFRM)
- {
- };
-
- if (n2 == 0 || ret >= n2 || errno != 0)
- {
-#if 0
- warn_count++;
- Result (C_IGNORED, S_STRXFRM, CASE_7, "did not get a result");
-#endif
- continue;
- }
-
- /*-- strcoll & strcmp --*/
-
- TST_CLEAR_ERRNO;
- /* Depends on strcoll() ... not good though ... */
- ret_coll = strcoll (org1, org2);
-
- if (errno != 0)
- {
- /* bug * bug may get correct results ... */
- warn_count++;
- Result (C_INVALID, S_STRXFRM, CASE_6,
- "got an error in strcoll() call");
- continue;
- }
-
- ret_cmp = strcmp (frm1, frm2);
-
- if ((ret_coll == 0 && ret_cmp == 0)
- || (ret_coll < 0 && ret_cmp < 0) || (ret_coll > 0 && ret_cmp > 0))
- {
- Result (C_SUCCESS, S_STRXFRM, CASE_3,
- MS_PASSED "(depends on strcoll & strcmp)");
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_STRXFRM, CASE_3,
- "results from strcoll & strcmp() do not match");
- }
-
- if (debug_flg)
- {
- fprintf (stdout, ".......... strcoll = %d <-> %d = strcmp\n",
- ret_coll, ret_cmp);
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_swscanf.c b/test/locale-mbwc/tst_swscanf.c
deleted file mode 100644
index 76445d7..0000000
--- a/test/locale-mbwc/tst_swscanf.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- SWSCANF: int swscanf (const wchar_t *ws, const wchar_t *fmt, ...);
-*/
-
-#define TST_FUNCTION swscanf
-
-#include "tsp_common.c"
-#include "dat_swscanf.c"
-
-int
-tst_swscanf (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t *ws;
- wchar_t *fmt;
- int val_int1;
- unsigned val_int2;
- float val_flt;
- char val_c;
- char val_s[MBSSIZE * 3];
- wchar_t val_S[WCSSIZE * 3], *exp_S;
- int i;
-
- TST_DO_TEST (swscanf)
- {
- TST_HEAD_LOCALE (swscanf, S_SWSCANF);
- TST_DO_REC (swscanf)
- {
- TST_GET_ERRET (swscanf);
- ws = TST_INPUT (swscanf).ws;
- fmt = TST_INPUT (swscanf).fmt;
- val_int1 = val_int2 = val_flt = val_c = 0;
- memset (val_s, 0, sizeof (val_s));
- memset (val_S, 0, sizeof (val_S));
-
- TST_CLEAR_ERRNO;
-
- if (TST_INPUT (swscanf).wch)
- {
- ret = swscanf (ws, fmt, val_S);
- }
- else
- {
- ret =
- swscanf (ws, fmt, &val_int1, &val_int2, &val_flt, &val_c, val_s);
- }
-
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- { /* seems fprintf doesn't update errno */
- fprintf (stdout, "swscanf() [ %s : %d ] ret = %d\n", locale,
- rec + 1, ret);
- fprintf (stdout, " errno = %d\n",
- errno_save);
- fprintf (stdout, " collate = %s\n",
- (setlocale (LC_COLLATE, NULL)) ? setlocale (LC_COLLATE,
- NULL) : "");
-
- if (TST_INPUT (swscanf).wch)
- {
- fprintf (stdout, " val_S[ 0 ] = 0x%lx\n",
- (unsigned long int) val_S[0]);
- }
- else
- {
- fprintf (stdout, " val_int1 = %d\n",
- val_int1);
- fprintf (stdout, " val_int2 = %d\n",
- val_int2);
- fprintf (stdout, " val_flt = %f\n",
- val_flt);
- fprintf (stdout, " val_c = %c\n",
- val_c);
- fprintf (stdout, " val_s = %s\n",
- val_s);
- }
- }
-
- TST_IF_RETURN (S_SWSCANF)
- {
- };
-
- if (errno == 0 && TST_INPUT (swscanf).wch)
- {
- for (exp_S = TST_EXPECT (swscanf).val_S, i = 0; i < WCSSIZE * 3;
- i++)
- {
- if (val_S[i] == L'\0' || exp_S[i] == L'\0')
- {
- if (val_S[i] != exp_S[i] && TST_INPUT (swscanf).wch == 'C')
- {
- err_count++;
- Result (C_FAILURE, S_SWSCANF, CASE_4,
- "the converted wide-char string is different"
- " from an expected value.");
- }
- break;
- }
-
- if (val_S[i] != exp_S[i])
- {
- err_count++;
- Result (C_FAILURE, S_SWSCANF, CASE_4,
- "the converted wide-char string is different from"
- " an expected value.");
- break;
- }
- else
- {
- Result (C_SUCCESS, S_SWSCANF, CASE_4, MS_PASSED);
- }
- }
- }
-
- if (errno == 0 && !TST_INPUT (swscanf).wch)
- {
- if (val_int1 != TST_EXPECT (swscanf).val_int ||
- val_int2 != TST_EXPECT (swscanf).val_uns ||
- val_flt != TST_EXPECT (swscanf).val_flt ||
- val_c != TST_EXPECT (swscanf).val_c ||
- strcmp (val_s, TST_EXPECT (swscanf).val_s))
- {
- err_count++;
- Result (C_FAILURE, S_SWSCANF, CASE_3,
- "the converted values are different from expected values.");
- }
- else
- {
- Result (C_SUCCESS, S_SWSCANF, CASE_3, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_towctrans.c b/test/locale-mbwc/tst_towctrans.c
deleted file mode 100644
index 1d874dc..0000000
--- a/test/locale-mbwc/tst_towctrans.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- TOWCTRANS: wint_t towctrans (wint_t wc, wctrans_t desc);
-*/
-
-#define TST_FUNCTION towctrans
-
-#include "tsp_common.c"
-#include "dat_towctrans.c"
-
-
-int
-tst_towctrans (FILE *fp, int debug_flg)
-{
- TST_DECL_VARS (wint_t);
- wint_t wc;
- const char *ts;
-#if SHOJI_IS_RIGHT
- int dummy=0;
-#endif
- wctrans_t wto;
-
- TST_DO_TEST (towctrans)
- {
- TST_HEAD_LOCALE (towctrans, S_TOWCTRANS);
- TST_DO_REC (towctrans)
- {
- TST_GET_ERRET (towctrans);
- wc = TST_INPUT (towctrans).wc;
- ts = TST_INPUT (towctrans).ts;
-
-#if SHOJI_IS_RIGHT
- if ((wto = wctrans (ts)) == (wctrans_t) 0)
- {
-#if 0
- result (fp, C_IGNORED, S_TOWCTRANS, locale, rec+1, seq_num+1, 3,
- "Skip this data because the wctrans object is not invalid.");
- warn_count++;
- continue;
-#else
- wto = &dummy; /* not good ... */
-#endif
- if (debug_flg)
- {
- fprintf (stdout, "towctrans() ------ wctrans() returnd 0.\n");
- }
- }
-#else
- wto = wctrans (ts);
-#endif
-
- TST_CLEAR_ERRNO;
- ret = towctrans (wc, wto);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "towctrans() [ %s : %d ] ret = 0x%x\n",
- locale, rec+1, ret);
- fprintf (stdout, " errno = %d\n",
- errno_save);
- }
-
- TST_IF_RETURN (S_TOWCTRANS)
- {
- if (ret != 0)
- {
- result (fp, C_SUCCESS, S_TOWCTRANS, locale, rec+1,
- seq_num+1, 3, MS_PASSED);
- }
- else
- {
- err_count++;
- result (fp, C_FAILURE, S_TOWCTRANS, locale, rec+1,
- seq_num+1, 3,
- "the function returned 0, but should be non-zero");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_towlower.c b/test/locale-mbwc/tst_towlower.c
deleted file mode 100644
index 7719b0d..0000000
--- a/test/locale-mbwc/tst_towlower.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- TOWLOWER: int towlower (wint_t wc);
-*/
-
-#define TST_FUNCTION towlower
-
-#include "tsp_common.c"
-#include "dat_towlower.c"
-
-
-TST_FUNC_TOW (LOWER, lower);
diff --git a/test/locale-mbwc/tst_towupper.c b/test/locale-mbwc/tst_towupper.c
deleted file mode 100644
index a077d27..0000000
--- a/test/locale-mbwc/tst_towupper.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- TOWUPPER: int towupper (wint_t wc);
-*/
-
-#define TST_FUNCTION towupper
-
-#include "tsp_common.c"
-#include "dat_towupper.c"
-
-TST_FUNC_TOW (UPPER, upper);
diff --git a/test/locale-mbwc/tst_types.h b/test/locale-mbwc/tst_types.h
deleted file mode 100644
index 3d18279..0000000
--- a/test/locale-mbwc/tst_types.h
+++ /dev/null
@@ -1,729 +0,0 @@
-/*
- * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
- *
- * FILE: tst_types.h
- *
- * Definitions of data types for each test function
- */
-
-
-#ifndef TST_TYPES_H
-#define TST_TYPES_H
-
-#include <stdio.h>
-#include <wchar.h>
-#include <wctype.h>
-#include "tst_funcs.h"
-#include "tgn_funcdef.h"
-
-#define MBSSIZE 24
-#define WCSSIZE 12
-#define MONFMTSIZE 16
-#define MONSIZE 64
-#define USE_MBCURMAX 99 /* well, but ... */
-#define TST_DBL_EPS 2.22153e-16
-#define WCSTOK_SEQNUM 3
-#define MBLEN_SEQNUM 3
-#define MBTOWC_SEQNUM 3
-#define MBSTOWCS_SEQNUM 3
-#define WCTOMB_SEQNUM 3
-#define WCSTOMBS_SEQNUM 3
-#define MBRLEN_SEQNUM 3
-#define MBRTOWC_SEQNUM 3
-#define MBSRTOWCS_SEQNUM 3
-#define WCRTOMB_SEQNUM 3
-#define WCSRTOMBS_SEQNUM 3
-
-/* Maximum numbers of test in one of the _loc arrays. */
-#define MAX_LOC_TEST 300
-
-
-/*----------------------------------------------------------------------*/
-/* FUNCTION */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- char *func_str;
- int func_id;
-}
-TST_FID;
-
-typedef struct
-{
- int func_id;
- const char *locale;
-}
-TST_HEAD;
-
-typedef struct
-{
- TST_HEAD *head;
-}
-TST_FUNCS;
-
-
-/*----------------------------------------------------------------------*/
-/* ISW*: int isw* (wchar_t wc) */
-/*----------------------------------------------------------------------*/
-
-TST_ISW_STRUCT (ALNUM, alnum);
-TST_ISW_STRUCT (ALPHA, alpha);
-TST_ISW_STRUCT (CNTRL, cntrl);
-TST_ISW_STRUCT (DIGIT, digit);
-TST_ISW_STRUCT (GRAPH, graph);
-TST_ISW_STRUCT (LOWER, lower);
-TST_ISW_STRUCT (PRINT, print);
-TST_ISW_STRUCT (PUNCT, punct);
-TST_ISW_STRUCT (SPACE, space);
-TST_ISW_STRUCT (UPPER, upper);
-TST_ISW_STRUCT (XDIGIT, xdigit);
-
-typedef struct
-{
- wint_t wc;
- const char *ts;
-}
-TIN_ISWCTYPE_REC;
-
-typedef
-TEX_ERRET_REC (int)
- TEX_ISWCTYPE_REC;
-TMD_RECHEAD (ISWCTYPE);
-
-
-/*----------------------------------------------------------------------*/
-/* MBLEN: int mblen (const char *s, size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- char s_flg;
- char s[MBSSIZE];
- size_t n;
-}
-TIN_MBLEN_REC;
-
-typedef TEX_ERRET_REC (int) TEX_MBLEN_REC;
-TMD_RECHEAD (MBLEN);
-
-
-/*----------------------------------------------------------------------*/
-/* MBRLEN: size_t mbrlen (const char *s, size_t n, mbstate_t *ps) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- struct
- {
- int s_flg;
- char s[MBSSIZE];
- size_t n;
- int t_flg;
- int t_init;
- }
- seq[WCSTOK_SEQNUM];
-}
-TIN_MBRLEN_REC;
-
-typedef TEX_ERRET_REC_SEQ (size_t, MBRLEN_SEQNUM) TEX_MBRLEN_REC;
-TMD_RECHEAD (MBRLEN);
-
-
-/*----------------------------------------------------------------------*/
-/* MBRTOWC: size_t mbrtowc (wchar_t *pwc, const char *s, size_t n, */
-/* mbstate_t *ps) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- struct
- {
- int w_flg;
- int s_flg;
- char s[MBSSIZE];
- size_t n;
- int t_flg;
- int t_init;
- }
- seq[MBRTOWC_SEQNUM];
-}
-TIN_MBRTOWC_REC;
-
-typedef struct
-{
- struct
- {
- TMD_ERRET (size_t);
- wchar_t wc;
- }
- seq[MBRTOWC_SEQNUM];
-}
-TEX_MBRTOWC_REC;
-
-TMD_RECHEAD (MBRTOWC);
-
-
-/*----------------------------------------------------------------------*/
-/* MBSRTOWCS: size_t mbsrtowcs (wchar_t *ws, const char **s, size_t n, */
-/* mbstate_t *ps ) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- struct
- {
- int w_flg;
- char s[MBSSIZE];
- size_t n;
- int t_flg;
- int t_init;
- }
- seq[MBSRTOWCS_SEQNUM];
-}
-TIN_MBSRTOWCS_REC;
-
-typedef struct
-{
- struct
- {
- TMD_ERRET (size_t);
- wchar_t ws[WCSSIZE];
- }
- seq[MBSRTOWCS_SEQNUM];
-}
-TEX_MBSRTOWCS_REC;
-
-TMD_RECHEAD (MBSRTOWCS);
-
-
-/*----------------------------------------------------------------------*/
-/* MBSTOWCS: size_t mbstowcs (wchar_t *ws, const char *s, size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- struct
- {
- int w_flg;
- int s_flg;
- const char *s;
- size_t n;
- }
- seq[MBSTOWCS_SEQNUM];
-}
-TIN_MBSTOWCS_REC;
-
-typedef TEX_MBSRTOWCS_REC TEX_MBSTOWCS_REC;
-/* MBSRTOWCS_SEQNUM == MBSTOWCS_SEQNUM */
-TMD_RECHEAD (MBSTOWCS);
-
-
-/*----------------------------------------------------------------------*/
-/* MBTOWC: int mbtowc (wchar_t *wc, const char *s, size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_MBSTOWCS_REC TIN_MBTOWC_REC;
-/* MBTOWC_SEQNUM == MBSTOWCS_SEQNUM */
-
-typedef struct
-{
- struct
- {
- TMD_ERRET (int);
- wchar_t wc;
- }
- seq[MBTOWC_SEQNUM];
-}
-TEX_MBTOWC_REC;
-
-TMD_RECHEAD (MBTOWC);
-
-
-/*----------------------------------------------------------------------*/
-/* STRCOLL: int strcoll (const char *s1, const char *s2) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- char s1[MBSSIZE];
- char s2[MBSSIZE];
-}
-TIN_STRCOLL_REC;
-
-typedef TEX_ERRET_REC (int) TEX_STRCOLL_REC;
-TMD_RECHEAD (STRCOLL);
-
-
-/*----------------------------------------------------------------------*/
-/* STRFMON: size_t strfmon (char *buf, size_t nbytes, */
-/* const char *fmt, ... ) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- int nbytes;
- char fmt[MONFMTSIZE];
- double val;
-}
-TIN_STRFMON_REC;
-
-typedef struct
-{
- TMD_ERRET (size_t);
- char mon[MONSIZE];
-}
-TEX_STRFMON_REC;
-
-TMD_RECHEAD (STRFMON);
-
-
-/*----------------------------------------------------------------------*/
-/* STRXFRM: size_t strxfrm (char *s1, const char *s2, size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- char org1[MBSSIZE];
- char org2[MBSSIZE];
- size_t n1, n2;
-}
-TIN_STRXFRM_REC;
-
-typedef TEX_ERRET_REC (size_t) TEX_STRXFRM_REC; /* only for org2[] */
-TMD_RECHEAD (STRXFRM);
-
-
-/*----------------------------------------------------------------------*/
-/* SWSCANF: int swscanf (const wchar_t *ws, const wchar_t *fmt, ...) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t ws[WCSSIZE * 3];
- wchar_t fmt[WCSSIZE * 3];
- int wch;
-}
-TIN_SWSCANF_REC;
-
-typedef struct
-{
- TMD_ERRET (int);
- int val_int; /* %d */
- unsigned val_uns; /* %u */
- float val_flt; /* %f */
- int val_c; /* %c */
- char val_s[MBSSIZE * 2]; /* %s */
- wchar_t val_S[WCSSIZE * 2]; /* %lc, %ls, %C, %S */
-}
-TEX_SWSCANF_REC;
-
-TMD_RECHEAD (SWSCANF);
-
-
-/*----------------------------------------------------------------------*/
-/* TOWCTRANS: wint_t towctrans (wint_t wc, wctrans_t desc) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_ISWCTYPE_REC TIN_TOWCTRANS_REC;
-typedef TEX_ERRET_REC (wint_t) TEX_TOWCTRANS_REC;
-TMD_RECHEAD (TOWCTRANS);
-
-
-/*----------------------------------------------------------------------*/
-/* TOW*ER: wint_t tow*er (wint_t wc) */
-/*----------------------------------------------------------------------*/
-
-TST_TOW_STRUCT (LOWER, lower);
-TST_TOW_STRUCT (UPPER, upper);
-
-
-/*----------------------------------------------------------------------*/
-/* WCRTOMB: wchar_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- int s_flg;
- wchar_t wc;
- int t_flg;
- int t_init;
-}
-TIN_WCRTOMB_REC;
-
-typedef struct
-{
- TMD_ERRET (wchar_t);
- char s[MBSSIZE];
-}
-TEX_WCRTOMB_REC;
-
-TMD_RECHEAD (WCRTOMB);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSCAT: wchar_t *wcscat (wchar_t *ws1, wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t ws1[WCSSIZE];
- wchar_t ws2[WCSSIZE];
-}
-TIN_WCSCAT_REC;
-
-typedef struct
-{
- TMD_ERRET (wchar_t *);
- wchar_t ws[WCSSIZE];
-}
-TEX_WCSCAT_REC;
-
-TMD_RECHEAD (WCSCAT);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSCHR: wchar_t *wcschr (wchar_t *ws, wchar_t wc); */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t ws[WCSSIZE];
- wchar_t wc;
-}
-TIN_WCSCHR_REC;
-
-typedef TEX_ERRET_REC (wchar_t *) TEX_WCSCHR_REC;
-TMD_RECHEAD (WCSCHR);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSCMP: int wcscmp (const wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCAT_REC TIN_WCSCMP_REC;
-typedef TEX_ERRET_REC (int) TEX_WCSCMP_REC;
-TMD_RECHEAD (WCSCMP);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSCOLL: int wcscoll (const wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCMP_REC TIN_WCSCOLL_REC;
-typedef struct
-{
- TMD_ERRET (int);
- int cmp_flg;
-}
-TEX_WCSCOLL_REC;
-TMD_RECHEAD (WCSCOLL);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSCPY: wchar_t *wcscpy (wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t ws[WCSSIZE]; /* ws2: original string */
-}
-TIN_WCSCPY_REC;
-
-typedef TEX_WCSCAT_REC TEX_WCSCPY_REC;
-TMD_RECHEAD (WCSCPY);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSCSPN: size_t wcscspn (const wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCAT_REC TIN_WCSCSPN_REC;
-typedef TEX_ERRET_REC (size_t) TEX_WCSCSPN_REC;
-TMD_RECHEAD (WCSCSPN);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSLEN: size_t wcslen (const wchar_t *ws) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCPY_REC TIN_WCSLEN_REC;
-typedef TEX_ERRET_REC (size_t) TEX_WCSLEN_REC;
-TMD_RECHEAD (WCSLEN);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSNCAT: wchar_t *wcsncat (wchar_t *ws1, const wchar_t *ws2, */
-/* size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t ws1[WCSSIZE];
- wchar_t ws2[WCSSIZE];
- size_t n;
-}
-TIN_WCSNCAT_REC;
-
-typedef TEX_WCSCAT_REC TEX_WCSNCAT_REC;
-TMD_RECHEAD (WCSNCAT);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSNCMP: int *wcsncmp (const wchar_t *ws1, const wchar_t *ws2, */
-/* size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSNCAT_REC TIN_WCSNCMP_REC;
-typedef TEX_ERRET_REC (int) TEX_WCSNCMP_REC;
-TMD_RECHEAD (WCSNCMP);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSNCPY: wchar_t *wcsncpy (wchar_t *ws1, const wchar_t *ws2, */
-/* size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t ws[WCSSIZE]; /* ws2: original string */
- size_t n;
-}
-TIN_WCSNCPY_REC;
-
-typedef TEX_WCSCPY_REC TEX_WCSNCPY_REC;
-TMD_RECHEAD (WCSNCPY);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSPBRK: wchar_t *wcspbrk (const wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCSPN_REC TIN_WCSPBRK_REC;
-
-typedef struct
-{
- TMD_ERRET (wchar_t *);
- wchar_t wc;
-}
-TEX_WCSPBRK_REC;
-
-TMD_RECHEAD (WCSPBRK);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSRTOMBS: size_t wcsrtombs (char *s, const wchar_t **ws, size_t n, */
-/* mbstate_t *ps) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- int s_flg;
- int w_flg; /* don't need this */
- wchar_t ws[WCSSIZE];
- size_t n;
- int t_flg;
- int t_init;
-}
-TIN_WCSRTOMBS_REC;
-
-typedef struct
-{
- TMD_ERRET (size_t);
- char s[MBSSIZE];
-}
-TEX_WCSRTOMBS_REC;
-
-TMD_RECHEAD (WCSRTOMBS);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSSPN: size_t wcsspn (const wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCSPN_REC TIN_WCSSPN_REC;
-typedef TEX_WCSCSPN_REC TEX_WCSSPN_REC;
-TMD_RECHEAD (WCSSPN);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSSTR: wchar_t *wcsstr (const wchar_t *ws1, const wchar_t *ws2) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSCSPN_REC TIN_WCSSTR_REC;
-typedef TEX_ERRET_REC (wchar_t *) TEX_WCSSTR_REC;
-TMD_RECHEAD (WCSSTR);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSTOD: double wcstod (const wchar_t *np, wchar_t **endp) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t np[WCSSIZE];
-}
-TIN_WCSTOD_REC;
-
-typedef struct
-{
- TMD_ERRET (double);
- double val;
- wchar_t fwc;
-}
-TEX_WCSTOD_REC;
-
-TMD_RECHEAD (WCSTOD);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSTOK: wchar_t *wcstok (wchar_t *ws, const wchar_t *dlm, */
-/* wchar_t **pt) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- struct
- {
- int w_flg;
- wchar_t ws[WCSSIZE];
- wchar_t dt[WCSSIZE]; /* delimiter */
- }
- seq[WCSTOK_SEQNUM];
-}
-TIN_WCSTOK_REC;
-
-typedef struct
-{
- struct
- {
- TMD_ERRET (wchar_t *);
- wchar_t ws[WCSSIZE];
- }
- seq[WCSTOK_SEQNUM];
-}
-TEX_WCSTOK_REC;
-
-TMD_RECHEAD (WCSTOK);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSTOMBS: size_t wcstombs (char s, const wchar_t *ws, size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- int s_flg;
- int w_flg; /* currently we don't need it. */
- wchar_t ws[WCSSIZE];
- size_t n;
-}
-TIN_WCSTOMBS_REC;
-
-typedef struct
-{
- TMD_ERRET (size_t);
- char s[MBSSIZE];
-}
-TEX_WCSTOMBS_REC;
-
-TMD_RECHEAD (WCSTOMBS);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSWIDTH: int wcswidth (const wchar_t *ws, size_t n) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCSNCPY_REC TIN_WCSWIDTH_REC;
-typedef TEX_ERRET_REC (int) TEX_WCSWIDTH_REC;
-TMD_RECHEAD (WCSWIDTH);
-
-
-/*----------------------------------------------------------------------*/
-/* WCSXFRM: size_t wcsxfrm (wchar_t *ws1, const wchar_t *ws2, size_t n)*/
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t org1[WCSSIZE];
- wchar_t org2[WCSSIZE];
- int n1, n2;
-}
-TIN_WCSXFRM_REC;
-
-typedef TEX_ERRET_REC (size_t) TEX_WCSXFRM_REC; /* only for org2[] */
-TMD_RECHEAD (WCSXFRM);
-
-
-/*----------------------------------------------------------------------*/
-/* WCTOB: int wctob (wint_t wc) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wint_t wc;
-}
-TIN_WCTOB_REC;
-
-typedef TEX_ERRET_REC (int) TEX_WCTOB_REC;
-TMD_RECHEAD (WCTOB);
-
-
-/*----------------------------------------------------------------------*/
-/* WCTOMB: int wctomb (char *s, wchar_t wc) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- int s_flg;
- wchar_t wc;
-}
-TIN_WCTOMB_REC;
-
-typedef struct
-{
- TMD_ERRET (int);
- char s[MBSSIZE];
-}
-TEX_WCTOMB_REC;
-
-TMD_RECHEAD (WCTOMB);
-
-
-/*----------------------------------------------------------------------*/
-/* WCTRANS: wctrans_t wctrans (const char *charclass) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- char class[MBSSIZE];
-}
-TIN_WCTRANS_REC;
-
-typedef TEX_ERRET_REC (wctrans_t) TEX_WCTRANS_REC;
-TMD_RECHEAD (WCTRANS);
-
-
-/*----------------------------------------------------------------------*/
-/* WCTYPE: wctype_t wctype (const char *class) */
-/*----------------------------------------------------------------------*/
-
-typedef TIN_WCTRANS_REC TIN_WCTYPE_REC;
-typedef TEX_ERRET_REC (wctype_t) TEX_WCTYPE_REC;
-TMD_RECHEAD (WCTYPE);
-
-
-/*----------------------------------------------------------------------*/
-/* WCWIDTH: int wcwidth (wchar_t wc) */
-/*----------------------------------------------------------------------*/
-
-typedef struct
-{
- wchar_t wc;
-}
-TIN_WCWIDTH_REC;
-
-typedef TEX_ERRET_REC (int) TEX_WCWIDTH_REC;
-TMD_RECHEAD (WCWIDTH);
-
-#endif /* TST_TYPES_H */
diff --git a/test/locale-mbwc/tst_wcrtomb.c b/test/locale-mbwc/tst_wcrtomb.c
deleted file mode 100644
index 0029a49..0000000
--- a/test/locale-mbwc/tst_wcrtomb.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- WCRTOMB: wchar_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
-*/
-
-#define TST_FUNCTION wcrtomb
-
-#include "tsp_common.c"
-#include "dat_wcrtomb.c"
-
-
-int
-tst_wcrtomb (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t);
- wchar_t wc;
- char s[MBSSIZE], *s_in, *s_ex;
- char t_flg, t_ini;
- static mbstate_t t = { 0 };
- mbstate_t *pt;
- int err, i;
-
- TST_DO_TEST (wcrtomb)
- {
- TST_HEAD_LOCALE (wcrtomb, S_WCRTOMB);
- TST_DO_REC (wcrtomb)
- {
- TST_GET_ERRET (wcrtomb);
- s_in = ((TST_INPUT (wcrtomb).s_flg) == 0) ? (char *) NULL : s;
- wc = TST_INPUT (wcrtomb).wc;
- t_flg = TST_INPUT (wcrtomb).t_flg;
- t_ini = TST_INPUT (wcrtomb).t_init;
- pt = (t_flg == 0) ? NULL : &t;
-
- if (t_ini != 0)
- {
- memset (&t, 0, sizeof (t));
- }
-
- TST_CLEAR_ERRNO;
- ret = wcrtomb (s_in, wc, pt);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "wcrtomb() [ %s : %d ] ret = %lu\n", locale,
- rec + 1, (unsigned long int) ret);
- fprintf (stdout, " errno = %d\n", errno_save);
- }
-
- TST_IF_RETURN (S_WCRTOMB)
- {
- };
-
- s_ex = TST_EXPECT (wcrtomb).s;
-
- if (s_in)
- {
- for (i = 0, err = 0; *(s_ex + i) != 0 && i < MBSSIZE; i++)
- {
- if (s_in[i] != s_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCRTOMB, CASE_4,
- "copied string is different from an "
- "expected string");
- break;
- }
- }
- if (!err)
- {
- Result (C_SUCCESS, S_WCRTOMB, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcscat.c b/test/locale-mbwc/tst_wcscat.c
deleted file mode 100644
index 3dc9809..0000000
--- a/test/locale-mbwc/tst_wcscat.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- WCSCAT: wchar_t *wcscat (wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcscat
-
-#include "tsp_common.c"
-#include "dat_wcscat.c"
-
-int
-tst_wcscat (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t *ws1, *ws2, *ws_ex;
- int i, err;
-
- TST_DO_TEST (wcscat)
- {
- TST_HEAD_LOCALE (wcscat, S_WCSCAT);
- TST_DO_REC (wcscat)
- {
- TST_GET_ERRET (wcscat);
- ws1 = TST_INPUT (wcscat).ws1; /* external value: size WCSSIZE */
- ws2 = TST_INPUT (wcscat).ws2;
-
- TST_CLEAR_ERRNO;
- ret = wcscat (ws1, ws2);
- TST_SAVE_ERRNO;
-
- TST_IF_RETURN (S_WCSCAT)
- {
- if (ret == ws1)
- {
- Result (C_SUCCESS, S_WCSCAT, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSCAT, CASE_3,
- "the return address may not be correct");
- }
- }
-
- /* function specific test cases here */
-
- if (ret == ws1)
- {
- ws_ex = TST_EXPECT (wcscat).ws;
- for (err = 0, i = 0;
- (ws1[i] != 0L || ws_ex[i] != 0L) && i < WCSSIZE; i++)
- {
- if (debug_flg)
- {
- fprintf (stdout, "tst_wcscat() : ws1[%d] = 0x%lx\n", i,
- (unsigned long int) ws1[i]);
- }
-
- if (ws1[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSCAT, CASE_4,
- "concatinated string is different from an "
- "expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSCAT, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcschr.c b/test/locale-mbwc/tst_wcschr.c
deleted file mode 100644
index b57a05a..0000000
--- a/test/locale-mbwc/tst_wcschr.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- WCSCHR: wchar_t *wcschr (wchar_t *ws, wchar_t wc);
-*/
-
-#define TST_FUNCTION wcschr
-
-#include "tsp_common.c"
-#include "dat_wcschr.c"
-
-int
-tst_wcschr (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t *ws, wc;
-
- TST_DO_TEST (wcschr)
- {
- TST_HEAD_LOCALE (wcschr, S_WCSCHR);
- TST_DO_REC (wcschr)
- {
- TST_GET_ERRET (wcschr);
- ws = TST_INPUT (wcschr).ws; /* external value: size WCSSIZE */
- wc = TST_INPUT (wcschr).wc;
- ret = wcschr (ws, wc);
-
- if (debug_flg)
- {
- if (ret)
- {
- fprintf (stderr, "wcschr: ret = 0x%lx\n",
- (unsigned long int) *ret);
- }
- else
- {
- fprintf (stderr, "wcschr: ret = NULL pointer\n");
- }
- }
-
- TST_IF_RETURN (S_WCSCHR)
- {
- if (ret == NULL)
- {
- if (debug_flg)
- {
- fprintf (stderr, "*** Warning *** tst_wcschr: "
- "set ret_flg=1 to check NULL return value\n");
- }
-
- warn_count++;
- Result (C_INVALID, S_WCSCHR, CASE_3, "(check the test data) "
- "set ret_flg=1 to check NULL return value");
- continue;
- }
-
- if (*ret == wc)
- {
- Result (C_SUCCESS, S_WCSCHR, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSCHR, CASE_3,
- "the returned address of the string seems to be wrong");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcscmp.c b/test/locale-mbwc/tst_wcscmp.c
deleted file mode 100644
index 594682c..0000000
--- a/test/locale-mbwc/tst_wcscmp.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- WCSCMP: int wcscmp (const wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcscmp
-
-#include "tsp_common.c"
-#include "dat_wcscmp.c"
-
-
-int
-tst_wcscmp (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t *ws1, *ws2;
-
- TST_DO_TEST (wcscmp)
- {
- TST_HEAD_LOCALE (wcscmp, S_WCSCMP);
- TST_DO_REC (wcscmp)
- {
- TST_GET_ERRET (wcscmp);
- ws1 = TST_INPUT (wcscmp).ws1;
- ws2 = TST_INPUT (wcscmp).ws2;
- ret = wcscmp (ws1, ws2);
- ret = (ret > 0 ? 1 : ret < 0 ? -1 : 0);
-
- if (debug_flg)
- {
- fprintf (stderr, "tst_wcscmp: ret = %d\n", ret);
- }
-
- TST_IF_RETURN (S_WCSCMP)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcscoll.c b/test/locale-mbwc/tst_wcscoll.c
deleted file mode 100644
index 929f80d..0000000
--- a/test/locale-mbwc/tst_wcscoll.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- WCSCOLL: int wcscoll (const wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcscoll
-
-#include "tsp_common.c"
-#include "dat_wcscoll.c"
-
-int
-tst_wcscoll (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t *ws1, *ws2;
- int cmp;
-
- TST_DO_TEST (wcscoll)
- {
- TST_HEAD_LOCALE (wcscoll, S_WCSCOLL);
- TST_DO_REC (wcscoll)
- {
- TST_GET_ERRET (wcscoll);
- ws1 = TST_INPUT (wcscoll).ws1; /* external value: size WCSSIZE */
- ws2 = TST_INPUT (wcscoll).ws2;
-
- TST_CLEAR_ERRNO;
- ret = wcscoll (ws1, ws2);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stderr, "tst_wcscoll: ret = %d\n", ret);
- }
-
- cmp = TST_EXPECT (wcscoll).cmp_flg;
- TST_IF_RETURN (S_WCSCOLL)
- {
- if (cmp != 0)
- {
- if ((cmp == 1 && ret > 0) || (cmp == -1 && ret < 0))
- {
- Result (C_SUCCESS, S_WCSCOLL, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- if (cmp == 1)
- {
- if (ret == 0)
- Result (C_FAILURE, S_WCSCOLL, CASE_3,
- "the return value should be positive"
- " but it's zero.");
- else
- Result (C_FAILURE, S_WCSCOLL, CASE_3,
- "the return value should be positive"
- " but it's negative.");
- }
- else
- {
- if (ret == 0)
- Result (C_FAILURE, S_WCSCOLL, CASE_3,
- "the return value should be negative"
- " but it's zero.");
- else
- Result (C_FAILURE, S_WCSCOLL, CASE_3,
- "the return value should be negative"
- " but it's positive.");
- }
- }
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcscpy.c b/test/locale-mbwc/tst_wcscpy.c
deleted file mode 100644
index d5705a5..0000000
--- a/test/locale-mbwc/tst_wcscpy.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/*-------------------------------------------------------------------------------------*/
-/* WCSCPY: wchar_t *wcscpy( wchar_t *ws1, const wchar_t *ws2 ) */
-/*-------------------------------------------------------------------------------------*/
-#define TST_FUNCTION wcscpy
-
-#include "tsp_common.c"
-#include "dat_wcscpy.c"
-
-int
-tst_wcscpy (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t ws1[WCSSIZE], *ws2, *ws_ex;
- int err, i;
-
- TST_DO_TEST (wcscpy)
- {
- TST_HEAD_LOCALE (wcscpy, S_WCSCPY);
- TST_DO_REC (wcscpy)
- {
- TST_GET_ERRET (wcscpy);
- ws2 = TST_INPUT (wcscpy).ws; /* external value: size WCSSIZE */
- ret = wcscpy (ws1, ws2);
-
- TST_IF_RETURN (S_WCSCPY)
- {
- if (ret == ws1)
- {
- Result (C_SUCCESS, S_WCSCPY, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSCPY, CASE_3,
- "the return address may not be correct");
- }
- }
-
- if (ret == ws1)
- {
- ws_ex = TST_EXPECT (wcscpy).ws;
-
- for (err = 0, i = 0;
- (ws1[i] != 0L || ws_ex[i] != 0L) && i < WCSSIZE; i++)
- {
- if (debug_flg)
- {
- fprintf (stderr,
- "ws1[ %d ] = 0x%lx <-> wx_ex[ %d ] = 0x%lx\n", i,
- (unsigned long int) ws1[i], i,
- (unsigned long int) ws_ex[i]);
- }
-
- if (ws1[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSCPY, CASE_4,
- "copied string is different from an"
- " expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSCPY, CASE_4, MS_PASSED);
- }
-
- if (ws1[i] == 0L)
- {
- Result (C_SUCCESS, S_WCSCPY, CASE_5, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSCPY, CASE_5,
- "copied string is not null-terminated");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcscspn.c b/test/locale-mbwc/tst_wcscspn.c
deleted file mode 100644
index e1c8892..0000000
--- a/test/locale-mbwc/tst_wcscspn.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- WCSCSPN: size_t wcscspn (const wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcscspn
-
-#include "tsp_common.c"
-#include "dat_wcscspn.c"
-
-int
-tst_wcscspn (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- wchar_t *ws1, *ws2;
-
- TST_DO_TEST (wcscspn)
- {
- TST_HEAD_LOCALE (wcscspn, S_WCSCSPN);
- TST_DO_REC (wcscspn)
- {
- TST_GET_ERRET (wcscspn);
- ws1 = TST_INPUT (wcscspn).ws1;
- ws2 = TST_INPUT (wcscspn).ws2; /* external value: size WCSSIZE */
- ret = wcscspn (ws1, ws2);
-
- if (debug_flg)
- {
- fprintf (stderr, "wcscspn: ret = %zu\n", ret);
- }
-
- TST_IF_RETURN (S_WCSCSPN)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcslen.c b/test/locale-mbwc/tst_wcslen.c
deleted file mode 100644
index d0ffa5a..0000000
--- a/test/locale-mbwc/tst_wcslen.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- WCSLEN: size_t wcslen (const wchar_t *ws);
-*/
-
-#define TST_FUNCTION wcslen
-
-#include "tsp_common.c"
-#include "dat_wcslen.c"
-
-int
-tst_wcslen (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- wchar_t *ws;
-
- TST_DO_TEST (wcslen)
- {
- TST_HEAD_LOCALE (wcslen, S_WCSLEN);
- TST_DO_REC (wcslen)
- {
- TST_GET_ERRET (wcslen);
- ws = TST_INPUT (wcslen).ws;
- ret = wcslen (ws);
- TST_IF_RETURN (S_WCSLEN)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsncat.c b/test/locale-mbwc/tst_wcsncat.c
deleted file mode 100644
index a2f6ba0..0000000
--- a/test/locale-mbwc/tst_wcsncat.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- WCSNCAT: wchar_t *wcsncat (wchar_t *ws1, const wchar_t *ws2, size_t n);
-*/
-
-#define TST_FUNCTION wcsncat
-
-#include "tsp_common.c"
-#include "dat_wcsncat.c"
-
-int
-tst_wcsncat (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t *ws1, *ws2, *ws_ex;
- int n, i, err;
-
- TST_DO_TEST (wcsncat)
- {
- TST_HEAD_LOCALE (wcsncat, S_WCSNCAT);
- TST_DO_REC (wcsncat)
- {
- TST_GET_ERRET (wcsncat);
- ws1 = TST_INPUT (wcsncat).ws1; /* external value: size WCSSIZE */
- ws2 = TST_INPUT (wcsncat).ws2;
- n = TST_INPUT (wcsncat).n;
- ret = wcsncat (ws1, ws2, n);
-
- TST_IF_RETURN (S_WCSNCAT)
- {
- if (ret == ws1)
- {
- Result (C_SUCCESS, S_WCSNCAT, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSNCAT, CASE_3,
- "the return address may not be correct");
- }
- }
-
- if (ret == ws1)
- {
- ws_ex = TST_EXPECT (wcsncat).ws;
-
- for (err = 0, i = 0;
- (ws1[i] != 0L || ws_ex[i] != 0L) && i < WCSSIZE; i++)
- {
- if (debug_flg)
- {
- fprintf (stderr, "ws1[%d] = 0x%lx\n", i,
- (unsigned long int) ws1[i]);
- }
-
- if (ws1[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSNCAT, CASE_4,
- "the concatinated string has "
- "different value from an expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSNCAT, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsncmp.c b/test/locale-mbwc/tst_wcsncmp.c
deleted file mode 100644
index d046ecd..0000000
--- a/test/locale-mbwc/tst_wcsncmp.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*-------------------------------------------------------------------------------------*/
-/* WCSNCMP: int wcsncmp( const wchar_t *ws1, const wchar_t *ws2, size_t n ) */
-/*-------------------------------------------------------------------------------------*/
-
-#define TST_FUNCTION wcsncmp
-
-#include "tsp_common.c"
-#include "dat_wcsncmp.c"
-
-int
-tst_wcsncmp (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t *ws1, *ws2;
- size_t n;
-
- TST_DO_TEST (wcsncmp)
- {
- TST_HEAD_LOCALE (wcsncmp, S_WCSNCMP);
- TST_DO_REC (wcsncmp)
- {
- TST_GET_ERRET (wcsncmp);
- ws1 = TST_INPUT (wcsncmp).ws1; /* external value: size WCSSIZE */
- ws2 = TST_INPUT (wcsncmp).ws2;
- n = TST_INPUT (wcsncmp).n;
- ret = wcsncmp (ws1, ws2, n);
-
- if (debug_flg)
- {
- fprintf (stderr, "tst_wcsncmp: ret = %d, 0x%x\n", ret, ret);
- }
-
- TST_IF_RETURN (S_WCSNCMP)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsncpy.c b/test/locale-mbwc/tst_wcsncpy.c
deleted file mode 100644
index 814bbc0..0000000
--- a/test/locale-mbwc/tst_wcsncpy.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- WCSNCPY: wchar_t *wcsncpy (wchar_t *ws1, const wchar_t *ws2, size_t n);
-*/
-
-#define TST_FUNCTION wcsncpy
-
-#include "tsp_common.c"
-#include "dat_wcsncpy.c"
-
-#define WCSNUM_NCPY 7
-
-int
-tst_wcsncpy (FILE *fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t ws1[WCSSIZE] =
- { 0x9999, 0x9999, 0x9999, 0x9999, 0x9999, 0x9999, 0x0000 };
- wchar_t *ws2, *ws_ex;
- int err, i;
- size_t n;
-
- TST_DO_TEST (wcsncpy)
- {
- TST_HEAD_LOCALE (wcsncpy, S_WCSNCPY);
- TST_DO_REC (wcsncpy)
- {
- TST_GET_ERRET (wcsncpy);
-
- for (n = 0; n < WCSNUM_NCPY - 1; ++n)
- {
- ws1[n] = 0x9999;
- }
-
- ws1[n] = 0;
- ws2 = TST_INPUT (wcsncpy).ws; /* external value: size WCSSIZE */
- n = TST_INPUT (wcsncpy).n;
- ret = wcsncpy (ws1, ws2, n);
-
- TST_IF_RETURN (S_WCSNCPY)
- {
- if (ret == ws1)
- {
- Result (C_SUCCESS, S_WCSNCPY, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSNCPY, CASE_3,
- "the return address may not be correct");
- }
- }
-
- if (ret == ws1)
- {
- if (debug_flg)
- {
- fprintf (stderr, "\nwcsncpy: n = %zu\n\n", n);
- }
-
- ws_ex = TST_EXPECT (wcsncpy).ws;
-
- for (err = 0, i = 0; i < WCSNUM_NCPY && i < WCSSIZE; i++)
- {
- if (debug_flg)
- fprintf (stderr,
- "wcsncpy: ws1[ %d ] = 0x%lx <-> wx_ex[ %d ] = 0x%lx\n",
- i, (unsigned long int) ws1[i], i,
- (unsigned long int) ws_ex[i]);
-
- if (ws1[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSNCPY, CASE_4,
- "copied string is different from an "
- "expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSNCPY, CASE_4, MS_PASSED);
- }
-
- /* A null terminate character is not supposed to be copied
- unless (num chars of ws2)<n. */
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcspbrk.c b/test/locale-mbwc/tst_wcspbrk.c
deleted file mode 100644
index 95c1c0f..0000000
--- a/test/locale-mbwc/tst_wcspbrk.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- WCSPBRK: wchar_t *wcspbrk (const wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcspbrk
-
-#include "tsp_common.c"
-#include "dat_wcspbrk.c"
-
-int
-tst_wcspbrk (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t *ws1, *ws2;
- int err;
- wchar_t wc_ex;
-
- TST_DO_TEST (wcspbrk)
- {
- TST_HEAD_LOCALE (wcspbrk, S_WCSPBRK);
- TST_DO_REC (wcspbrk)
- {
- TST_GET_ERRET (wcspbrk);
- ws1 = TST_INPUT (wcspbrk).ws1;
- ws2 = TST_INPUT (wcspbrk).ws2;
-
- ret = wcspbrk (ws1, ws2);
-
- if (debug_flg)
- {
- fprintf (stdout, "wcspbrk() [ %s : %d ] ret = %s\n", locale,
- rec + 1, (ret == NULL) ? "null" : "not null");
- if (ret)
- fprintf (stderr,
- " ret[0] = 0x%lx : 0x%lx = ws2[0]\n",
- (unsigned long int) ret[0], (unsigned long int) ws2[0]);
- }
-
- TST_IF_RETURN (S_WCSPBRK)
- {
- if (ws2[0] == 0)
- {
- if (ret == ws1)
- {
- Result (C_SUCCESS, S_WCSPBRK, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSPBRK, CASE_3,
- "return address is not same address as ws1");
- }
-
- continue;
- }
-
- wc_ex = TST_EXPECT (wcspbrk).wc;
-
- if (debug_flg)
- fprintf (stdout,
- " *ret = 0x%lx <-> 0x%lx = wc_ex\n",
- (unsigned long int) *ret, (unsigned long int) wc_ex);
-
- if (*ret != wc_ex)
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSPBRK, CASE_4, "the pointed wc is "
- "different from an expected wc");
- }
- else
- {
- Result (C_SUCCESS, S_WCSPBRK, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsrtombs.c b/test/locale-mbwc/tst_wcsrtombs.c
deleted file mode 100644
index 3a8edcc..0000000
--- a/test/locale-mbwc/tst_wcsrtombs.c
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- WCSRTOMBS: size_t wcsrtombs (char *s, const wchar_t **ws, size_t n,
- mbstate_t *ps)
-*/
-
-#define TST_FUNCTION wcsrtombs
-
-#include "tsp_common.c"
-#include "dat_wcsrtombs.c"
-
-#define MARK_VAL 0x01
-
-int
-tst_wcsrtombs (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char s_flg, n;
- const wchar_t *ws, *wp;
- char s[MBSSIZE], *s_in;
- char t_flg, t_ini;
- static mbstate_t t = { 0 };
- mbstate_t *pt;
- int err, i;
- char *s_ex;
-
- TST_DO_TEST (wcsrtombs)
- {
- TST_HEAD_LOCALE (wcsrtombs, S_WCSRTOMBS);
- TST_DO_REC (wcsrtombs)
- {
- TST_GET_ERRET (wcsrtombs);
- memset (s, MARK_VAL, MBSSIZE);
-
- s_flg = TST_INPUT (wcsrtombs).s_flg;
- s_in = (s_flg == 1) ? s : (char *) NULL;
- wp = ws = TST_INPUT (wcsrtombs).ws;
- n = TST_INPUT (wcsrtombs).n;
- t_flg = TST_INPUT (wcsrtombs).t_flg;
- t_ini = TST_INPUT (wcsrtombs).t_init;
- pt = (t_flg == 0) ? NULL : &t;
-
- if (t_ini != 0)
- {
- memset (&t, 0, sizeof (t));
- }
-
- TST_CLEAR_ERRNO;
- ret = wcsrtombs (s_in, &wp, n, pt);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stderr, "wcsrtombs: ret = %zu\n", ret);
- }
-
- TST_IF_RETURN (S_WCSRTOMBS)
- {
- };
-
- if (s_in != NULL && ret != (size_t) - 1)
- {
- /* No definition for s, when error occurs. */
- s_ex = TST_EXPECT (wcsrtombs).s;
-
- for (err = 0, i = 0; i <= ret && i < MBSSIZE; i++)
- {
- if (debug_flg)
- {
- fprintf (stderr,
- " : s[%d] = 0x%hx <-> 0x%hx = s_ex[%d]\n", i,
- s[i], s_ex[i], i);
- }
-
- if (i == ret && ret == n) /* no null termination */
- {
- if (s[i] == MARK_VAL)
- {
- Result (C_SUCCESS, S_WCSRTOMBS, CASE_4, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSRTOMBS, CASE_4,
- "should not be null terminated "
- "(it may be a null char), but it is");
- }
-
- break;
- }
-
- if (i == ret && ret < n) /* null termination */
- {
- if (s[i] == 0)
- {
- Result (C_SUCCESS, S_WCSRTOMBS, CASE_5, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSRTOMBS, CASE_5,
- "should be null terminated, but it is not");
- }
-
- break;
- }
-
- if (s[i] != s_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSRTOMBS, CASE_6,
- "converted string is different from an"
- " expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSRTOMBS, CASE_6, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsspn.c b/test/locale-mbwc/tst_wcsspn.c
deleted file mode 100644
index 02157ee..0000000
--- a/test/locale-mbwc/tst_wcsspn.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- WCSSPN: size_t wcsspn (const wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcsspn
-
-#include "tsp_common.c"
-#include "dat_wcsspn.c"
-
-int
-tst_wcsspn (FILE *fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- wchar_t *ws1, *ws2;
-
- TST_DO_TEST (wcsspn)
- {
- TST_HEAD_LOCALE (wcsspn, S_WCSSPN);
- TST_DO_REC (wcsspn)
- {
- TST_GET_ERRET (wcsspn);
- ws1 = TST_INPUT (wcsspn).ws1;
- ws2 = TST_INPUT (wcsspn).ws2; /* external value: size WCSSIZE */
- ret = wcsspn (ws1, ws2);
-
- if (debug_flg)
- {
- fprintf (stderr, "wcsspn: ret = %zu\n", ret);
- }
-
- TST_IF_RETURN (S_WCSSPN)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsstr.c b/test/locale-mbwc/tst_wcsstr.c
deleted file mode 100644
index f8b00c4..0000000
--- a/test/locale-mbwc/tst_wcsstr.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- WCSSTR: wchar_t *wcsstr (const wchar_t *ws1, const wchar_t *ws2);
-*/
-
-#define TST_FUNCTION wcsstr
-
-#include "tsp_common.c"
-#include "dat_wcsstr.c"
-
-int
-tst_wcsstr (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- wchar_t *ws1, *ws2;
- int err, i;
-
- TST_DO_TEST (wcsstr)
- {
- TST_HEAD_LOCALE (wcsstr, S_WCSSTR);
- TST_DO_REC (wcsstr)
- {
- TST_GET_ERRET (wcsstr);
- ws1 = TST_INPUT (wcsstr).ws1;
- ws2 = TST_INPUT (wcsstr).ws2; /* external value: size WCSSIZE */
- ret = wcsstr (ws1, ws2);
-
- if (debug_flg)
- {
- fprintf (stderr, "wcsstr: %d : ret = %s\n", rec + 1,
- (ret == NULL) ? "null" : "not null");
- if (ret)
- {
- fprintf (stderr,
- " ret[ 0 ] = 0x%lx <-> 0x%lx = ws2[ 0 ]\n",
- (unsigned long int) ret[0], (unsigned long int) ws2[0]);
- }
- }
-
- TST_IF_RETURN (S_WCSSTR)
- {
- if (ws2[0] == 0)
- {
- if (ret == ws1)
- {
- Result (C_SUCCESS, S_WCSSTR, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSSTR, CASE_3,
- "return address is not same address as ws1");
- }
-
- continue;
- }
-
- for (i = 0, err = 0; *(ws2 + i) != 0 && i < WCSSIZE; i++)
- {
- if (debug_flg)
- {
- fprintf (stderr,
- " : ret[ %d ] = 0x%lx <-> 0x%lx = ws2[ %d ]\n",
- i, (unsigned long int) ret[i],
- (unsigned long int) ws2[i], i);
- }
-
- if (ret[i] != ws2[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSSTR, CASE_4, "pointed sub-string is "
- "different from an expected sub-string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSSTR, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcstod.c b/test/locale-mbwc/tst_wcstod.c
deleted file mode 100644
index 1648d35..0000000
--- a/test/locale-mbwc/tst_wcstod.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- WCSTOD: double wcstod (wchar_t *np, const wchar_t **endp);
-*/
-
-#define TST_FUNCTION wcstod
-
-#include "tsp_common.c"
-#include "dat_wcstod.c"
-
-int
-tst_wcstod (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (double);
- wchar_t *np, *endp, fwc;
- double val;
-
- TST_DO_TEST (wcstod)
- {
- TST_HEAD_LOCALE (wcstod, S_WCSTOD);
- TST_DO_REC (wcstod)
- {
- TST_GET_ERRET (wcstod);
- np = TST_INPUT (wcstod).np;
-
- TST_CLEAR_ERRNO;
- ret = wcstod (np, &endp);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "wcstod() [ %s : %d ] ret = %f\n", locale,
- rec + 1, ret);
- fprintf (stdout, " *endp = 0x%lx\n",
- (unsigned long int) *endp);
- }
-
- TST_IF_RETURN (S_WCSTOD)
- {
- if (ret != 0)
- {
- val = ret - TST_EXPECT (wcstod).val;
- if (TST_ABS (val) < TST_DBL_EPS)
- {
- Result (C_SUCCESS, S_WCSTOD, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSTOD, CASE_3, "return value is wrong");
- }
- }
- }
-
- fwc = TST_EXPECT (wcstod).fwc;
-
- if (fwc == *endp)
- {
- Result (C_SUCCESS, S_WCSTOD, CASE_4, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSTOD, CASE_4, "a final wc is wrong.");
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcstok.c b/test/locale-mbwc/tst_wcstok.c
deleted file mode 100644
index 1222b97..0000000
--- a/test/locale-mbwc/tst_wcstok.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- WCSTOK: wchar_t *wcstok (wchar_t *ws, const wchar_t *dlm, wchar_t **pt);
-*/
-
-
-#define TST_FUNCTION wcstok
-
-#include "tsp_common.c"
-#include "dat_wcstok.c"
-
-int
-tst_wcstok (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wchar_t *);
- char w_flg;
- wchar_t *ws;
- wchar_t *dt, *pt;
- wchar_t *ws_ex;
- int err, i;
-
- TST_DO_TEST (wcstok)
- {
- TST_HEAD_LOCALE (wcstok, S_WCSTOK);
- TST_DO_REC (wcstok)
- {
- TST_DO_SEQ (WCSTOK_SEQNUM)
- {
- TST_GET_ERRET_SEQ (wcstok);
- w_flg = TST_INPUT_SEQ (wcstok).w_flg;
- ws = (w_flg) ? TST_INPUT_SEQ (wcstok).ws : NULL;
- dt = TST_INPUT_SEQ (wcstok).dt;
-
- ret = wcstok (ws, dt, &pt);
-
- if (debug_flg)
- {
- fprintf (stdout, "wcstok() [ %s : %d : %d ] *ret = 0x%lx\n",
- locale, rec + 1, seq_num + 1, (unsigned long int) *ret);
- if (pt && *pt)
- {
- fprintf (stdout, " *pt = 0x%lx\n",
- (unsigned long int) *pt);
- }
- }
-
- TST_IF_RETURN (S_WCSTOK)
- {
- };
-
- if (ret != NULL)
- {
- ws_ex = TST_EXPECT_SEQ (wcstok).ws;
-
- /* XXX: REVISIT : insufficient conditions */
- for (err = 0, i = 0; i < WCSSIZE; i++)
- {
- if (ret[i] == L'\0' && ws_ex[i] == L'\0')
- {
- break;
- }
-
- if (debug_flg)
- {
- fprintf (stderr,
- " ret[%d] = 0x%lx <-> "
- "0x%lx = ws_ex[%d]\n",
- i, (unsigned long int) ret[i],
- (unsigned long int) ws_ex[i], i);
- }
-
- if (ret[i] != ws_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSTOK, CASE_3,
- "the token is different from an expected string");
- break;
- }
-
- if (ret[i] == L'\0' || ws_ex[i] == L'\0')
- {
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSTOK, CASE_3, MS_PASSED);
- }
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcstombs.c b/test/locale-mbwc/tst_wcstombs.c
deleted file mode 100644
index c0851a4..0000000
--- a/test/locale-mbwc/tst_wcstombs.c
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- WCSTOMBS: size_t wcstombs (char *s, const wchar_t *ws, size_t n)
-*/
-
-#define TST_FUNCTION wcstombs
-
-#include "tsp_common.c"
-#include "dat_wcstombs.c"
-
-#define MARK_VAL 0x01
-
-int
-tst_wcstombs (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- char s_flg, n;
- wchar_t *ws;
- char s[MBSSIZE], *s_in;
- int err, i;
- char *s_ex;
-
- TST_DO_TEST (wcstombs)
- {
- TST_HEAD_LOCALE (wcstombs, S_WCSTOMBS);
- TST_DO_REC (wcstombs)
- {
- TST_GET_ERRET (wcstombs);
- memset (s, MARK_VAL, MBSSIZE);
-
- s_flg = TST_INPUT (wcstombs).s_flg;
- s_in = (s_flg == 1) ? s : (char *) NULL;
- ws = TST_INPUT (wcstombs).ws;
- n = TST_INPUT (wcstombs).n;
-
- TST_CLEAR_ERRNO;
- ret = wcstombs (s_in, ws, n);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "wcstombs: ret = %zu\n", ret);
- }
-
- TST_IF_RETURN (S_WCSTOMBS)
- {
- };
-
- if (s_in != NULL && ret != (size_t) - 1)
- {
- /* No definition for s, when error occurs. */
- s_ex = TST_EXPECT (wcstombs).s;
-
- for (err = 0, i = 0; i <= ret && i < MBSSIZE; i++)
- {
- if (debug_flg)
- {
- fprintf (stdout,
- " : s[%d] = 0x%hx <-> 0x%hx = s_ex[%d]\n", i,
- s[i], s_ex[i], i);
- }
-
- if (i == ret && ret == n) /* no null termination */
- {
- if (s[i] == MARK_VAL)
- {
- Result (C_SUCCESS, S_WCSTOMBS, CASE_4, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSTOMBS, CASE_4,
- "should not be null terminated "
- "(it may be a null char), but it is");
- }
-
- break;
- }
-
- if (i == ret && ret < n) /* null termination */
- {
- if (s[i] == 0)
- {
- Result (C_SUCCESS, S_WCSTOMBS, CASE_5, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSTOMBS, CASE_5,
- "should be null terminated, but it is not");
- }
-
- break;
- }
-
- if (s[i] != s_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCSTOMBS, CASE_6,
- "converted string is different from an "
- "expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCSTOMBS, CASE_6, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcswidth.c b/test/locale-mbwc/tst_wcswidth.c
deleted file mode 100644
index c836975..0000000
--- a/test/locale-mbwc/tst_wcswidth.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- WCSWIDTH: int wcswidth (const wchar_t *ws, size_t n);
-*/
-
-#define TST_FUNCTION wcswidth
-
-#include "tsp_common.c"
-#include "dat_wcswidth.c"
-
-int
-tst_wcswidth (FILE *fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t *ws;
- int n;
-
- TST_DO_TEST (wcswidth)
- {
- TST_HEAD_LOCALE (wcswidth, S_WCSWIDTH);
- TST_DO_REC (wcswidth)
- {
- TST_GET_ERRET (wcswidth);
- ws = TST_INPUT (wcswidth).ws;
- n = TST_INPUT (wcswidth).n;
- ret = wcswidth (ws, n);
-
- if (debug_flg)
- {
- fprintf (stderr, "wcswidth: [ %d ] : ret = %d\n", rec + 1, ret);
- }
-
- TST_IF_RETURN (S_WCSWIDTH)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcsxfrm.c b/test/locale-mbwc/tst_wcsxfrm.c
deleted file mode 100644
index 6fb8a1c..0000000
--- a/test/locale-mbwc/tst_wcsxfrm.c
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- WCSXFRM: size_t wcsxfrm (wchar_t *ws1, const wchar_t *ws2, size_t n);
-*/
-
-#define TST_FUNCTION wcsxfrm
-
-#include "tsp_common.c"
-#include "dat_wcsxfrm.c"
-
-int
-tst_wcsxfrm (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (size_t);
- wchar_t *org1, *org2;
- wchar_t frm1[MBSSIZE], frm2[MBSSIZE];
- size_t n1, n2;
- int ret_coll, ret_cmp;
-
- TST_DO_TEST (wcsxfrm)
- {
- TST_HEAD_LOCALE (wcsxfrm, S_WCSXFRM);
- TST_DO_REC (wcsxfrm)
- {
- TST_GET_ERRET (wcsxfrm);
- org1 = TST_INPUT (wcsxfrm).org1;
- org2 = TST_INPUT (wcsxfrm).org2;
- n1 = TST_INPUT (wcsxfrm).n1;
- n2 = TST_INPUT (wcsxfrm).n2;
- if (n1 < 0 || sizeof (frm1) < n1 || sizeof (frm2) < n2)
- {
- warn_count++;
- Result (C_IGNORED, S_WCSXFRM, CASE_9,
- "input data n1 or n2 is invalid");
- continue;
- }
-
- /* an errno and a return value are checked
- only for 2nd wcsxfrm() call.
- A result of 1st call is used to compare
- those 2 values by using wcscmp().
- */
-
- TST_CLEAR_ERRNO;
- ret = wcsxfrm (frm1, org1, n1); /* First call */
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stdout, "tst_wcsxfrm() : REC = %d\n", rec + 1);
- fprintf (stdout, "tst_wcsxfrm() : 1st ret = %zu\n", ret);
- }
-
- if (ret == -1 || ret >= n1 || errno_save != 0)
- {
- warn_count++;
- Result (C_INVALID, S_WCSXFRM, CASE_8,
- "got an error in fist wcsxfrm() call");
- continue;
- }
-
- TST_CLEAR_ERRNO;
- /* Second call */
- ret = wcsxfrm (((n2 == 0) ? NULL : frm2), org2, n2);
- TST_SAVE_ERRNO;
-
- TST_IF_RETURN (S_WCSXFRM)
- {
- };
-
- if (n2 == 0 || ret >= n2 || errno != 0)
- {
-#if 0
- warn_count++;
- Result (C_IGNORED, S_WCSXFRM, CASE_7, "did not get a result");
-#endif
- continue;
- }
-
- if (debug_flg)
- {
- fprintf (stdout, "tst_wcsxfrm() : 2nd ret = %zu\n", ret);
- }
-
- /* wcscoll() */
- TST_CLEAR_ERRNO;
- /* depends on wcscoll() ... not good though ... */
- ret_coll = wcscoll (org1, org2);
- TST_SAVE_ERRNO;
-
- if (errno != 0) /* bugs * bugs may got correct results ... */
- {
- warn_count++;
- Result (C_INVALID, S_WCSXFRM, CASE_6,
- "got an error in wcscoll() call");
- continue;
- }
- /* wcscmp() */
- ret_cmp = wcscmp (frm1, frm2);
-
- if ((ret_coll == ret_cmp) || (ret_coll > 0 && ret_cmp > 0)
- || (ret_coll < 0 && ret_cmp < 0))
- {
- Result (C_SUCCESS, S_WCSXFRM, CASE_3,
- MS_PASSED " (depends on wcscoll & wcscmp)");
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCSXFRM, CASE_3,
- "results from wcscoll & wcscmp() do not match");
- }
-
- if (debug_flg)
- {
- fprintf (stdout, "tst_wcsxfrm() : coll = %d <-> %d = cmp\n",
- ret_coll, ret_cmp);
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wctob.c b/test/locale-mbwc/tst_wctob.c
deleted file mode 100644
index 2377daf..0000000
--- a/test/locale-mbwc/tst_wctob.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*-------------------------------------------------------------------------------------*/
-/* WCTOB: int wctob( wint_t wc ) */
-/*-------------------------------------------------------------------------------------*/
-
-#define TST_FUNCTION wctob
-
-#include "tsp_common.c"
-#include "dat_wctob.c"
-
-int
-tst_wctob (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t wc;
-
- TST_DO_TEST (wctob)
- {
- TST_HEAD_LOCALE (wctob, S_WCTOB);
- TST_DO_REC (wctob)
- {
- TST_GET_ERRET (wctob);
- wc = TST_INPUT (wctob).wc;
- ret = wctob (wc);
-
- if (debug_flg)
- {
- fprintf (stderr, "tst_wctob : [ %d ] ret = %d\n", rec + 1, ret);
- }
-
- TST_IF_RETURN (S_WCTOB)
- {
- };
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wctomb.c b/test/locale-mbwc/tst_wctomb.c
deleted file mode 100644
index aea89fe..0000000
--- a/test/locale-mbwc/tst_wctomb.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- WCTOMB: int wctomb (char *s, wchar_t wc)
-*/
-
-#define TST_FUNCTION wctomb
-
-#include "tsp_common.c"
-#include "dat_wctomb.c"
-
-int
-tst_wctomb (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t wc;
- char s[MBSSIZE], *s_in, *s_ex;
- int err, i;
-
- TST_DO_TEST (wctomb)
- {
- TST_HEAD_LOCALE (wctomb, S_WCTOMB);
- TST_DO_REC (wctomb)
- {
- TST_GET_ERRET (wctomb);
- wc = TST_INPUT (wctomb).wc;
- s_in = ((TST_INPUT (wctomb).s_flg) == 0) ? (char *) NULL : s;
- ret = wctomb (s_in, wc);
-
- if (debug_flg)
- {
- fprintf (stdout, "wctomb() [ %s : %d ] ret = %d\n", locale,
- rec + 1, ret);
- }
-
- TST_IF_RETURN (S_WCTOMB)
- {
- if (s_in == NULL) /* state dependency */
- {
- if (ret_exp == +1) /* state-dependent */
- {
- if (ret != 0)
- {
- /* Non-zero means state-dependent encoding. */
- Result (C_SUCCESS, S_WCTOMB, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCTOMB, CASE_3,
- "should be state-dependent encoding, "
- "but a return value shows it is "
- "state-independent");
- }
- }
-
- if (ret_exp == 0) /* state-independent */
- {
- if (ret == 0)
- {
- /* Non-zero means state-dependent encoding. */
- Result (C_SUCCESS, S_WCTOMB, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCTOMB, CASE_3,
- "should be state-independent encoding, "
- "but a return value shows it is state-dependent");
- }
- }
- }
- }
-
- s_ex = TST_EXPECT (wctomb).s;
-
- if (s_in)
- {
- for (i = 0, err = 0; *(s_ex + i) != 0 && i < MBSSIZE; i++)
- {
- if (s_in[i] != s_ex[i])
- {
- err++;
- err_count++;
- Result (C_FAILURE, S_WCTOMB, CASE_4,
- "copied string is different from an"
- " expected string");
- break;
- }
- }
-
- if (!err)
- {
- Result (C_SUCCESS, S_WCTOMB, CASE_4, MS_PASSED);
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wctrans.c b/test/locale-mbwc/tst_wctrans.c
deleted file mode 100644
index b422d6f..0000000
--- a/test/locale-mbwc/tst_wctrans.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- WCTRANS: wctrans_t wctrans (const char *charclass);
-*/
-
-#define TST_FUNCTION wctrans
-
-#include "tsp_common.c"
-#include "dat_wctrans.c"
-
-int
-tst_wctrans (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wctrans_t);
- char *class;
-
- TST_DO_TEST (wctrans)
- {
- TST_HEAD_LOCALE (wctrans, S_WCTRANS);
- TST_DO_REC (wctrans)
- {
- TST_GET_ERRET (wctrans);
- class = TST_INPUT (wctrans).class;
-
- TST_CLEAR_ERRNO;
- ret = wctrans (class);
- TST_SAVE_ERRNO;
-
- if (debug_flg)
- {
- fprintf (stderr, "tst_wctrans : [ %d ] ret = %ld\n", rec + 1,
- (long int) ret);
- fprintf (stderr, " errno = %d\n", errno_save);
- }
-
- TST_IF_RETURN (S_WCTRANS)
- {
- if (ret != 0)
- {
- Result (C_SUCCESS, S_WCTYPE, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCTYPE, CASE_3,
- "should return non-0, but returned 0");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wctype.c b/test/locale-mbwc/tst_wctype.c
deleted file mode 100644
index a203e49..0000000
--- a/test/locale-mbwc/tst_wctype.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- WCTYPE: wctype_t wctype (const char *class);
-*/
-
-
-#define TST_FUNCTION wctype
-
-#include "tsp_common.c"
-#include "dat_wctype.c"
-
-int
-tst_wctype (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (wctype_t);
- char *class;
-
- TST_DO_TEST (wctype)
- {
- TST_HEAD_LOCALE (wctype, S_WCTYPE);
- TST_DO_REC (wctype)
- {
- TST_GET_ERRET (wctype);
- class = TST_INPUT (wctype).class;
- ret = wctype (class);
-
- if (debug_flg)
- {
- fprintf (stderr, "tst_wctype : [ %d ] ret = %ld\n", rec + 1, ret);
- }
-
- TST_IF_RETURN (S_WCTYPE)
- {
- if (ret != 0)
- {
- Result (C_SUCCESS, S_WCTYPE, CASE_3, MS_PASSED);
- }
- else
- {
- err_count++;
- Result (C_FAILURE, S_WCTYPE, CASE_3,
- "should return non-0, but returned 0");
- }
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale-mbwc/tst_wcwidth.c b/test/locale-mbwc/tst_wcwidth.c
deleted file mode 100644
index 6a5af6f..0000000
--- a/test/locale-mbwc/tst_wcwidth.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- WCWIDTH: int wcwidth (wchar_t wc);
-*/
-
-#define TST_FUNCTION wcwidth
-
-#include "tsp_common.c"
-#include "dat_wcwidth.c"
-
-int
-tst_wcwidth (FILE * fp, int debug_flg)
-{
- TST_DECL_VARS (int);
- wchar_t wc;
-
- TST_DO_TEST (wcwidth)
- {
- TST_HEAD_LOCALE (wcwidth, S_WCWIDTH);
- TST_DO_REC (wcwidth)
- {
- TST_GET_ERRET (wcwidth);
- wc = TST_INPUT (wcwidth).wc;
- ret = wcwidth (wc);
-
- if (debug_flg)
- {
- fprintf (stdout, "wcwidth() [ %s : %d ] ret = %d\n", locale,
- rec + 1, ret);
- }
-
- TST_IF_RETURN (S_WCWIDTH)
- {
- }
- }
- }
-
- return err_count;
-}
diff --git a/test/locale/Makefile b/test/locale/Makefile
deleted file mode 100644
index 263f325..0000000
--- a/test/locale/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc locale tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/locale/Makefile.in b/test/locale/Makefile.in
deleted file mode 100644
index 5a57ca5..0000000
--- a/test/locale/Makefile.in
+++ /dev/null
@@ -1,29 +0,0 @@
-# uClibc locale tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-# tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm \
-
-TESTS := bug-iconv-trans bug-usesetlocale collate-test dump-ctype \
- gen-unicode-ctype show-ucs-data tst-ctype \
- tst-digits tst-fmon tst-langinfo tst-leaks tst-mbswcs1 \
- tst-mbswcs2 tst-mbswcs3 tst-mbswcs4 tst-mbswcs5 tst-mbswcs6 \
- tst_nl_langinfo tst-numeric tst-rpmatch tst-setlocale \
- tst-sscanf tst-strfmon1 tst-trans tst-wctype tst-xlocale1 \
- tst-xlocale2 xfrm-test
-
-
-# NOTE: For now disabled some tests that are known not build
-TESTS_DISABLED := tst-ctype tst-fmon tst-leaks tst-rpmatch tst-strfmon1
-
-ifneq ($(UCLIBC_HAS_XLOCALE),y)
-TESTS_DISABLED += bug-usesetlocale tst-xlocale1 tst-xlocale2 xfrm-test tst-C-locale
-endif
-
-DODIFF_rint := 1
-
-EXTRA_CFLAGS := -D__USE_GNU -fno-builtin
-
-OPTS_dump-ctype = C
-OPTS_tst-ctype = < tst-ctype-de_DE.ISO-8859-1.in
-OPTS_tst-langinfo = < tst-langinfo.input
-
-EXTRA_DIRS := C
diff --git a/test/locale/bug-iconv-trans.c b/test/locale/bug-iconv-trans.c
deleted file mode 100644
index 3886247..0000000
--- a/test/locale/bug-iconv-trans.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#include <iconv.h>
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-
-int
-main (void)
-{
- iconv_t cd;
- const char str[] = "�������";
- const char expected[] = "AEaeOEoeUEuess";
- char *inptr = (char *) str;
- size_t inlen = strlen (str) + 1;
- char outbuf[500];
- char *outptr = outbuf;
- size_t outlen = sizeof (outbuf);
- int result = 0;
- size_t n;
-
- if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL)
- {
- puts ("setlocale failed");
- return 1;
- }
-
- cd = iconv_open ("ANSI_X3.4-1968//TRANSLIT", "ISO-8859-1");
- if (cd == (iconv_t) -1)
- {
- puts ("iconv_open failed");
- return 1;
- }
-
- n = iconv (cd, &inptr, &inlen, &outptr, &outlen);
- if (n != 7)
- {
- if (n == (size_t) -1)
- printf ("iconv() returned error: %m\n");
- else
- printf ("iconv() returned %Zd, expected 7\n", n);
- result = 1;
- }
- if (inlen != 0)
- {
- puts ("not all input consumed");
- result = 1;
- }
- else if (inptr - str != strlen (str) + 1)
- {
- printf ("inptr wrong, advanced by %td\n", inptr - str);
- result = 1;
- }
- if (memcmp (outbuf, expected, sizeof (expected)) != 0)
- {
- printf ("result wrong: \"%.*s\", expected: \"%s\"\n",
- (int) (sizeof (outbuf) - outlen), outbuf, expected);
- result = 1;
- }
- else if (outlen != sizeof (outbuf) - sizeof (expected))
- {
- printf ("outlen wrong: %Zd, expected %Zd\n", outlen,
- sizeof (outbuf) - 15);
- result = 1;
- }
- else
- printf ("output is \"%s\" which is OK\n", outbuf);
-
- return result;
-}
diff --git a/test/locale/bug-usesetlocale.c b/test/locale/bug-usesetlocale.c
deleted file mode 100644
index 0637067..0000000
--- a/test/locale/bug-usesetlocale.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Test case for setlocale vs uselocale (LC_GLOBAL_LOCALE) bug. */
-
-#define _GNU_SOURCE 1
-#include <locale.h>
-#include <stdio.h>
-#include <ctype.h>
-
-static int
-do_test (void)
-{
- __locale_t loc_new, loc_old;
-
- int first = !!isalpha(0xE4);
-
- setlocale (LC_ALL, "de_DE");
-
- int global_de = !!isalpha(0xE4);
-
- loc_new = newlocale (1 << LC_ALL, "C", 0);
- loc_old = uselocale (loc_new);
-
- int used_c = !!isalpha(0xE4);
-
- uselocale (loc_old);
-
- int used_global = !!isalpha(0xE4);
-
- printf ("started %d, after setlocale %d\n", first, global_de);
- printf ("after uselocale %d, after LC_GLOBAL_LOCALE %d\n",
- used_c, used_global);
-
- freelocale (loc_new);
- return !(used_c == first && used_global == global_de);
-}
-
-
-#define TEST_FUNCTION do_test ()
-#include "test-skeleton.c"
diff --git a/test/locale/collate-test.c b/test/locale/collate-test.c
deleted file mode 100644
index a84974c..0000000
--- a/test/locale/collate-test.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/* Test collation function using real data.
- Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)cygnus.com>, 1997.
-
- 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/>. */
-
-#include <ctype.h>
-#include <error.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-struct lines
-{
- char *key;
- char *line;
-};
-
-static int xstrcoll (const void *, const void *);
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- size_t nstrings, nstrings_max;
- struct lines *strings;
- char *line = NULL;
- size_t len = 0;
- size_t n;
-
- if (argc < 2)
- error (1, 0, "usage: %s <random seed>", argv[0]);
-
- setlocale (LC_ALL, "");
-
- nstrings_max = 100;
- nstrings = 0;
- strings = (struct lines *) malloc (nstrings_max * sizeof (struct lines));
- if (strings == NULL)
- {
- perror (argv[0]);
- exit (1);
- }
-
- while (1)
- {
- int l;
- if (getline (&line, &len, stdin) < 0)
- break;
-
- if (nstrings == nstrings_max)
- {
- strings = (struct lines *) realloc (strings,
- (nstrings_max *= 2)
- * sizeof (*strings));
- if (strings == NULL)
- {
- perror (argv[0]);
- exit (1);
- }
- }
- strings[nstrings].line = strdup (line);
- l = strcspn (line, ":(;");
- while (l > 0 && isspace (line[l - 1]))
- --l;
- strings[nstrings].key = strndup (line, l);
- ++nstrings;
- }
- free (line);
-
- /* First shuffle. */
- srandom (atoi (argv[1]));
- for (n = 0; n < 10 * nstrings; ++n)
- {
- int r1, r2, r;
- size_t idx1 = random () % nstrings;
- size_t idx2 = random () % nstrings;
- struct lines tmp = strings[idx1];
- strings[idx1] = strings[idx2];
- strings[idx2] = tmp;
-
- /* While we are at it a first little test. */
- r1 = strcoll (strings[idx1].key, strings[idx2].key);
- r2 = strcoll (strings[idx2].key, strings[idx1].key);
- r = r1 * r2;
-
- if (r > 0 || (r == 0 && r1 != 0) || (r == 0 && r2 != 0))
- printf ("`%s' and `%s' collate wrong: %d vs. %d\n",
- strings[idx1].key, strings[idx2].key, r1, r2);
- }
-
- /* Now sort. */
- qsort (strings, nstrings, sizeof (struct lines), xstrcoll);
-
- /* Print the result. */
- for (n = 0; n < nstrings; ++n)
- {
- fputs (strings[n].line, stdout);
- free (strings[n].line);
- free (strings[n].key);
- }
- free (strings);
-
- return result;
-}
-
-
-static int
-xstrcoll (ptr1, ptr2)
- const void *ptr1;
- const void *ptr2;
-{
- const struct lines *l1 = (const struct lines *) ptr1;
- const struct lines *l2 = (const struct lines *) ptr2;
-
- return strcoll (l1->key, l2->key);
-}
diff --git a/test/locale/dump-ctype.c b/test/locale/dump-ctype.c
deleted file mode 100644
index 6cf96d8..0000000
--- a/test/locale/dump-ctype.c
+++ /dev/null
@@ -1,163 +0,0 @@
-/* Dump the character classes and character maps of a locale to a bunch
- of individual files which can be processed with diff, sed etc.
- Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Bruno Haible <haible(a)clisp.cons.org>, 2000.
-
- 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/>. */
-
-/* Usage example:
- $ dump-ctype de_DE.UTF-8
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <wctype.h>
-#include <locale.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <errno.h>
-
-static const char *program_name = "dump-ctype";
-static const char *locale;
-
-static const char *class_names[] =
- {
- "alnum", "alpha", "blank", "cntrl", "digit", "graph", "lower",
- "print", "punct", "space", "upper", "xdigit"
- };
-
-static const char *map_names[] =
- {
- "tolower", "toupper", "totitle"
- };
-
-static void dump_class (const char *class_name)
-{
- wctype_t class;
- FILE *f;
- unsigned int ch;
-
- class = wctype (class_name);
- if (class == (wctype_t) 0)
- {
- fprintf (stderr, "%s %s: noexistent class %s\n", program_name,
- locale, class_name);
- return;
- }
-
- f = fopen (class_name, "w");
- if (f == NULL)
- {
- fprintf (stderr, "%s %s: cannot open file %s/%s\n", program_name,
- locale, locale, class_name);
- exit (1);
- }
-
- for (ch = 0; ch < 0x10000; ch++)
- if (iswctype (ch, class))
- fprintf (f, "0x%04X\n", ch);
-
- if (ferror (f) || fclose (f))
- {
- fprintf (stderr, "%s %s: I/O error on file %s/%s\n", program_name,
- locale, locale, class_name);
- exit (1);
- }
-}
-
-static void dump_map (const char *map_name)
-{
- wctrans_t map;
- FILE *f;
- unsigned int ch;
-
- map = wctrans (map_name);
- if (map == (wctrans_t) 0)
- {
- fprintf (stderr, "%s %s: noexistent map %s\n", program_name,
- locale, map_name);
- return;
- }
-
- f = fopen (map_name, "w");
- if (f == NULL)
- {
- fprintf (stderr, "%s %s: cannot open file %s/%s\n", program_name,
- locale, locale, map_name);
- exit (1);
- }
-
- for (ch = 0; ch < 0x10000; ch++)
- if (towctrans (ch, map) != ch)
- fprintf (f, "0x%04X\t0x%04X\n", ch, towctrans (ch, map));
-
- if (ferror (f) || fclose (f))
- {
- fprintf (stderr, "%s %s: I/O error on file %s/%s\n", program_name,
- locale, locale, map_name);
- exit (1);
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- size_t i;
-
- if (argc != 2)
- {
- fprintf (stderr, "Usage: dump-ctype locale\n");
- exit (1);
- }
- locale = argv[1];
-
- if (setlocale (LC_ALL, locale) == NULL)
- {
- fprintf (stderr, "%s: setlocale cannot switch to locale %s\n",
- program_name, locale);
- exit (1);
- }
-
- if (mkdir (locale, 0777) < 0)
- {
- char buf[100];
- int save_errno = errno;
-
- sprintf (buf, "%s: cannot create directory %s", program_name, locale);
- errno = save_errno;
- perror (buf);
- exit (1);
- }
-
- if (chdir (locale) < 0)
- {
- char buf[100];
- int save_errno = errno;
-
- sprintf (buf, "%s: cannot chdir to %s", program_name, locale);
- errno = save_errno;
- perror (buf);
- exit (1);
- }
-
- for (i = 0; i < sizeof (class_names) / sizeof (class_names[0]); i++)
- dump_class (class_names[i]);
-
- for (i = 0; i < sizeof (map_names) / sizeof (map_names[0]); i++)
- dump_map (map_names[i]);
-
- return 0;
-}
diff --git a/test/locale/gen-unicode-ctype.c b/test/locale/gen-unicode-ctype.c
deleted file mode 100644
index 0c74e6a..0000000
--- a/test/locale/gen-unicode-ctype.c
+++ /dev/null
@@ -1,784 +0,0 @@
-/* Generate a Unicode conforming LC_CTYPE category from a UnicodeData file.
- Copyright (C) 2000-2001 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Bruno Haible <haible(a)clisp.cons.org>, 2000.
-
- 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/>. */
-
-/* Usage example:
- $ gen-unicode /usr/local/share/Unidata/UnicodeData.txt 3.1
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <string.h>
-#include <time.h>
-
-/* This structure represents one line in the UnicodeData.txt file. */
-struct unicode_attribute
-{
- const char *name; /* Character name */
- const char *category; /* General category */
- const char *combining; /* Canonical combining classes */
- const char *bidi; /* Bidirectional category */
- const char *decomposition; /* Character decomposition mapping */
- const char *decdigit; /* Decimal digit value */
- const char *digit; /* Digit value */
- const char *numeric; /* Numeric value */
- int mirrored; /* mirrored */
- const char *oldname; /* Old Unicode 1.0 name */
- const char *comment; /* Comment */
- unsigned int upper; /* Uppercase mapping */
- unsigned int lower; /* Lowercase mapping */
- unsigned int title; /* Titlecase mapping */
-};
-
-/* Missing fields are represented with "" for strings, and NONE for
- characters. */
-#define NONE (~(unsigned int)0)
-
-/* The entire contents of the UnicodeData.txt file. */
-struct unicode_attribute unicode_attributes [0x110000];
-
-/* Stores in unicode_attributes[i] the values from the given fields. */
-static void
-fill_attribute (unsigned int i,
- const char *field1, const char *field2,
- const char *field3, const char *field4,
- const char *field5, const char *field6,
- const char *field7, const char *field8,
- const char *field9, const char *field10,
- const char *field11, const char *field12,
- const char *field13, const char *field14)
-{
- struct unicode_attribute * uni;
-
- if (i >= 0x110000)
- {
- fprintf (stderr, "index too large\n");
- exit (1);
- }
- if (strcmp (field2, "Cs") == 0)
- /* Surrogates are UTF-16 artefacts, not real characters. Ignore them. */
- return;
- uni = &unicode_attributes[i];
- /* Copy the strings. */
- uni->name = strdup (field1);
- uni->category = (field2[0] == '\0' ? "" : strdup (field2));
- uni->combining = (field3[0] == '\0' ? "" : strdup (field3));
- uni->bidi = (field4[0] == '\0' ? "" : strdup (field4));
- uni->decomposition = (field5[0] == '\0' ? "" : strdup (field5));
- uni->decdigit = (field6[0] == '\0' ? "" : strdup (field6));
- uni->digit = (field7[0] == '\0' ? "" : strdup (field7));
- uni->numeric = (field8[0] == '\0' ? "" : strdup (field8));
- uni->mirrored = (field9[0] == 'Y');
- uni->oldname = (field10[0] == '\0' ? "" : strdup (field10));
- uni->comment = (field11[0] == '\0' ? "" : strdup (field11));
- uni->upper = (field12[0] =='\0' ? NONE : strtoul (field12, NULL, 16));
- uni->lower = (field13[0] =='\0' ? NONE : strtoul (field13, NULL, 16));
- uni->title = (field14[0] =='\0' ? NONE : strtoul (field14, NULL, 16));
-}
-
-/* Maximum length of a field in the UnicodeData.txt file. */
-#define FIELDLEN 120
-
-/* Reads the next field from STREAM. The buffer BUFFER has size FIELDLEN.
- Reads up to (but excluding) DELIM.
- Returns 1 when a field was successfully read, otherwise 0. */
-static int
-getfield (FILE *stream, char *buffer, int delim)
-{
- int count = 0;
- int c;
-
- for (; (c = getc (stream)), (c != EOF && c != delim); )
- {
- /* The original unicode.org UnicodeData.txt file happens to have
- CR/LF line terminators. Silently convert to LF. */
- if (c == '\r')
- continue;
-
- /* Put c into the buffer. */
- if (++count >= FIELDLEN - 1)
- {
- fprintf (stderr, "field too long\n");
- exit (1);
- }
- *buffer++ = c;
- }
-
- if (c == EOF)
- return 0;
-
- *buffer = '\0';
- return 1;
-}
-
-/* Stores in unicode_attributes[] the entire contents of the UnicodeData.txt
- file. */
-static void
-fill_attributes (const char *unicodedata_filename)
-{
- unsigned int i, j;
- FILE *stream;
- char field0[FIELDLEN];
- char field1[FIELDLEN];
- char field2[FIELDLEN];
- char field3[FIELDLEN];
- char field4[FIELDLEN];
- char field5[FIELDLEN];
- char field6[FIELDLEN];
- char field7[FIELDLEN];
- char field8[FIELDLEN];
- char field9[FIELDLEN];
- char field10[FIELDLEN];
- char field11[FIELDLEN];
- char field12[FIELDLEN];
- char field13[FIELDLEN];
- char field14[FIELDLEN];
- int lineno = 0;
-
- for (i = 0; i < 0x110000; i++)
- unicode_attributes[i].name = NULL;
-
- stream = fopen (unicodedata_filename, "r");
- if (stream == NULL)
- {
- fprintf (stderr, "error during fopen of '%s'\n", unicodedata_filename);
- exit (1);
- }
-
- for (;;)
- {
- int n;
-
- lineno++;
- n = getfield (stream, field0, ';');
- n += getfield (stream, field1, ';');
- n += getfield (stream, field2, ';');
- n += getfield (stream, field3, ';');
- n += getfield (stream, field4, ';');
- n += getfield (stream, field5, ';');
- n += getfield (stream, field6, ';');
- n += getfield (stream, field7, ';');
- n += getfield (stream, field8, ';');
- n += getfield (stream, field9, ';');
- n += getfield (stream, field10, ';');
- n += getfield (stream, field11, ';');
- n += getfield (stream, field12, ';');
- n += getfield (stream, field13, ';');
- n += getfield (stream, field14, '\n');
- if (n == 0)
- break;
- if (n != 15)
- {
- fprintf (stderr, "short line in'%s':%d\n",
- unicodedata_filename, lineno);
- exit (1);
- }
- i = strtoul (field0, NULL, 16);
- if (field1[0] == '<'
- && strlen (field1) >= 9
- && !strcmp (field1 + strlen(field1) - 8, ", First>"))
- {
- /* Deal with a range. */
- lineno++;
- n = getfield (stream, field0, ';');
- n += getfield (stream, field1, ';');
- n += getfield (stream, field2, ';');
- n += getfield (stream, field3, ';');
- n += getfield (stream, field4, ';');
- n += getfield (stream, field5, ';');
- n += getfield (stream, field6, ';');
- n += getfield (stream, field7, ';');
- n += getfield (stream, field8, ';');
- n += getfield (stream, field9, ';');
- n += getfield (stream, field10, ';');
- n += getfield (stream, field11, ';');
- n += getfield (stream, field12, ';');
- n += getfield (stream, field13, ';');
- n += getfield (stream, field14, '\n');
- if (n != 15)
- {
- fprintf (stderr, "missing end range in '%s':%d\n",
- unicodedata_filename, lineno);
- exit (1);
- }
- if (!(field1[0] == '<'
- && strlen (field1) >= 8
- && !strcmp (field1 + strlen (field1) - 7, ", Last>")))
- {
- fprintf (stderr, "missing end range in '%s':%d\n",
- unicodedata_filename, lineno);
- exit (1);
- }
- field1[strlen (field1) - 7] = '\0';
- j = strtoul (field0, NULL, 16);
- for (; i <= j; i++)
- fill_attribute (i, field1+1, field2, field3, field4, field5,
- field6, field7, field8, field9, field10,
- field11, field12, field13, field14);
- }
- else
- {
- /* Single character line */
- fill_attribute (i, field1, field2, field3, field4, field5,
- field6, field7, field8, field9, field10,
- field11, field12, field13, field14);
- }
- }
- if (ferror (stream) || fclose (stream))
- {
- fprintf (stderr, "error reading from '%s'\n", unicodedata_filename);
- exit (1);
- }
-}
-
-/* Character mappings. */
-
-static unsigned int
-to_upper (unsigned int ch)
-{
- if (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].upper != NONE)
- return unicode_attributes[ch].upper;
- else
- return ch;
-}
-
-static unsigned int
-to_lower (unsigned int ch)
-{
- if (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].lower != NONE)
- return unicode_attributes[ch].lower;
- else
- return ch;
-}
-
-static unsigned int
-to_title (unsigned int ch)
-{
- if (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].title != NONE)
- return unicode_attributes[ch].title;
- else
- return ch;
-}
-
-/* Character class properties. */
-
-static bool
-is_upper (unsigned int ch)
-{
- return (to_lower (ch) != ch);
-}
-
-static bool
-is_lower (unsigned int ch)
-{
- return (to_upper (ch) != ch)
- /* <U00DF> is lowercase, but without simple to_upper mapping. */
- || (ch == 0x00DF);
-}
-
-static bool
-is_alpha (unsigned int ch)
-{
- return (unicode_attributes[ch].name != NULL
- && ((unicode_attributes[ch].category[0] == 'L'
- /* Theppitak Karoonboonyanan <thep(a)links.nectec.or.th> says
- <U0E2F>, <U0E46> should belong to is_punct. */
- && (ch != 0x0E2F) && (ch != 0x0E46))
- /* Theppitak Karoonboonyanan <thep(a)links.nectec.or.th> says
- <U0E31>, <U0E34>..<U0E3A>, <U0E47>..<U0E4E> are is_alpha. */
- || (ch == 0x0E31)
- || (ch >= 0x0E34 && ch <= 0x0E3A)
- || (ch >= 0x0E47 && ch <= 0x0E4E)
- /* Avoid warning for <U0345>. */
- || (ch == 0x0345)
- /* Avoid warnings for <U2160>..<U217F>. */
- || (unicode_attributes[ch].category[0] == 'N'
- && unicode_attributes[ch].category[1] == 'l')
- /* Avoid warnings for <U24B6>..<U24E9>. */
- || (unicode_attributes[ch].category[0] == 'S'
- && unicode_attributes[ch].category[1] == 'o'
- && strstr (unicode_attributes[ch].name, " LETTER ")
- != NULL)
- /* Consider all the non-ASCII digits as alphabetic.
- ISO C 99 forbids us to have them in category "digit",
- but we want iswalnum to return true on them. */
- || (unicode_attributes[ch].category[0] == 'N'
- && unicode_attributes[ch].category[1] == 'd'
- && !(ch >= 0x0030 && ch <= 0x0039))));
-}
-
-static bool
-is_digit (unsigned int ch)
-{
-#if 0
- return (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].category[0] == 'N'
- && unicode_attributes[ch].category[1] == 'd');
- /* Note: U+0BE7..U+0BEF and U+1369..U+1371 are digit systems without
- a zero. Must add <0> in front of them by hand. */
-#else
- /* SUSV2 gives us some freedom for the "digit" category, but ISO C 99
- takes it away:
- 7.25.2.1.5:
- The iswdigit function tests for any wide character that corresponds
- to a decimal-digit character (as defined in 5.2.1).
- 5.2.1:
- the 10 decimal digits 0 1 2 3 4 5 6 7 8 9
- */
- return (ch >= 0x0030 && ch <= 0x0039);
-#endif
-}
-
-static bool
-is_outdigit (unsigned int ch)
-{
- return (ch >= 0x0030 && ch <= 0x0039);
-}
-
-static bool
-is_blank (unsigned int ch)
-{
- return (ch == 0x0009 /* '\t' */
- /* Category Zs without mention of "<noBreak>" */
- || (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].category[0] == 'Z'
- && unicode_attributes[ch].category[1] == 's'
- && !strstr (unicode_attributes[ch].decomposition, "<noBreak>")));
-}
-
-static bool
-is_space (unsigned int ch)
-{
- /* Don't make U+00A0 a space. Non-breaking space means that all programs
- should treat it like a punctuation character, not like a space. */
- return (ch == 0x0020 /* ' ' */
- || ch == 0x000C /* '\f' */
- || ch == 0x000A /* '\n' */
- || ch == 0x000D /* '\r' */
- || ch == 0x0009 /* '\t' */
- || ch == 0x000B /* '\v' */
- /* Categories Zl, Zp, and Zs without mention of "<noBreak>" */
- || (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].category[0] == 'Z'
- && (unicode_attributes[ch].category[1] == 'l'
- || unicode_attributes[ch].category[1] == 'p'
- || (unicode_attributes[ch].category[1] == 's'
- && !strstr (unicode_attributes[ch].decomposition,
- "<noBreak>")))));
-}
-
-static bool
-is_cntrl (unsigned int ch)
-{
- return (unicode_attributes[ch].name != NULL
- && (!strcmp (unicode_attributes[ch].name, "<control>")
- /* Categories Zl and Zp */
- || (unicode_attributes[ch].category[0] == 'Z'
- && (unicode_attributes[ch].category[1] == 'l'
- || unicode_attributes[ch].category[1] == 'p'))));
-}
-
-static bool
-is_xdigit (unsigned int ch)
-{
-#if 0
- return is_digit (ch)
- || (ch >= 0x0041 && ch <= 0x0046)
- || (ch >= 0x0061 && ch <= 0x0066);
-#else
- /* SUSV2 gives us some freedom for the "xdigit" category, but ISO C 99
- takes it away:
- 7.25.2.1.12:
- The iswxdigit function tests for any wide character that corresponds
- to a hexadecimal-digit character (as defined in 6.4.4.1).
- 6.4.4.1:
- hexadecimal-digit: one of 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
- */
- return (ch >= 0x0030 && ch <= 0x0039)
- || (ch >= 0x0041 && ch <= 0x0046)
- || (ch >= 0x0061 && ch <= 0x0066);
-#endif
-}
-
-static bool
-is_graph (unsigned int ch)
-{
- return (unicode_attributes[ch].name != NULL
- && strcmp (unicode_attributes[ch].name, "<control>")
- && !is_space (ch));
-}
-
-static bool
-is_print (unsigned int ch)
-{
- return (unicode_attributes[ch].name != NULL
- && strcmp (unicode_attributes[ch].name, "<control>")
- /* Categories Zl and Zp */
- && !(unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].category[0] == 'Z'
- && (unicode_attributes[ch].category[1] == 'l'
- || unicode_attributes[ch].category[1] == 'p')));
-}
-
-static bool
-is_punct (unsigned int ch)
-{
-#if 0
- return (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].category[0] == 'P');
-#else
- /* The traditional POSIX definition of punctuation is every graphic,
- non-alphanumeric character. */
- return (is_graph (ch) && !is_alpha (ch) && !is_digit (ch));
-#endif
-}
-
-static bool
-is_combining (unsigned int ch)
-{
- /* Up to Unicode 3.0.1 we took the Combining property from the PropList.txt
- file. In 3.0.1 it was identical to the union of the general categories
- "Mn", "Mc", "Me". In Unicode 3.1 this property has been dropped from the
- PropList.txt file, so we take the latter definition. */
- return (unicode_attributes[ch].name != NULL
- && unicode_attributes[ch].category[0] == 'M'
- && (unicode_attributes[ch].category[1] == 'n'
- || unicode_attributes[ch].category[1] == 'c'
- || unicode_attributes[ch].category[1] == 'e'));
-}
-
-static bool
-is_combining_level3 (unsigned int ch)
-{
- return is_combining (ch)
- && !(unicode_attributes[ch].combining[0] != '\0'
- && unicode_attributes[ch].combining[0] != '0'
- && strtoul (unicode_attributes[ch].combining, NULL, 10) >= 200);
-}
-
-/* Return the UCS symbol string for a Unicode character. */
-static const char *
-ucs_symbol (unsigned int i)
-{
- static char buf[11+1];
-
- sprintf (buf, (i < 0x10000 ? "<U%04X>" : "<U%08X>"), i);
- return buf;
-}
-
-/* Return the UCS symbol range string for a Unicode characters interval. */
-static const char *
-ucs_symbol_range (unsigned int low, unsigned int high)
-{
- static char buf[24+1];
-
- strcpy (buf, ucs_symbol (low));
- strcat (buf, "..");
- strcat (buf, ucs_symbol (high));
- return buf;
-}
-
-/* Output a character class (= property) table. */
-
-static void
-output_charclass (FILE *stream, const char *classname,
- bool (*func) (unsigned int))
-{
- char table[0x110000];
- unsigned int i;
- bool need_semicolon;
- const int max_column = 75;
- int column;
-
- for (i = 0; i < 0x110000; i++)
- table[i] = (int) func (i);
-
- fprintf (stream, "%s ", classname);
- need_semicolon = false;
- column = 1000;
- for (i = 0; i < 0x110000; )
- {
- if (!table[i])
- i++;
- else
- {
- unsigned int low, high;
- char buf[25];
-
- low = i;
- do
- i++;
- while (i < 0x110000 && table[i]);
- high = i - 1;
-
- if (low == high)
- strcpy (buf, ucs_symbol (low));
- else
- strcpy (buf, ucs_symbol_range (low, high));
-
- if (need_semicolon)
- {
- fprintf (stream, ";");
- column++;
- }
-
- if (column + strlen (buf) > max_column)
- {
- fprintf (stream, "/\n ");
- column = 3;
- }
-
- fprintf (stream, "%s", buf);
- column += strlen (buf);
- need_semicolon = true;
- }
- }
- fprintf (stream, "\n");
-}
-
-/* Output a character mapping table. */
-
-static void
-output_charmap (FILE *stream, const char *mapname,
- unsigned int (*func) (unsigned int))
-{
- char table[0x110000];
- unsigned int i;
- bool need_semicolon;
- const int max_column = 75;
- int column;
-
- for (i = 0; i < 0x110000; i++)
- table[i] = (func (i) != i);
-
- fprintf (stream, "%s ", mapname);
- need_semicolon = false;
- column = 1000;
- for (i = 0; i < 0x110000; i++)
- if (table[i])
- {
- char buf[25+1];
-
- strcpy (buf, "(");
- strcat (buf, ucs_symbol (i));
- strcat (buf, ",");
- strcat (buf, ucs_symbol (func (i)));
- strcat (buf, ")");
-
- if (need_semicolon)
- {
- fprintf (stream, ";");
- column++;
- }
-
- if (column + strlen (buf) > max_column)
- {
- fprintf (stream, "/\n ");
- column = 3;
- }
-
- fprintf (stream, "%s", buf);
- column += strlen (buf);
- need_semicolon = true;
- }
- fprintf (stream, "\n");
-}
-
-/* Output the width table. */
-
-static void
-output_widthmap (FILE *stream)
-{
-}
-
-/* Output the tables to the given file. */
-
-static void
-output_tables (const char *filename, const char *version)
-{
- FILE *stream;
- unsigned int ch;
-
- stream = fopen (filename, "w");
- if (stream == NULL)
- {
- fprintf (stderr, "cannot open '%s' for writing\n", filename);
- exit (1);
- }
-
- fprintf (stream, "escape_char /\n");
- fprintf (stream, "comment_char %%\n");
- fprintf (stream, "\n");
- fprintf (stream, "%% Generated automatically by gen-unicode-ctype for Unicode %s.\n",
- version);
- fprintf (stream, "\n");
-
- fprintf (stream, "LC_IDENTIFICATION\n");
- fprintf (stream, "title \"Unicode %s FDCC-set\"\n", version);
- fprintf (stream, "source \"UnicodeData.txt, PropList.txt\"\n");
- fprintf (stream, "address \"\"\n");
- fprintf (stream, "contact \"\"\n");
- fprintf (stream, "email \"bug-glibc-locales(a)gnu.org\"\n");
- fprintf (stream, "tel \"\"\n");
- fprintf (stream, "fax \"\"\n");
- fprintf (stream, "language \"\"\n");
- fprintf (stream, "territory \"Earth\"\n");
- fprintf (stream, "revision \"%s\"\n", version);
- {
- time_t now;
- char date[11];
- now = time (NULL);
- strftime (date, sizeof (date), "%Y-%m-%d", gmtime (&now));
- fprintf (stream, "date \"%s\"\n", date);
- }
- fprintf (stream, "category \"unicode:2001\";LC_CTYPE\n");
- fprintf (stream, "END LC_IDENTIFICATION\n");
- fprintf (stream, "\n");
-
- /* Verifications. */
- for (ch = 0; ch < 0x110000; ch++)
- {
- /* toupper restriction: "Only characters specified for the keywords
- lower and upper shall be specified. */
- if (to_upper (ch) != ch && !(is_lower (ch) || is_upper (ch)))
- fprintf (stderr,
- "%s is not upper|lower but toupper(0x%04X) = 0x%04X\n",
- ucs_symbol (ch), ch, to_upper (ch));
-
- /* tolower restriction: "Only characters specified for the keywords
- lower and upper shall be specified. */
- if (to_lower (ch) != ch && !(is_lower (ch) || is_upper (ch)))
- fprintf (stderr,
- "%s is not upper|lower but tolower(0x%04X) = 0x%04X\n",
- ucs_symbol (ch), ch, to_lower (ch));
-
- /* alpha restriction: "Characters classified as either upper or lower
- shall automatically belong to this class. */
- if ((is_lower (ch) || is_upper (ch)) && !is_alpha (ch))
- fprintf (stderr, "%s is upper|lower but not alpha\n", ucs_symbol (ch));
-
- /* alpha restriction: "No character specified for the keywords cntrl,
- digit, punct or space shall be specified." */
- if (is_alpha (ch) && is_cntrl (ch))
- fprintf (stderr, "%s is alpha and cntrl\n", ucs_symbol (ch));
- if (is_alpha (ch) && is_digit (ch))
- fprintf (stderr, "%s is alpha and digit\n", ucs_symbol (ch));
- if (is_alpha (ch) && is_punct (ch))
- fprintf (stderr, "%s is alpha and punct\n", ucs_symbol (ch));
- if (is_alpha (ch) && is_space (ch))
- fprintf (stderr, "%s is alpha and space\n", ucs_symbol (ch));
-
- /* space restriction: "No character specified for the keywords upper,
- lower, alpha, digit, graph or xdigit shall be specified."
- upper, lower, alpha already checked above. */
- if (is_space (ch) && is_digit (ch))
- fprintf (stderr, "%s is space and digit\n", ucs_symbol (ch));
- if (is_space (ch) && is_graph (ch))
- fprintf (stderr, "%s is space and graph\n", ucs_symbol (ch));
- if (is_space (ch) && is_xdigit (ch))
- fprintf (stderr, "%s is space and xdigit\n", ucs_symbol (ch));
-
- /* cntrl restriction: "No character specified for the keywords upper,
- lower, alpha, digit, punct, graph, print or xdigit shall be
- specified." upper, lower, alpha already checked above. */
- if (is_cntrl (ch) && is_digit (ch))
- fprintf (stderr, "%s is cntrl and digit\n", ucs_symbol (ch));
- if (is_cntrl (ch) && is_punct (ch))
- fprintf (stderr, "%s is cntrl and punct\n", ucs_symbol (ch));
- if (is_cntrl (ch) && is_graph (ch))
- fprintf (stderr, "%s is cntrl and graph\n", ucs_symbol (ch));
- if (is_cntrl (ch) && is_print (ch))
- fprintf (stderr, "%s is cntrl and print\n", ucs_symbol (ch));
- if (is_cntrl (ch) && is_xdigit (ch))
- fprintf (stderr, "%s is cntrl and xdigit\n", ucs_symbol (ch));
-
- /* punct restriction: "No character specified for the keywords upper,
- lower, alpha, digit, cntrl, xdigit or as the <space> character shall
- be specified." upper, lower, alpha, cntrl already checked above. */
- if (is_punct (ch) && is_digit (ch))
- fprintf (stderr, "%s is punct and digit\n", ucs_symbol (ch));
- if (is_punct (ch) && is_xdigit (ch))
- fprintf (stderr, "%s is punct and xdigit\n", ucs_symbol (ch));
- if (is_punct (ch) && (ch == 0x0020))
- fprintf (stderr, "%s is punct\n", ucs_symbol (ch));
-
- /* graph restriction: "No character specified for the keyword cntrl
- shall be specified." Already checked above. */
-
- /* print restriction: "No character specified for the keyword cntrl
- shall be specified." Already checked above. */
-
- /* graph - print relation: differ only in the <space> character.
- How is this possible if there are more than one space character?!
- I think susv2/xbd/locale.html should speak of "space characters",
- not "space character". */
- if (is_print (ch) && !(is_graph (ch) || /* ch == 0x0020 */ is_space (ch)))
- fprintf (stderr,
- "%s is print but not graph|<space>\n", ucs_symbol (ch));
- if (!is_print (ch) && (is_graph (ch) || ch == 0x0020))
- fprintf (stderr,
- "%s is graph|<space> but not print\n", ucs_symbol (ch));
- }
-
- fprintf (stream, "LC_CTYPE\n");
- output_charclass (stream, "upper", is_upper);
- output_charclass (stream, "lower", is_lower);
- output_charclass (stream, "alpha", is_alpha);
- output_charclass (stream, "digit", is_digit);
- output_charclass (stream, "outdigit", is_outdigit);
- output_charclass (stream, "blank", is_blank);
- output_charclass (stream, "space", is_space);
- output_charclass (stream, "cntrl", is_cntrl);
- output_charclass (stream, "punct", is_punct);
- output_charclass (stream, "xdigit", is_xdigit);
- output_charclass (stream, "graph", is_graph);
- output_charclass (stream, "print", is_print);
- output_charclass (stream, "class \"combining\";", is_combining);
- output_charclass (stream, "class \"combining_level3\";", is_combining_level3);
- output_charmap (stream, "toupper", to_upper);
- output_charmap (stream, "tolower", to_lower);
- output_charmap (stream, "map \"totitle\";", to_title);
- output_widthmap (stream);
- fprintf (stream, "END LC_CTYPE\n");
-
- if (ferror (stream) || fclose (stream))
- {
- fprintf (stderr, "error writing to '%s'\n", filename);
- exit (1);
- }
-}
-
-int
-main (int argc, char * argv[])
-{
- if (argc != 3)
- {
- fprintf (stderr, "Usage: %s UnicodeData.txt version\n", argv[0]);
- exit (1);
- }
-
- fill_attributes (argv[1]);
-
- output_tables ("unicode", argv[2]);
-
- return 0;
-}
diff --git a/test/locale/show-ucs-data.c b/test/locale/show-ucs-data.c
deleted file mode 100644
index 9992ece..0000000
--- a/test/locale/show-ucs-data.c
+++ /dev/null
@@ -1,62 +0,0 @@
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-
-int
-main (int argc, char *argv[])
-{
- int n;
- char *line = NULL;
- size_t len = 0;
-
- for (n = 1; n < argc; ++n)
- {
- FILE *fp = fopen (argv[n], "r");
- if (fp == NULL)
- continue;
-
- while (! feof (fp))
- {
- ssize_t cnt = getline (&line, &len, fp);
- char *runp;
- if (cnt <= 0)
- break;
-
- runp = line;
- do
- {
- if (runp[0] == '<' && runp[1] == 'U' && isxdigit (runp[2])
- && isxdigit (runp[3]) && isxdigit (runp[4])
- && isxdigit (runp[5]) && runp[6] == '>')
- {
- unsigned int val = strtoul (runp + 2, NULL, 16);
-
- //putchar ('<');
- if (val < 128)
- putchar (val);
- else if (val < 0x800)
- {
- putchar (0xc0 | (val >> 6));
- putchar (0x80 | (val & 0x3f));
- }
- else
- {
- putchar (0xe0 | (val >> 12));
- putchar (0x80 | ((val >> 6) & 0x3f));
- putchar (0x80 | (val & 0x3f));
- }
- //putchar ('>');
- runp += 7;
- }
- else
- putchar (*runp++);
- }
- while (runp < &line[cnt]);
- }
-
- fclose (fp);
- }
-
- return 0;
-}
diff --git a/test/locale/tst-C-locale.c b/test/locale/tst-C-locale.c
deleted file mode 100644
index 282d53a..0000000
--- a/test/locale/tst-C-locale.c
+++ /dev/null
@@ -1,497 +0,0 @@
-/* Tests of C and POSIX locale contents.
- Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)redhat.com>, 2000.
-
- 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/>. */
-
-#include <ctype.h>
-#include <langinfo.h>
-#include <limits.h>
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <wctype.h>
-
-
-static int
-run_test (const char *locname)
-{
- struct lconv *lc;
- const char *str;
- const wchar_t *wstr;
- int result = 0;
- locale_t loc;
-
- /* ISO C stuff. */
- lc = localeconv ();
- if (lc == NULL)
- {
- printf ("localeconv failed for locale %s\n", locname);
- result = 1;
- }
- else
- {
-#define STRTEST(name, exp) \
- do \
- if (strcmp (lc->name, exp) != 0) \
- { \
- printf (#name " in locale %s wrong (is \"%s\", should be \"%s\")\n",\
- locname, lc->name, exp); \
- result = 1; \
- } \
- while (0)
- STRTEST (decimal_point, ".");
- STRTEST (thousands_sep, "");
- STRTEST (grouping, "");
- STRTEST (mon_decimal_point, "");
- STRTEST (mon_thousands_sep, "");
- STRTEST (mon_grouping, "");
- STRTEST (positive_sign, "");
- STRTEST (negative_sign, "");
- STRTEST (currency_symbol, "");
- STRTEST (int_curr_symbol, "");
-
-#define CHARTEST(name, exp) \
- do \
- if (lc->name != exp) \
- { \
- printf (#name " in locale %s wrong (is %d, should be %d)\n", \
- locname, lc->name, CHAR_MAX); \
- result = 1; \
- } \
- while (0)
- CHARTEST (frac_digits, CHAR_MAX);
- CHARTEST (p_cs_precedes, CHAR_MAX);
- CHARTEST (n_cs_precedes, CHAR_MAX);
- CHARTEST (p_sep_by_space, CHAR_MAX);
- CHARTEST (n_sep_by_space, CHAR_MAX);
- CHARTEST (p_sign_posn, CHAR_MAX);
- CHARTEST (n_sign_posn, CHAR_MAX);
- CHARTEST (int_frac_digits, CHAR_MAX);
- CHARTEST (int_p_cs_precedes, CHAR_MAX);
- CHARTEST (int_n_cs_precedes, CHAR_MAX);
- CHARTEST (int_p_sep_by_space, CHAR_MAX);
- CHARTEST (int_n_sep_by_space, CHAR_MAX);
- CHARTEST (int_p_sign_posn, CHAR_MAX);
- CHARTEST (int_n_sign_posn, CHAR_MAX);
- }
-
-#undef STRTEST
-#define STRTEST(name, exp) \
- str = nl_langinfo (name); \
- if (strcmp (str, exp) != 0) \
- { \
- printf ("nl_langinfo(" #name ") in locale %s wrong " \
- "(is \"%s\", should be \"%s\")\n", locname, str, exp); \
- result = 1; \
- }
-#define WSTRTEST(name, exp) \
- wstr = (wchar_t *) nl_langinfo (name); \
- if (wcscmp (wstr, exp) != 0) \
- { \
- printf ("nl_langinfo(" #name ") in locale %s wrong " \
- "(is \"%S\", should be \"%S\")\n", locname, wstr, exp); \
- result = 1; \
- }
-
- /* Unix stuff. */
- STRTEST (ABDAY_1, "Sun");
- STRTEST (ABDAY_2, "Mon");
- STRTEST (ABDAY_3, "Tue");
- STRTEST (ABDAY_4, "Wed");
- STRTEST (ABDAY_5, "Thu");
- STRTEST (ABDAY_6, "Fri");
- STRTEST (ABDAY_7, "Sat");
- STRTEST (DAY_1, "Sunday");
- STRTEST (DAY_2, "Monday");
- STRTEST (DAY_3, "Tuesday");
- STRTEST (DAY_4, "Wednesday");
- STRTEST (DAY_5, "Thursday");
- STRTEST (DAY_6, "Friday");
- STRTEST (DAY_7, "Saturday");
- STRTEST (ABMON_1, "Jan");
- STRTEST (ABMON_2, "Feb");
- STRTEST (ABMON_3, "Mar");
- STRTEST (ABMON_4, "Apr");
- STRTEST (ABMON_5, "May");
- STRTEST (ABMON_6, "Jun");
- STRTEST (ABMON_7, "Jul");
- STRTEST (ABMON_8, "Aug");
- STRTEST (ABMON_9, "Sep");
- STRTEST (ABMON_10, "Oct");
- STRTEST (ABMON_11, "Nov");
- STRTEST (ABMON_12, "Dec");
- STRTEST (MON_1, "January");
- STRTEST (MON_2, "February");
- STRTEST (MON_3, "March");
- STRTEST (MON_4, "April");
- STRTEST (MON_5, "May");
- STRTEST (MON_6, "June");
- STRTEST (MON_7, "July");
- STRTEST (MON_8, "August");
- STRTEST (MON_9, "September");
- STRTEST (MON_10, "October");
- STRTEST (MON_11, "November");
- STRTEST (MON_12, "December");
- STRTEST (AM_STR, "AM");
- STRTEST (PM_STR, "PM");
- STRTEST (D_T_FMT, "%a %b %e %H:%M:%S %Y");
- STRTEST (D_FMT, "%m/%d/%y");
- STRTEST (T_FMT, "%H:%M:%S");
- STRTEST (T_FMT_AMPM, "%I:%M:%S %p");
- STRTEST (ERA, "");
- STRTEST (ERA_D_FMT, "");
- STRTEST (ERA_T_FMT, "");
- STRTEST (ERA_D_T_FMT, "");
- STRTEST (ALT_DIGITS, "");
-
- STRTEST (RADIXCHAR, ".");
- STRTEST (THOUSEP, "");
-
- STRTEST (YESEXPR, "^[yY]");
- STRTEST (NOEXPR, "^[nN]");
-
- /* Extensions. */
- WSTRTEST (_NL_WABDAY_1, L"Sun");
- WSTRTEST (_NL_WABDAY_2, L"Mon");
- WSTRTEST (_NL_WABDAY_3, L"Tue");
- WSTRTEST (_NL_WABDAY_4, L"Wed");
- WSTRTEST (_NL_WABDAY_5, L"Thu");
- WSTRTEST (_NL_WABDAY_6, L"Fri");
- WSTRTEST (_NL_WABDAY_7, L"Sat");
- WSTRTEST (_NL_WDAY_1, L"Sunday");
- WSTRTEST (_NL_WDAY_2, L"Monday");
- WSTRTEST (_NL_WDAY_3, L"Tuesday");
- WSTRTEST (_NL_WDAY_4, L"Wednesday");
- WSTRTEST (_NL_WDAY_5, L"Thursday");
- WSTRTEST (_NL_WDAY_6, L"Friday");
- WSTRTEST (_NL_WDAY_7, L"Saturday");
- WSTRTEST (_NL_WABMON_1, L"Jan");
- WSTRTEST (_NL_WABMON_2, L"Feb");
- WSTRTEST (_NL_WABMON_3, L"Mar");
- WSTRTEST (_NL_WABMON_4, L"Apr");
- WSTRTEST (_NL_WABMON_5, L"May");
- WSTRTEST (_NL_WABMON_6, L"Jun");
- WSTRTEST (_NL_WABMON_7, L"Jul");
- WSTRTEST (_NL_WABMON_8, L"Aug");
- WSTRTEST (_NL_WABMON_9, L"Sep");
- WSTRTEST (_NL_WABMON_10, L"Oct");
- WSTRTEST (_NL_WABMON_11, L"Nov");
- WSTRTEST (_NL_WABMON_12, L"Dec");
- WSTRTEST (_NL_WMON_1, L"January");
- WSTRTEST (_NL_WMON_2, L"February");
- WSTRTEST (_NL_WMON_3, L"March");
- WSTRTEST (_NL_WMON_4, L"April");
- WSTRTEST (_NL_WMON_5, L"May");
- WSTRTEST (_NL_WMON_6, L"June");
- WSTRTEST (_NL_WMON_7, L"July");
- WSTRTEST (_NL_WMON_8, L"August");
- WSTRTEST (_NL_WMON_9, L"September");
- WSTRTEST (_NL_WMON_10, L"October");
- WSTRTEST (_NL_WMON_11, L"November");
- WSTRTEST (_NL_WMON_12, L"December");
- WSTRTEST (_NL_WAM_STR, L"AM");
- WSTRTEST (_NL_WPM_STR, L"PM");
- WSTRTEST (_NL_WD_T_FMT, L"%a %b %e %H:%M:%S %Y");
- WSTRTEST (_NL_WD_FMT, L"%m/%d/%y");
- WSTRTEST (_NL_WT_FMT, L"%H:%M:%S");
- WSTRTEST (_NL_WT_FMT_AMPM, L"%I:%M:%S %p");
- WSTRTEST (_NL_WERA_D_FMT, L"");
- WSTRTEST (_NL_WERA_T_FMT, L"");
- WSTRTEST (_NL_WERA_D_T_FMT, L"");
- WSTRTEST (_NL_WALT_DIGITS, L"");
-
- STRTEST (_DATE_FMT, "%a %b %e %H:%M:%S %Z %Y");
- WSTRTEST (_NL_W_DATE_FMT, L"%a %b %e %H:%M:%S %Z %Y");
-
- STRTEST (INT_CURR_SYMBOL, "");
- STRTEST (CURRENCY_SYMBOL, "");
- STRTEST (MON_DECIMAL_POINT, "");
- STRTEST (MON_THOUSANDS_SEP, "");
- STRTEST (MON_GROUPING, "");
- STRTEST (POSITIVE_SIGN, "");
- STRTEST (NEGATIVE_SIGN, "");
- STRTEST (GROUPING, "");
-
- STRTEST (YESSTR, "");
- STRTEST (NOSTR, "");
-
- /* Test the new locale mechanisms. */
- loc = newlocale (LC_ALL_MASK, locname, NULL);
- if (loc == NULL)
- {
- printf ("cannot create locale object for locale %s\n", locname);
- result = 1;
- }
- else
- {
- int c;
-
-#undef STRTEST
-#define STRTEST(name, exp) \
- str = nl_langinfo_l (name, loc); \
- if (strcmp (str, exp) != 0) \
- { \
- printf ("nl_langinfo_l(" #name ") in locale %s wrong " \
- "(is \"%s\", should be \"%s\")\n", locname, str, exp); \
- result = 1; \
- }
-#undef WSTRTEST
-#define WSTRTEST(name, exp) \
- wstr = (wchar_t *) nl_langinfo_l (name, loc); \
- if (wcscmp (wstr, exp) != 0) \
- { \
- printf ("nl_langinfo_l(" #name ") in locale %s wrong " \
- "(is \"%S\", should be \"%S\")\n", locname, wstr, exp); \
- result = 1; \
- }
-
- /* Unix stuff. */
- STRTEST (ABDAY_1, "Sun");
- STRTEST (ABDAY_2, "Mon");
- STRTEST (ABDAY_3, "Tue");
- STRTEST (ABDAY_4, "Wed");
- STRTEST (ABDAY_5, "Thu");
- STRTEST (ABDAY_6, "Fri");
- STRTEST (ABDAY_7, "Sat");
- STRTEST (DAY_1, "Sunday");
- STRTEST (DAY_2, "Monday");
- STRTEST (DAY_3, "Tuesday");
- STRTEST (DAY_4, "Wednesday");
- STRTEST (DAY_5, "Thursday");
- STRTEST (DAY_6, "Friday");
- STRTEST (DAY_7, "Saturday");
- STRTEST (ABMON_1, "Jan");
- STRTEST (ABMON_2, "Feb");
- STRTEST (ABMON_3, "Mar");
- STRTEST (ABMON_4, "Apr");
- STRTEST (ABMON_5, "May");
- STRTEST (ABMON_6, "Jun");
- STRTEST (ABMON_7, "Jul");
- STRTEST (ABMON_8, "Aug");
- STRTEST (ABMON_9, "Sep");
- STRTEST (ABMON_10, "Oct");
- STRTEST (ABMON_11, "Nov");
- STRTEST (ABMON_12, "Dec");
- STRTEST (MON_1, "January");
- STRTEST (MON_2, "February");
- STRTEST (MON_3, "March");
- STRTEST (MON_4, "April");
- STRTEST (MON_5, "May");
- STRTEST (MON_6, "June");
- STRTEST (MON_7, "July");
- STRTEST (MON_8, "August");
- STRTEST (MON_9, "September");
- STRTEST (MON_10, "October");
- STRTEST (MON_11, "November");
- STRTEST (MON_12, "December");
- STRTEST (AM_STR, "AM");
- STRTEST (PM_STR, "PM");
- STRTEST (D_T_FMT, "%a %b %e %H:%M:%S %Y");
- STRTEST (D_FMT, "%m/%d/%y");
- STRTEST (T_FMT, "%H:%M:%S");
- STRTEST (T_FMT_AMPM, "%I:%M:%S %p");
- STRTEST (ERA, "");
- STRTEST (ERA_D_FMT, "");
- STRTEST (ERA_T_FMT, "");
- STRTEST (ERA_D_T_FMT, "");
- STRTEST (ALT_DIGITS, "");
-
- STRTEST (RADIXCHAR, ".");
- STRTEST (THOUSEP, "");
-
- STRTEST (YESEXPR, "^[yY]");
- STRTEST (NOEXPR, "^[nN]");
-
- /* Extensions. */
- WSTRTEST (_NL_WABDAY_1, L"Sun");
- WSTRTEST (_NL_WABDAY_2, L"Mon");
- WSTRTEST (_NL_WABDAY_3, L"Tue");
- WSTRTEST (_NL_WABDAY_4, L"Wed");
- WSTRTEST (_NL_WABDAY_5, L"Thu");
- WSTRTEST (_NL_WABDAY_6, L"Fri");
- WSTRTEST (_NL_WABDAY_7, L"Sat");
- WSTRTEST (_NL_WDAY_1, L"Sunday");
- WSTRTEST (_NL_WDAY_2, L"Monday");
- WSTRTEST (_NL_WDAY_3, L"Tuesday");
- WSTRTEST (_NL_WDAY_4, L"Wednesday");
- WSTRTEST (_NL_WDAY_5, L"Thursday");
- WSTRTEST (_NL_WDAY_6, L"Friday");
- WSTRTEST (_NL_WDAY_7, L"Saturday");
- WSTRTEST (_NL_WABMON_1, L"Jan");
- WSTRTEST (_NL_WABMON_2, L"Feb");
- WSTRTEST (_NL_WABMON_3, L"Mar");
- WSTRTEST (_NL_WABMON_4, L"Apr");
- WSTRTEST (_NL_WABMON_5, L"May");
- WSTRTEST (_NL_WABMON_6, L"Jun");
- WSTRTEST (_NL_WABMON_7, L"Jul");
- WSTRTEST (_NL_WABMON_8, L"Aug");
- WSTRTEST (_NL_WABMON_9, L"Sep");
- WSTRTEST (_NL_WABMON_10, L"Oct");
- WSTRTEST (_NL_WABMON_11, L"Nov");
- WSTRTEST (_NL_WABMON_12, L"Dec");
- WSTRTEST (_NL_WMON_1, L"January");
- WSTRTEST (_NL_WMON_2, L"February");
- WSTRTEST (_NL_WMON_3, L"March");
- WSTRTEST (_NL_WMON_4, L"April");
- WSTRTEST (_NL_WMON_5, L"May");
- WSTRTEST (_NL_WMON_6, L"June");
- WSTRTEST (_NL_WMON_7, L"July");
- WSTRTEST (_NL_WMON_8, L"August");
- WSTRTEST (_NL_WMON_9, L"September");
- WSTRTEST (_NL_WMON_10, L"October");
- WSTRTEST (_NL_WMON_11, L"November");
- WSTRTEST (_NL_WMON_12, L"December");
- WSTRTEST (_NL_WAM_STR, L"AM");
- WSTRTEST (_NL_WPM_STR, L"PM");
- WSTRTEST (_NL_WD_T_FMT, L"%a %b %e %H:%M:%S %Y");
- WSTRTEST (_NL_WD_FMT, L"%m/%d/%y");
- WSTRTEST (_NL_WT_FMT, L"%H:%M:%S");
- WSTRTEST (_NL_WT_FMT_AMPM, L"%I:%M:%S %p");
- WSTRTEST (_NL_WERA_D_FMT, L"");
- WSTRTEST (_NL_WERA_T_FMT, L"");
- WSTRTEST (_NL_WERA_D_T_FMT, L"");
- WSTRTEST (_NL_WALT_DIGITS, L"");
-
- STRTEST (_DATE_FMT, "%a %b %e %H:%M:%S %Z %Y");
- WSTRTEST (_NL_W_DATE_FMT, L"%a %b %e %H:%M:%S %Z %Y");
-
- STRTEST (INT_CURR_SYMBOL, "");
- STRTEST (CURRENCY_SYMBOL, "");
- STRTEST (MON_DECIMAL_POINT, "");
- STRTEST (MON_THOUSANDS_SEP, "");
- STRTEST (MON_GROUPING, "");
- STRTEST (POSITIVE_SIGN, "");
- STRTEST (NEGATIVE_SIGN, "");
- STRTEST (GROUPING, "");
-
- STRTEST (YESSTR, "");
- STRTEST (NOSTR, "");
-
- /* Character class tests. */
- for (c = 0; c < 128; ++c)
- {
-#define CLASSTEST(name) \
- if (is##name (c) != is##name##_l (c, loc)) \
- { \
- printf ("is%s('\\%o') != is%s_l('\\%o')\n", \
- #name, c, #name, c); \
- result = 1; \
- }
- CLASSTEST (alnum);
- CLASSTEST (alpha);
- CLASSTEST (blank);
- CLASSTEST (cntrl);
- CLASSTEST (digit);
- CLASSTEST (lower);
- CLASSTEST (graph);
- CLASSTEST (print);
- CLASSTEST (punct);
- CLASSTEST (space);
- CLASSTEST (upper);
- CLASSTEST (xdigit);
-
- /* Character mapping tests. */
-#define MAPTEST(name) \
- if (to##name (c) != to##name##_l (c, loc)) \
- { \
- printf ("to%s('\\%o') != to%s_l('\\%o'): '\\%o' vs '\\%o'\n", \
- #name, c, #name, c, \
- to##name (c), to##name##_l (c, loc)); \
- result = 1; \
- }
- MAPTEST (lower);
- MAPTEST (upper);
- }
-
- /* Character class tests, this time for wide characters. Note that
- this only works because we know that the internal encoding is
- UCS4. */
- for (c = 0; c < 128; ++c)
- {
-#undef CLASSTEST
-#define CLASSTEST(name) \
- if (isw##name (c) != isw##name##_l (c, loc)) \
- { \
- printf ("isw%s('\\%o') != isw%s_l('\\%o')\n", \
- #name, c, #name, c); \
- result = 1; \
- }
- CLASSTEST (alnum);
- CLASSTEST (alpha);
- CLASSTEST (blank);
- CLASSTEST (cntrl);
- CLASSTEST (digit);
- CLASSTEST (lower);
- CLASSTEST (graph);
- CLASSTEST (print);
- CLASSTEST (punct);
- CLASSTEST (space);
- CLASSTEST (upper);
- CLASSTEST (xdigit);
-
- /* Character mapping tests. Note that
- this only works because we know that the internal encoding is
- UCS4. */
-#undef MAPTEST
-#define MAPTEST(name) \
- if (tow##name (c) != tow##name##_l (c, loc)) \
- { \
- printf ("tow%s('\\%o') != tow%s_l('\\%o'): '\\%o' vs '\\%o'\n",\
- #name, c, #name, c, \
- tow##name (c), tow##name##_l (c, loc)); \
- result = 1; \
- }
- MAPTEST (lower);
- MAPTEST (upper);
- }
-
- freelocale (loc);
- }
-
- return result;
-}
-
-
-static int
-do_test (void)
-{
- int result;
-
- /* First use the name "C". */
- if (setlocale (LC_ALL, "C") == NULL)
- {
- puts ("cannot set C locale");
- result = 1;
- }
- else
- result = run_test ("C");
-
- /* Then the name "POSIX". */
- if (setlocale (LC_ALL, "POSIX") == NULL)
- {
- puts ("cannot set POSIX locale");
- result = 1;
- }
- else
- result |= run_test ("POSIX");
-
- return result;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/locale/tst-ctype-de_DE.ISO-8859-1.in b/test/locale/tst-ctype-de_DE.ISO-8859-1.in
deleted file mode 100644
index f71d76c..0000000
--- a/test/locale/tst-ctype-de_DE.ISO-8859-1.in
+++ /dev/null
@@ -1,56 +0,0 @@
-lower ������������������������������������������������
- 000000000000000000000100000000000000000000000000
-lower ������������������������������������������������
- 000000000000000111111111111111111111111011111111
-upper ������������������������������������������������
- 000000000000000000000000000000001111111111111111
-upper ������������������������������������������������
- 111111101111111000000000000000000000000000000000
-alpha ������������������������������������������������
- 000000000010000000000100001000001111111111111111
-alpha ������������������������������������������������
- 111111101111111111111111111111111111111011111111
-digit ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-digit ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-xdigit ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-xdigit ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-space ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-space ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-print ������������������������������������������������
- 111111111111111111111111111111111111111111111111
-print ������������������������������������������������
- 111111111111111111111111111111111111111111111111
-graph ������������������������������������������������
- 111111111111111111111111111111111111111111111111
-graph ������������������������������������������������
- 111111111111111111111111111111111111111111111111
-blank ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-blank ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-cntrl ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-cntrl ������������������������������������������������
- 000000000000000000000000000000000000000000000000
-punct ������������������������������������������������
- 111111111101111111111011110111110000000000000000
-punct ������������������������������������������������
- 000000010000000000000000000000000000000100000000
-alnum ������������������������������������������������
- 000000000010000000000100001000001111111111111111
-alnum ������������������������������������������������
- 111111101111111111111111111111111111111011111111
-tolower ������������������������������������������������
- ������������������������������������������������
-tolower ������������������������������������������������
- ������������������������������������������������
-toupper ������������������������������������������������
- ������������������������������������������������
-toupper ������������������������������������������������
- ������������������������������������������������
diff --git a/test/locale/tst-ctype.c b/test/locale/tst-ctype.c
deleted file mode 100644
index d617398..0000000
--- a/test/locale/tst-ctype.c
+++ /dev/null
@@ -1,446 +0,0 @@
-/* Copyright (C) 2000,02, 05 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)gnu.org>, 2000.
-
- 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/>. */
-
-#include <ctype.h>
-#include <locale.h>
-#include <langinfo.h>
-#include <stdio.h>
-#include <string.h>
-
-
-static const char lower[] = "abcdefghijklmnopqrstuvwxyz";
-static const char upper[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
-static const char digits[] = "0123456789";
-static const char cntrl[] = "\
-\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\
-\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f ";
-
-
-static struct classes
-{
- const char *name;
- int mask;
-} classes[] =
-{
-#define ENTRY(name) { #name, _IS##name }
- ENTRY (upper),
- ENTRY (lower),
- ENTRY (alpha),
- ENTRY (digit),
- ENTRY (xdigit),
- ENTRY (space),
- ENTRY (print),
- ENTRY (graph),
- ENTRY (blank),
- ENTRY (cntrl),
- ENTRY (punct),
- ENTRY (alnum)
-};
-#define nclasses (sizeof (classes) / sizeof (classes[0]))
-
-
-#define FAIL(str, args...) \
- { \
- printf (" " str "\n", ##args); \
- ++errors; \
- }
-
-
-int
-main (void)
-{
- const char *cp;
- const char *cp2;
- int errors = 0;
- char *inpline = NULL;
- size_t inplinelen = 0;
- char *resline = NULL;
- size_t reslinelen = 0;
- size_t n;
-
- setlocale (LC_ALL, "");
-
- printf ("Testing the ctype data of the `%s' locale\n",
- setlocale (LC_CTYPE, NULL));
-
-#if 0
- /* Just for debugging. */
-
- /* Contents of the class array. */
- printf ("\
-upper = %04x lower = %04x alpha = %04x digit = %04x xdigit = %04x\n\
-space = %04x print = %04x graph = %04x blank = %04x cntrl = %04x\n\
-punct = %04x alnum = %04x\n",
- _ISupper, _ISlower, _ISalpha, _ISdigit, _ISxdigit,
- _ISspace, _ISprint, _ISgraph, _ISblank, _IScntrl,
- _ISpunct, _ISalnum);
-
- while (n < 256)
- {
- if (n % 8 == 0)
- printf ("%02x: ", n);
- printf ("%04x%s", __ctype_b[n], (n + 1) % 8 == 0 ? "\n" : " ");
- ++n;
- }
-#endif
-
- puts (" Test of ASCII character range\n special NUL byte handling");
- if (isupper ('\0'))
- FAIL ("isupper ('\\0') is true");
- if (islower ('\0'))
- FAIL ("islower ('\\0') is true");
- if (isalpha ('\0'))
- FAIL ("isalpha ('\\0') is true");
- if (isdigit ('\0'))
- FAIL ("isdigit ('\\0') is true");
- if (isxdigit ('\0'))
- FAIL ("isxdigit ('\\0') is true");
- if (isspace ('\0'))
- FAIL ("isspace ('\\0') is true");
- if (isprint ('\0'))
- FAIL ("isprint ('\\0') is true");
- if (isgraph ('\0'))
- FAIL ("isgraph ('\\0') is true");
- if (isblank ('\0'))
- FAIL ("isblank ('\\0') is true");
- if (! iscntrl ('\0'))
- FAIL ("iscntrl ('\\0') not true");
- if (ispunct ('\0'))
- FAIL ("ispunct ('\\0') is true");
- if (isalnum ('\0'))
- FAIL ("isalnum ('\\0') is true");
-
- puts (" islower()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (! islower (*cp))
- FAIL ("islower ('%c') not true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (islower (*cp))
- FAIL ("islower ('%c') is true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (islower (*cp))
- FAIL ("islower ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (islower (*cp))
- FAIL ("islower ('\\x%02x') is true", *cp);
-
- puts (" isupper()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (isupper (*cp))
- FAIL ("isupper ('%c') is true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (! isupper (*cp))
- FAIL ("isupper ('%c') not true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (isupper (*cp))
- FAIL ("isupper ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (isupper (*cp))
- FAIL ("isupper ('\\x%02x') is true", *cp);
-
- puts (" isalpha()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (! isalpha (*cp))
- FAIL ("isalpha ('%c') not true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (! isalpha (*cp))
- FAIL ("isalpha ('%c') not true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (isalpha (*cp))
- FAIL ("isalpha ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (isalpha (*cp))
- FAIL ("isalpha ('\\x%02x') is true", *cp);
-
- puts (" isdigit()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (isdigit (*cp))
- FAIL ("isdigit ('%c') is true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (isdigit (*cp))
- FAIL ("isdigit ('%c') is true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (! isdigit (*cp))
- FAIL ("isdigit ('%c') not true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (isdigit (*cp))
- FAIL ("isdigit ('\\x%02x') is true", *cp);
-
- puts (" isxdigit()");
- for (cp = lower; *cp != '\0'; ++cp)
- if ((! isxdigit (*cp) && cp - lower < 6)
- || (isxdigit (*cp) && cp - lower >= 6))
- FAIL ("isxdigit ('%c') %s true", *cp, cp - upper < 6 ? "not" : "is");
- for (cp = upper; *cp != '\0'; ++cp)
- if ((! isxdigit (*cp) && cp - upper < 6)
- || (isxdigit (*cp) && cp - upper >= 6))
- FAIL ("isxdigit ('%c') %s true", *cp, cp - upper < 6 ? "not" : "is");
- for (cp = digits; *cp != '\0'; ++cp)
- if (! isxdigit (*cp))
- FAIL ("isxdigit ('%c') not true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (isxdigit (*cp))
- FAIL ("isxdigit ('\\x%02x') is true", *cp);
-
- puts (" isspace()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (isspace (*cp))
- FAIL ("isspace ('%c') is true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (isspace (*cp))
- FAIL ("isspace ('%c') is true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (isspace (*cp))
- FAIL ("isspace ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if ((isspace (*cp) && ((*cp < '\x09' || *cp > '\x0d') && *cp != ' '))
- || (! isspace (*cp)
- && ((*cp >= '\x09' && *cp <= '\x0d') || *cp == ' ')))
- FAIL ("isspace ('\\x%02x') %s true", *cp,
- (*cp < '\x09' || *cp > '\x0d') ? "is" : "not");
-
- puts (" isprint()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (! isprint (*cp))
- FAIL ("isprint ('%c') not true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (! isprint (*cp))
- FAIL ("isprint ('%c') not true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (! isprint (*cp))
- FAIL ("isprint ('%c') not true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if ((isprint (*cp) && *cp != ' ')
- || (! isprint (*cp) && *cp == ' '))
- FAIL ("isprint ('\\x%02x') is true", *cp);
-
- puts (" isgraph()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (! isgraph (*cp))
- FAIL ("isgraph ('%c') not true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (! isgraph (*cp))
- FAIL ("isgraph ('%c') not true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (! isgraph (*cp))
- FAIL ("isgraph ('%c') not true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (isgraph (*cp))
- FAIL ("isgraph ('\\x%02x') is true", *cp);
-
- puts (" isblank()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (isblank (*cp))
- FAIL ("isblank ('%c') is true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (isblank (*cp))
- FAIL ("isblank ('%c') is true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (isblank (*cp))
- FAIL ("isblank ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if ((isblank (*cp) && *cp != '\x09' && *cp != ' ')
- || (! isblank (*cp) && (*cp == '\x09' || *cp == ' ')))
- FAIL ("isblank ('\\x%02x') %s true", *cp, *cp != '\x09' ? "is" : "not");
-
- puts (" iscntrl()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (iscntrl (*cp))
- FAIL ("iscntrl ('%c') is true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (iscntrl (*cp))
- FAIL ("iscntrl ('%c') is true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (iscntrl (*cp))
- FAIL ("iscntrl ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if ((iscntrl (*cp) && *cp == ' ')
- || (! iscntrl (*cp) && *cp != ' '))
- FAIL ("iscntrl ('\\x%02x') not true", *cp);
-
- puts (" ispunct()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (ispunct (*cp))
- FAIL ("ispunct ('%c') is true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (ispunct (*cp))
- FAIL ("ispunct ('%c') is true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (ispunct (*cp))
- FAIL ("ispunct ('%c') is true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (ispunct (*cp))
- FAIL ("ispunct ('\\x%02x') is true", *cp);
-
- puts (" isalnum()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (! isalnum (*cp))
- FAIL ("isalnum ('%c') not true", *cp);
- for (cp = upper; *cp != '\0'; ++cp)
- if (! isalnum (*cp))
- FAIL ("isalnum ('%c') not true", *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (! isalnum (*cp))
- FAIL ("isalnum ('%c') not true", *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (isalnum (*cp))
- FAIL ("isalnum ('\\x%02x') is true", *cp);
-
-
- puts (" tolower()");
- for (cp = lower; *cp != '\0'; ++cp)
- if (tolower (*cp) != *cp)
- FAIL ("tolower ('%c') != '%c'", *cp, *cp);
- for (cp = upper, cp2 = lower; *cp != '\0'; ++cp, ++cp2)
- if (tolower (*cp) != *cp2)
- FAIL ("tolower ('%c') != '%c'", *cp, *cp2);
- for (cp = digits; *cp != '\0'; ++cp)
- if (tolower (*cp) != *cp)
- FAIL ("tolower ('%c') != '%c'", *cp, *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (tolower (*cp) != *cp)
- FAIL ("tolower ('\\x%02x') != '\\x%02x'", *cp, *cp);
-
- puts (" toupper()");
- for (cp = lower, cp2 = upper; *cp != '\0'; ++cp, ++cp2)
- if (toupper (*cp) != *cp2)
- FAIL ("toupper ('%c') != '%c'", *cp, *cp2);
- for (cp = upper; *cp != '\0'; ++cp)
- if (toupper (*cp) != *cp)
- FAIL ("toupper ('%c') != '%c'", *cp, *cp);
- for (cp = digits; *cp != '\0'; ++cp)
- if (toupper (*cp) != *cp)
- FAIL ("toupper ('%c') != '%c'", *cp, *cp);
- for (cp = cntrl; *cp != '\0'; ++cp)
- if (toupper (*cp) != *cp)
- FAIL ("toupper ('\\x%02x') != '\\x%02x'", *cp, *cp);
-
-
- /* Now some locale specific tests. */
- while (! feof (stdin))
- {
- unsigned char *inp;
- unsigned char *resp;
-
- if (getline (&inpline, &inplinelen, stdin) <= 0
- || getline (&resline, &reslinelen, stdin) <= 0)
- break;
-
- inp = (unsigned char *) strchr (inpline, '\n');
- if (inp != NULL)
- *inp = '\0';
- resp = (unsigned char *) strchr (resline, '\n');
- if (resp != NULL)
- *resp = '\0';
-
- inp = (unsigned char *) inpline;
- while (*inp != ' ' && *inp != '\t' && *inp && *inp != '\n'
- && *inp != '\0')
- ++inp;
-
- if (*inp == '\0')
- {
- printf ("line \"%s\" is without content\n", inpline);
- continue;
- }
- *inp++ = '\0';
- while (*inp == ' ' || *inp == '\t')
- ++inp;
-
- /* Try all classes. */
- for (n = 0; n < nclasses; ++n)
- if (strcmp (inpline, classes[n].name) == 0)
- break;
-
- resp = (unsigned char *) resline;
- while (*resp == ' ' || *resp == '\t')
- ++resp;
-
- if (strlen ((char *) inp) != strlen ((char *) resp))
- {
- printf ("lines \"%.20s\"... and \"%.20s\" have not the same length\n",
- inp, resp);
- continue;
- }
-
- if (n < nclasses)
- {
- if (strspn ((char *) resp, "01") != strlen ((char *) resp))
- {
- printf ("result string \"%s\" malformed\n", resp);
- continue;
- }
-
- printf (" Locale-specific tests for `%s'\n", inpline);
-
- while (*inp != '\0' && *inp != '\n')
- {
- if (((__ctype_b[(unsigned int) *inp] & classes[n].mask) != 0)
- != (*resp != '0'))
- {
- printf (" is%s('%c' = '\\x%02x') %s true\n", inpline,
- *inp, *inp, *resp == '1' ? "not" : "is");
- ++errors;
- }
- ++inp;
- ++resp;
- }
- }
- else if (strcmp (inpline, "tolower") == 0)
- {
- while (*inp != '\0')
- {
- if (tolower (*inp) != *resp)
- {
- printf (" tolower('%c' = '\\x%02x') != '%c'\n",
- *inp, *inp, *resp);
- ++errors;
- }
- ++inp;
- ++resp;
- }
- }
- else if (strcmp (inpline, "toupper") == 0)
- {
- while (*inp != '\0')
- {
- if (toupper (*inp) != *resp)
- {
- printf (" toupper('%c' = '\\x%02x') != '%c'\n",
- *inp, *inp, *resp);
- ++errors;
- }
- ++inp;
- ++resp;
- }
- }
- else
- printf ("\"%s\": unknown class or map\n", inpline);
- }
-
-
- if (errors != 0)
- {
- printf (" %d error%s for `%s' locale\n\n\n", errors,
- errors == 1 ? "" : "s", setlocale (LC_ALL, NULL));
- return 1;
- }
-
- printf (" No errors for `%s' locale\n\n\n", setlocale (LC_ALL, NULL));
- return 0;
-}
diff --git a/test/locale/tst-digits.c b/test/locale/tst-digits.c
deleted file mode 100644
index 16cf211..0000000
--- a/test/locale/tst-digits.c
+++ /dev/null
@@ -1,248 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)gnu.org>, 2000.
-
- 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/>. */
-
-#include <ctype.h>
-#include <langinfo.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <wchar.h>
-#include <wctype.h>
-#include <sys/types.h>
-
-
-#define ZERO "\xe2\x82\x80"
-#define ONE "\xe2\x82\x81"
-#define TWO "\xe2\x82\x82"
-#define THREE "\xe2\x82\x83"
-#define FOUR "\xe2\x82\x84"
-#define FIVE "\xe2\x82\x85"
-#define SIX "\xe2\x82\x86"
-#define SEVEN "\xe2\x82\x87"
-#define EIGHT "\xe2\x82\x88"
-#define NINE "\xe2\x82\x89"
-
-static struct printf_int_test
-{
- int n;
- const char *format;
- const char *expected;
-} printf_int_tests[] =
-{
- { 0, "%I'10d", " " ZERO },
- { 1, "%I'10d", " " ONE },
- { 2, "%I'10d", " " TWO },
- { 3, "%I'10d", " " THREE },
- { 4, "%I'10d", " " FOUR },
- { 5, "%I'10d", " " FIVE },
- { 6, "%I'10d", " " SIX },
- { 7, "%I'10d", " " SEVEN },
- { 8, "%I'10d", " " EIGHT },
- { 9, "%I'10d", " " NINE },
- { 11, "%I'10d", " " ONE ONE },
- { 12, "%I'10d", " " ONE TWO },
- { 123, "%I10d", " " ONE TWO THREE },
- { 123, "%I'10d", " " ONE TWO THREE },
- { 1234, "%I10d", ONE TWO THREE FOUR },
- { 1234, "%I'10d", ONE "," TWO THREE FOUR },
- { 12345, "%I'10d", ONE TWO "," THREE FOUR FIVE },
- { 123456, "%I'10d", ONE TWO THREE "," FOUR FIVE SIX },
- { 1234567, "%I'10d", ONE "," TWO THREE FOUR "," FIVE SIX SEVEN }
-};
-#define nprintf_int_tests \
- (sizeof (printf_int_tests) / sizeof (printf_int_tests[0]))
-
-#define WZERO L"\x2080"
-#define WONE L"\x2081"
-#define WTWO L"\x2082"
-#define WTHREE L"\x2083"
-#define WFOUR L"\x2084"
-#define WFIVE L"\x2085"
-#define WSIX L"\x2086"
-#define WSEVEN L"\x2087"
-#define WEIGHT L"\x2088"
-#define WNINE L"\x2089"
-
-static struct wprintf_int_test
-{
- int n;
- const wchar_t *format;
- const wchar_t *expected;
-} wprintf_int_tests[] =
-{
- { 0, L"%I'10d", L" " WZERO },
- { 1, L"%I'10d", L" " WONE },
- { 2, L"%I'10d", L" " WTWO },
- { 3, L"%I'10d", L" " WTHREE },
- { 4, L"%I'10d", L" " WFOUR },
- { 5, L"%I'10d", L" " WFIVE },
- { 6, L"%I'10d", L" " WSIX },
- { 7, L"%I'10d", L" " WSEVEN },
- { 8, L"%I'10d", L" " WEIGHT },
- { 9, L"%I'10d", L" " WNINE },
- { 11, L"%I'10d", L" " WONE WONE },
- { 12, L"%I'10d", L" " WONE WTWO },
- { 123, L"%I10d", L" " WONE WTWO WTHREE },
- { 123, L"%I'10d", L" " WONE WTWO WTHREE },
- { 1234, L"%I10d", L" " WONE WTWO WTHREE WFOUR },
- { 1234, L"%I'10d", L" " WONE L"," WTWO WTHREE WFOUR },
- { 12345, L"%I'10d", L" " WONE WTWO L"," WTHREE WFOUR WFIVE },
- { 123456, L"%I'10d", L" " WONE WTWO WTHREE L"," WFOUR WFIVE WSIX },
- { 1234567, L"%I'10d", L" " WONE L"," WTWO WTHREE WFOUR L"," WFIVE WSIX WSEVEN }
-};
-#define nwprintf_int_tests \
- (sizeof (wprintf_int_tests) / sizeof (wprintf_int_tests[0]))
-
-
-int
-main (void)
-{
- int cnt;
- int failures;
- int status;
-
- if (setlocale (LC_ALL, "test7") == NULL)
- {
- puts ("cannot set locale `test7'");
- exit (1);
- }
- printf ("CODESET = \"%s\"\n", nl_langinfo (CODESET));
-
- /* First: printf tests. */
- failures = 0;
- for (cnt = 0; cnt < (int) nprintf_int_tests; ++cnt)
- {
- char buf[100];
- ssize_t n;
-
- n = snprintf (buf, sizeof buf, printf_int_tests[cnt].format,
- printf_int_tests[cnt].n);
-
- printf ("%3d: got \"%s\", expected \"%s\"",
- cnt, buf, printf_int_tests[cnt].expected);
-
- if (n != (ssize_t) strlen (printf_int_tests[cnt].expected)
- || strcmp (buf, printf_int_tests[cnt].expected) != 0)
- {
- puts (" -> FAILED");
- ++failures;
- }
- else
- puts (" -> OK");
- }
-
- printf ("%d failures in printf tests\n", failures);
- status = failures != 0;
-
- /* wprintf tests. */
- failures = 0;
- for (cnt = 0; cnt < (int) nwprintf_int_tests; ++cnt)
- {
- wchar_t buf[100];
- ssize_t n;
-
- n = swprintf (buf, sizeof buf / sizeof (buf[0]),
- wprintf_int_tests[cnt].format,
- wprintf_int_tests[cnt].n);
-
- printf ("%3d: got \"%ls\", expected \"%ls\"",
- cnt, buf, wprintf_int_tests[cnt].expected);
-
- if (n != (ssize_t) wcslen (wprintf_int_tests[cnt].expected)
- || wcscmp (buf, wprintf_int_tests[cnt].expected) != 0)
- {
- puts (" -> FAILED");
- ++failures;
- }
- else
- puts (" -> OK");
- }
-
- printf ("%d failures in wprintf tests\n", failures);
- status = failures != 0;
-
- /* ctype tests. This makes sure that the multibyte chracter digit
- representations are not handle in this table. */
- failures = 0;
- for (cnt = 0; cnt < 256; ++cnt)
- if (cnt >= '0' && cnt <= '9')
- {
- if (! isdigit (cnt))
- {
- printf ("isdigit ('%c') == 0\n", cnt);
- ++failures;
- }
- }
- else
- {
- if (isdigit (cnt))
- {
- printf ("isdigit (%d) != 0\n", cnt);
- ++failures;
- }
- }
-
- printf ("%d failures in ctype tests\n", failures);
- status = failures != 0;
-
- /* wctype tests. This makes sure the second set of digits is also
- recorded. */
- failures = 0;
- for (cnt = 0; cnt < 256; ++cnt)
- if (cnt >= '0' && cnt <= '9')
- {
- if (! iswdigit (cnt))
- {
- printf ("iswdigit (L'%c') == 0\n", cnt);
- ++failures;
- }
- }
- else
- {
- if (iswdigit (cnt))
- {
- printf ("iswdigit (%d) != 0\n", cnt);
- ++failures;
- }
- }
-
- for (cnt = 0x2070; cnt < 0x2090; ++cnt)
- if (cnt >= 0x2080 && cnt <= 0x2089)
- {
- if (! iswdigit (cnt))
- {
- printf ("iswdigit (U%04X) == 0\n", cnt);
- ++failures;
- }
- }
- else
- {
- if (iswdigit (cnt))
- {
- printf ("iswdigit (U%04X) != 0\n", cnt);
- ++failures;
- }
- }
-
- printf ("%d failures in wctype tests\n", failures);
- status = failures != 0;
-
- return status;
-}
diff --git a/test/locale/tst-fmon.c b/test/locale/tst-fmon.c
deleted file mode 100644
index bcdd2d0..0000000
--- a/test/locale/tst-fmon.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Testing the implementation of strfmon(3).
- Copyright (C) 1996, 1997, 2000, 2003, 2004 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Jochen Hein <jochen.hein(a)delphi.central.de>, 1997.
-
- 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/>. */
-
-#include <stdio.h>
-#include <locale.h>
-#include <monetary.h>
-#include <string.h>
-#include <stdlib.h>
-
-/*
- test-strfmon gets called with three parameters:
- - the locale
- - the format-string to be used
- - the actual number to be formatted
- - the expected string
- If the test passes, test-strfmon terminates with returncode 0,
- otherwise with 1
-*/
-#define EXIT_SUCCESS 0
-#define EXIT_FAILURE 1
-#define EXIT_SETLOCALE 2
-#define EXIT_STRFMON 3
-
-int
-main (int argc, char *argv[])
-{
- char *s = malloc (201);
-
- if (setlocale (LC_MONETARY, argv[1]) == NULL)
- {
- fprintf (stderr, "setlocale(LC_MONETARY, \"%s\"): %m\n", argv[1]);
- exit (EXIT_SETLOCALE);
- }
-
- if (strfmon (s, 200, argv[2], (double) atof (argv[3])) == -1)
- {
- perror ("strfmon");
- exit (EXIT_STRFMON);
- }
-
- if (strcmp (s, argv[4]) != 0)
- {
- printf ("\
-Locale: \"%s\" Format: \"%s\" Value: \"%s\" Received: \"%s\" Expected: \"%s\" => %s\n",
- argv[1], argv[2], argv[3], s, argv[4],
- strcmp (s, argv[4]) != 0 ? "false" : "correct");
- exit (EXIT_FAILURE);
- }
-
- return EXIT_SUCCESS;
-}
diff --git a/test/locale/tst-langinfo.c b/test/locale/tst-langinfo.c
deleted file mode 100644
index aca8239..0000000
--- a/test/locale/tst-langinfo.c
+++ /dev/null
@@ -1,283 +0,0 @@
-/* Test program for nl_langinfo() function.
- Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)cygnus.com>.
-
- 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/>. */
-
-#include <langinfo.h>
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-
-
-struct map
-{
- const char *str;
- int val;
-} map[] =
-{
-#define VAL(name) { #name, name }
- VAL (ABDAY_1),
- VAL (ABDAY_2),
- VAL (ABDAY_3),
- VAL (ABDAY_4),
- VAL (ABDAY_5),
- VAL (ABDAY_6),
- VAL (ABDAY_7),
- VAL (ABMON_1),
- VAL (ABMON_10),
- VAL (ABMON_11),
- VAL (ABMON_12),
- VAL (ABMON_2),
- VAL (ABMON_3),
- VAL (ABMON_4),
- VAL (ABMON_5),
- VAL (ABMON_6),
- VAL (ABMON_7),
- VAL (ABMON_8),
- VAL (ABMON_9),
- VAL (ALT_DIGITS),
- VAL (AM_STR),
- VAL (CRNCYSTR),
- VAL (CURRENCY_SYMBOL),
- VAL (DAY_1),
- VAL (DAY_2),
- VAL (DAY_3),
- VAL (DAY_4),
- VAL (DAY_5),
- VAL (DAY_6),
- VAL (DAY_7),
- VAL (DECIMAL_POINT),
- VAL (D_FMT),
- VAL (D_T_FMT),
- VAL (ERA),
- VAL (ERA_D_FMT),
- VAL (ERA_D_T_FMT),
- VAL (ERA_T_FMT),
- VAL (ERA_YEAR),
- VAL (FRAC_DIGITS),
- VAL (GROUPING),
- VAL (INT_CURR_SYMBOL),
- VAL (INT_FRAC_DIGITS),
- VAL (MON_1),
- VAL (MON_10),
- VAL (MON_11),
- VAL (MON_12),
- VAL (MON_2),
- VAL (MON_3),
- VAL (MON_4),
- VAL (MON_5),
- VAL (MON_6),
- VAL (MON_7),
- VAL (MON_8),
- VAL (MON_9),
- VAL (MON_DECIMAL_POINT),
- VAL (MON_GROUPING),
- VAL (MON_THOUSANDS_SEP),
- VAL (NEGATIVE_SIGN),
- VAL (NOEXPR),
- VAL (NOSTR),
- VAL (N_CS_PRECEDES),
- VAL (N_SEP_BY_SPACE),
- VAL (N_SIGN_POSN),
- VAL (PM_STR),
- VAL (POSITIVE_SIGN),
- VAL (P_CS_PRECEDES),
- VAL (P_SEP_BY_SPACE),
- VAL (P_SIGN_POSN),
- VAL (RADIXCHAR),
- VAL (THOUSANDS_SEP),
- VAL (THOUSEP),
- VAL (T_FMT),
- VAL (T_FMT_AMPM),
- VAL (YESEXPR),
- VAL (YESSTR)
-};
-
-
-static int
-map_paramstr (const char *str)
-{
- int low = 0;
- int high = sizeof (map) / sizeof (map[0]);
-
- while (low < high)
- {
- int med = (low + high) / 2;
- int cmpres;
-
- cmpres = strcmp (str, map[med].str);
- if (cmpres == 0)
- return map[med].val;
- else if (cmpres > 0)
- low = med + 1;
- else
- high = med;
- }
-
- return -1;
-}
-
-
-#ifdef DEBUG
-# define REASON(str) printf ("\"%s\" ignored: %s\n", buf, str)
-#else
-# define REASON(str)
-#endif
-
-int
-main (void)
-{
- int result = 0;
-
- while (! feof (stdin))
- {
- char buf[1000];
- char *rp;
- char *locale;
- char *paramstr;
- char *expected;
- char *actual;
- int param;
-
- if (fgets (buf, sizeof (buf), stdin) == NULL)
- break;
-
- /* Split the fields. There are three is them:
- 1. locale
- 2. langinfo() parameter
- 3. expected result; this can be a string with white space etc.
- */
- rp = buf;
- while (*rp == ' ' || *rp == '\t')
- ++rp;
-
- if (*rp == '#')
- {
- /* It's a comment line. Ignore it. */
- REASON ("comment");
- continue;
- }
- locale = rp;
-
- while (*rp != '\0' && *rp != ' ' && *rp != '\t' && *rp != '\n')
- ++rp;
- if (*rp == '\0' || *rp == '\n')
- {
- /* Incomplete line. */
- REASON ("incomplete line");
- continue;
- }
- *rp++ = '\0';
-
- while (*rp == ' ' || *rp == '\t')
- ++rp;
- paramstr = rp;
-
- while (*rp != '\0' && *rp != ' ' && *rp != '\t' && *rp != '\n')
- ++rp;
- if (*rp == '\0' || *rp == '\n')
- {
- /* Incomplete line. */
- REASON ("incomplete line");
- continue;
- }
- *rp++ = '\0';
-
- while (*rp == ' ' || *rp == '\t')
- ++rp;
-
- if (*rp == '"')
- {
- char *wp;
-
- expected = wp = ++rp;
- while (*rp != '"' && *rp != '\n' && *rp != '\0')
- {
- if (*rp == '\\')
- {
- ++rp;
- if (*rp == '\0')
- break;
- if (*rp >= '0' && *rp <= '9')
- {
- int val = *rp - '0';
- if (rp[1] >= '0' && rp[1] <= '9')
- {
- ++rp;
- val *= 10;
- val += *rp - '0';
- if (rp[1] >= '0' && rp[1] <= '9')
- {
- ++rp;
- val *= 10;
- val += *rp - '0';
- }
- }
- *rp = val;
- }
- }
- *wp++ = *rp++;
- }
-
- if (*rp != '"')
- {
- REASON ("missing '\"'");
- continue;
- }
-
- *wp = '\0';
- }
- else
- {
- expected = rp;
- while (*rp != '\0' && *rp != '\n')
- ++rp;
- *rp = '\0';
- }
-
- param = map_paramstr (paramstr);
- if (param == -1)
- {
- /* Invalid parameter. */
- REASON ("invalid parameter");
- continue;
- }
-
- /* Set the locale and check whether it worked. */
- printf ("LC_ALL=%s nl_langinfo(%s)", locale, paramstr);
- setlocale (LC_ALL, locale);
- if (strcmp (locale, setlocale (LC_ALL, NULL)) != 0)
- {
- puts (": failed to set locale");
- result = 1;
- continue;
- }
-
- actual = nl_langinfo (param);
- printf (" = \"%s\", ", actual);
-
- if (strcmp (actual, expected) == 0)
- puts ("OK");
- else
- {
- printf ("FAILED (expected: %s)\n", expected);
- result = 1;
- }
- }
-
- return result;
-}
diff --git a/test/locale/tst-langinfo.input b/test/locale/tst-langinfo.input
deleted file mode 100644
index 8f1861b..0000000
--- a/test/locale/tst-langinfo.input
+++ /dev/null
@@ -1,302 +0,0 @@
-#! /bin/sh
-# Input file for tst-langinfo.
-# Copyright (C) 2000, 2001, 2003 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; see the file COPYING.LIB. If
-# not, see <http://www.gnu.org/licenses/>.
-
-
-# Run the test program.
-# Only decimal numerical escape sequences allowed in strings.
-C ABDAY_1 Sun
-C ABDAY_2 Mon
-C ABDAY_3 Tue
-C ABDAY_4 Wed
-C ABDAY_5 Thu
-C ABDAY_6 Fri
-C ABDAY_7 Sat
-C DAY_1 Sunday
-C DAY_2 Monday
-C DAY_3 Tuesday
-C DAY_4 Wednesday
-C DAY_5 Thursday
-C DAY_6 Friday
-C DAY_7 Saturday
-C ABMON_1 Jan
-C ABMON_2 Feb
-C ABMON_3 Mar
-C ABMON_4 Apr
-C ABMON_5 May
-C ABMON_6 Jun
-C ABMON_7 Jul
-C ABMON_8 Aug
-C ABMON_9 Sep
-C ABMON_10 Oct
-C ABMON_11 Nov
-C ABMON_12 Dec
-C MON_1 January
-C MON_2 February
-C MON_3 March
-C MON_4 April
-C MON_5 May
-C MON_6 June
-C MON_7 July
-C MON_8 August
-C MON_9 September
-C MON_10 October
-C MON_11 November
-C MON_12 December
-C AM_STR AM
-C PM_STR PM
-C D_T_FMT "%a %b %e %H:%M:%S %Y"
-C D_FMT "%m/%d/%y"
-C T_FMT "%H:%M:%S"
-C T_FMT_AMPM "%I:%M:%S %p"
-C ABDAY_1 Sun
-C ABDAY_2 Mon
-C ABDAY_3 Tue
-C ABDAY_4 Wed
-C ABDAY_5 Thu
-C ABDAY_6 Fri
-C ABDAY_7 Sat
-C DAY_1 Sunday
-C DAY_2 Monday
-C DAY_3 Tuesday
-C DAY_4 Wednesday
-C DAY_5 Thursday
-C DAY_6 Friday
-C DAY_7 Saturday
-C RADIXCHAR .
-C THOUSEP ""
-C YESEXPR ^[yY]
-C NOEXPR ^[nN]
-en_US.ISO-8859-1 ABMON_1 Jan
-en_US.ISO-8859-1 ABMON_2 Feb
-en_US.ISO-8859-1 ABMON_3 Mar
-en_US.ISO-8859-1 ABMON_4 Apr
-en_US.ISO-8859-1 ABMON_5 May
-en_US.ISO-8859-1 ABMON_6 Jun
-en_US.ISO-8859-1 ABMON_7 Jul
-en_US.ISO-8859-1 ABMON_8 Aug
-en_US.ISO-8859-1 ABMON_9 Sep
-en_US.ISO-8859-1 ABMON_10 Oct
-en_US.ISO-8859-1 ABMON_11 Nov
-en_US.ISO-8859-1 ABMON_12 Dec
-en_US.ISO-8859-1 MON_1 January
-en_US.ISO-8859-1 MON_2 February
-en_US.ISO-8859-1 MON_3 March
-en_US.ISO-8859-1 MON_4 April
-en_US.ISO-8859-1 MON_5 May
-en_US.ISO-8859-1 MON_6 June
-en_US.ISO-8859-1 MON_7 July
-en_US.ISO-8859-1 MON_8 August
-en_US.ISO-8859-1 MON_9 September
-en_US.ISO-8859-1 MON_10 October
-en_US.ISO-8859-1 MON_11 November
-en_US.ISO-8859-1 MON_12 December
-en_US.ISO-8859-1 AM_STR AM
-en_US.ISO-8859-1 PM_STR PM
-en_US.ISO-8859-1 D_T_FMT "%a %d %b %Y %r %Z"
-en_US.ISO-8859-1 D_FMT "%m/%d/%Y"
-en_US.ISO-8859-1 T_FMT "%r"
-en_US.ISO-8859-1 T_FMT_AMPM "%I:%M:%S %p"
-en_US.ISO-8859-1 RADIXCHAR .
-en_US.ISO-8859-1 THOUSEP ,
-en_US.ISO-8859-1 YESEXPR ^[yY].*
-en_US.ISO-8859-1 NOEXPR ^[nN].*
-de_DE.ISO-8859-1 ABDAY_1 So
-de_DE.ISO-8859-1 ABDAY_2 Mo
-de_DE.ISO-8859-1 ABDAY_3 Di
-de_DE.ISO-8859-1 ABDAY_4 Mi
-de_DE.ISO-8859-1 ABDAY_5 Do
-de_DE.ISO-8859-1 ABDAY_6 Fr
-de_DE.ISO-8859-1 ABDAY_7 Sa
-de_DE.ISO-8859-1 DAY_1 Sonntag
-de_DE.ISO-8859-1 DAY_2 Montag
-de_DE.ISO-8859-1 DAY_3 Dienstag
-de_DE.ISO-8859-1 DAY_4 Mittwoch
-de_DE.ISO-8859-1 DAY_5 Donnerstag
-de_DE.ISO-8859-1 DAY_6 Freitag
-de_DE.ISO-8859-1 DAY_7 Samstag
-de_DE.ISO-8859-1 ABMON_1 Jan
-de_DE.ISO-8859-1 ABMON_2 Feb
-de_DE.ISO-8859-1 ABMON_3 M�r
-de_DE.ISO-8859-1 ABMON_4 Apr
-de_DE.ISO-8859-1 ABMON_5 Mai
-de_DE.ISO-8859-1 ABMON_6 Jun
-de_DE.ISO-8859-1 ABMON_7 Jul
-de_DE.ISO-8859-1 ABMON_8 Aug
-de_DE.ISO-8859-1 ABMON_9 Sep
-de_DE.ISO-8859-1 ABMON_10 Okt
-de_DE.ISO-8859-1 ABMON_11 Nov
-de_DE.ISO-8859-1 ABMON_12 Dez
-de_DE.ISO-8859-1 MON_1 Januar
-de_DE.ISO-8859-1 MON_2 Februar
-de_DE.ISO-8859-1 MON_3 M�rz
-de_DE.ISO-8859-1 MON_4 April
-de_DE.ISO-8859-1 MON_5 Mai
-de_DE.ISO-8859-1 MON_6 Juni
-de_DE.ISO-8859-1 MON_7 Juli
-de_DE.ISO-8859-1 MON_8 August
-de_DE.ISO-8859-1 MON_9 September
-de_DE.ISO-8859-1 MON_10 Oktober
-de_DE.ISO-8859-1 MON_11 November
-de_DE.ISO-8859-1 MON_12 Dezember
-de_DE.ISO-8859-1 D_T_FMT "%a %d %b %Y %T %Z"
-de_DE.ISO-8859-1 D_FMT "%d.%m.%Y"
-de_DE.ISO-8859-1 T_FMT "%T"
-de_DE.ISO-8859-1 RADIXCHAR ,
-de_DE.ISO-8859-1 THOUSEP .
-de_DE.ISO-8859-1 YESEXPR ^[jJyY].*
-de_DE.ISO-8859-1 NOEXPR ^[nN].*
-de_DE.UTF-8 ABDAY_1 So
-de_DE.UTF-8 ABDAY_2 Mo
-de_DE.UTF-8 ABDAY_3 Di
-de_DE.UTF-8 ABDAY_4 Mi
-de_DE.UTF-8 ABDAY_5 Do
-de_DE.UTF-8 ABDAY_6 Fr
-de_DE.UTF-8 ABDAY_7 Sa
-de_DE.UTF-8 DAY_1 Sonntag
-de_DE.UTF-8 DAY_2 Montag
-de_DE.UTF-8 DAY_3 Dienstag
-de_DE.UTF-8 DAY_4 Mittwoch
-de_DE.UTF-8 DAY_5 Donnerstag
-de_DE.UTF-8 DAY_6 Freitag
-de_DE.UTF-8 DAY_7 Samstag
-de_DE.UTF-8 ABMON_1 Jan
-de_DE.UTF-8 ABMON_2 Feb
-de_DE.UTF-8 ABMON_3 Mär
-de_DE.UTF-8 ABMON_4 Apr
-de_DE.UTF-8 ABMON_5 Mai
-de_DE.UTF-8 ABMON_6 Jun
-de_DE.UTF-8 ABMON_7 Jul
-de_DE.UTF-8 ABMON_8 Aug
-de_DE.UTF-8 ABMON_9 Sep
-de_DE.UTF-8 ABMON_10 Okt
-de_DE.UTF-8 ABMON_11 Nov
-de_DE.UTF-8 ABMON_12 Dez
-de_DE.UTF-8 MON_1 Januar
-de_DE.UTF-8 MON_2 Februar
-de_DE.UTF-8 MON_3 März
-de_DE.UTF-8 MON_4 April
-de_DE.UTF-8 MON_5 Mai
-de_DE.UTF-8 MON_6 Juni
-de_DE.UTF-8 MON_7 Juli
-de_DE.UTF-8 MON_8 August
-de_DE.UTF-8 MON_9 September
-de_DE.UTF-8 MON_10 Oktober
-de_DE.UTF-8 MON_11 November
-de_DE.UTF-8 MON_12 Dezember
-de_DE.UTF-8 D_T_FMT "%a %d %b %Y %T %Z"
-de_DE.UTF-8 D_FMT "%d.%m.%Y"
-de_DE.UTF-8 T_FMT "%T"
-de_DE.UTF-8 RADIXCHAR ,
-de_DE.UTF-8 THOUSEP .
-de_DE.UTF-8 YESEXPR ^[jJyY].*
-de_DE.UTF-8 NOEXPR ^[nN].*
-fr_FR.ISO-8859-1 ABDAY_1 dim
-fr_FR.ISO-8859-1 ABDAY_2 lun
-fr_FR.ISO-8859-1 ABDAY_3 mar
-fr_FR.ISO-8859-1 ABDAY_4 mer
-fr_FR.ISO-8859-1 ABDAY_5 jeu
-fr_FR.ISO-8859-1 ABDAY_6 ven
-fr_FR.ISO-8859-1 ABDAY_7 sam
-fr_FR.ISO-8859-1 DAY_1 dimanche
-fr_FR.ISO-8859-1 DAY_2 lundi
-fr_FR.ISO-8859-1 DAY_3 mardi
-fr_FR.ISO-8859-1 DAY_4 mercredi
-fr_FR.ISO-8859-1 DAY_5 jeudi
-fr_FR.ISO-8859-1 DAY_6 vendredi
-fr_FR.ISO-8859-1 DAY_7 samedi
-fr_FR.ISO-8859-1 ABMON_1 jan
-fr_FR.ISO-8859-1 ABMON_2 f�v
-fr_FR.ISO-8859-1 ABMON_3 mar
-fr_FR.ISO-8859-1 ABMON_4 avr
-fr_FR.ISO-8859-1 ABMON_5 mai
-fr_FR.ISO-8859-1 ABMON_6 jun
-fr_FR.ISO-8859-1 ABMON_7 jui
-fr_FR.ISO-8859-1 ABMON_8 ao�
-fr_FR.ISO-8859-1 ABMON_9 sep
-fr_FR.ISO-8859-1 ABMON_10 oct
-fr_FR.ISO-8859-1 ABMON_11 nov
-fr_FR.ISO-8859-1 ABMON_12 d�c
-fr_FR.ISO-8859-1 MON_1 janvier
-fr_FR.ISO-8859-1 MON_2 f�vrier
-fr_FR.ISO-8859-1 MON_3 mars
-fr_FR.ISO-8859-1 MON_4 avril
-fr_FR.ISO-8859-1 MON_5 mai
-fr_FR.ISO-8859-1 MON_6 juin
-fr_FR.ISO-8859-1 MON_7 juillet
-fr_FR.ISO-8859-1 MON_8 ao�t
-fr_FR.ISO-8859-1 MON_9 septembre
-fr_FR.ISO-8859-1 MON_10 octobre
-fr_FR.ISO-8859-1 MON_11 novembre
-fr_FR.ISO-8859-1 MON_12 d�cembre
-fr_FR.ISO-8859-1 D_T_FMT "%a %d %b %Y %T %Z"
-fr_FR.ISO-8859-1 D_FMT "%d.%m.%Y"
-fr_FR.ISO-8859-1 T_FMT "%T"
-fr_FR.ISO-8859-1 RADIXCHAR ,
-fr_FR.ISO-8859-1 THOUSEP ""
-fr_FR.ISO-8859-1 YESEXPR ^[oOyY].*
-fr_FR.ISO-8859-1 NOEXPR ^[nN].*
-ja_JP.EUC-JP ABDAY_1 ��
-ja_JP.EUC-JP ABDAY_2 ��
-ja_JP.EUC-JP ABDAY_3 ��
-ja_JP.EUC-JP ABDAY_4 ��
-ja_JP.EUC-JP ABDAY_5 ��
-ja_JP.EUC-JP ABDAY_6 ��
-ja_JP.EUC-JP ABDAY_7 ��
-ja_JP.EUC-JP DAY_1 ������
-ja_JP.EUC-JP DAY_2 ������
-ja_JP.EUC-JP DAY_3 ������
-ja_JP.EUC-JP DAY_4 ������
-ja_JP.EUC-JP DAY_5 ������
-ja_JP.EUC-JP DAY_6 ������
-ja_JP.EUC-JP DAY_7 ������
-ja_JP.EUC-JP ABMON_1 " 1��"
-ja_JP.EUC-JP ABMON_2 " 2��"
-ja_JP.EUC-JP ABMON_3 " 3��"
-ja_JP.EUC-JP ABMON_4 " 4��"
-ja_JP.EUC-JP ABMON_5 " 5��"
-ja_JP.EUC-JP ABMON_6 " 6��"
-ja_JP.EUC-JP ABMON_7 " 7��"
-ja_JP.EUC-JP ABMON_8 " 8��"
-ja_JP.EUC-JP ABMON_9 " 9��"
-ja_JP.EUC-JP ABMON_10 "10��"
-ja_JP.EUC-JP ABMON_11 "11��"
-ja_JP.EUC-JP ABMON_12 "12��"
-ja_JP.EUC-JP MON_1 "1��"
-ja_JP.EUC-JP MON_2 "2��"
-ja_JP.EUC-JP MON_3 "3��"
-ja_JP.EUC-JP MON_4 "4��"
-ja_JP.EUC-JP MON_5 "5��"
-ja_JP.EUC-JP MON_6 "6��"
-ja_JP.EUC-JP MON_7 "7��"
-ja_JP.EUC-JP MON_8 "8��"
-ja_JP.EUC-JP MON_9 "9��"
-ja_JP.EUC-JP MON_10 "10��"
-ja_JP.EUC-JP MON_11 "11��"
-ja_JP.EUC-JP MON_12 "12��"
-ja_JP.EUC-JP T_FMT_AMPM "%p%I��%Mʬ%S��"
-ja_JP.EUC-JP ERA_D_FMT "%EY%m��%d��"
-ja_JP.EUC-JP ERA_D_T_FMT "%EY%m��%d�� %H��%Mʬ%S��"
-ja_JP.EUC-JP RADIXCHAR .
-ja_JP.EUC-JP THOUSEP ,
-ja_JP.EUC-JP YESEXPR ^([yY����]|�Ϥ�|�ϥ�)
-ja_JP.EUC-JP NOEXPR ^([nN���]|������|������)
-# Is CRNCYSTR supposed to be the national or international sign?
-# ja_JP.EUC-JP CRNCYSTR JPY
-ja_JP.EUC-JP CODESET EUC-JP
diff --git a/test/locale/tst-leaks.c b/test/locale/tst-leaks.c
deleted file mode 100644
index 7a4b557..0000000
--- a/test/locale/tst-leaks.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <locale.h>
-#include <mcheck.h>
-
-int
-main (void)
-{
- int cnt;
-
- mtrace ();
-
- for (cnt = 0; cnt < 100; ++cnt)
- {
- setlocale (LC_ALL, "de_DE.ISO-8859-1");
- setlocale (LC_ALL, "de_DE.UTF-8");
- }
-
- return 0;
-}
diff --git a/test/locale/tst-mbswcs1.c b/test/locale/tst-mbswcs1.c
deleted file mode 100644
index 6681ccc..0000000
--- a/test/locale/tst-mbswcs1.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Test restarting behaviour of mbrtowc.
- Copyright (C) 2000, 2005 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Bruno Haible <haible(a)ilog.fr>.
-
- 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/>. */
-
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
-
-#define show(expr, nexp, wcexp) \
- n = expr; \
- printf (#expr " -> %Zd", n); \
- printf (", wc = %lu", (unsigned long int) wc); \
- if (n != (size_t) nexp || wc != wcexp) \
- { \
- printf (", expected %Zd and %lu", nexp, (unsigned long int) wcexp); \
- result = 1; \
- } \
- putc ('\n', stdout)
-
-int
-main (void)
-{
- const unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
- mbstate_t state;
- wchar_t wc = 42;
- size_t n;
- int result = 0;
- const char *used_locale;
-
- setlocale (LC_CTYPE, "de_DE.UTF-8");
- /* Double check. */
- used_locale = setlocale (LC_CTYPE, NULL);
- printf ("used locale: \"%s\"\n", used_locale);
- result = strcmp (used_locale, "de_DE.UTF-8");
-
- memset (&state, '\0', sizeof (state));
-
- show (mbrtowc (&wc, (const char *) buf + 0, 1, &state), 1, 37);
- show (mbrtowc (&wc, (const char *) buf + 1, 1, &state), -2, 37);
- show (mbrtowc (&wc, (const char *) buf + 2, 3, &state), 2, 8364);
- show (mbrtowc (&wc, (const char *) buf + 4, 1, &state), -2, 8364);
- show (mbrtowc (&wc, (const char *) buf + 5, 1, &state), 1, 955);
- show (mbrtowc (&wc, (const char *) buf + 5, 1, &state), -1, 955);
-
- return result;
-}
diff --git a/test/locale/tst-mbswcs2.c b/test/locale/tst-mbswcs2.c
deleted file mode 100644
index 042069f..0000000
--- a/test/locale/tst-mbswcs2.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Test restarting behaviour of mbsnrtowcs.
- Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Bruno Haible <haible(a)ilog.fr>.
-
- 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/>. */
-
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
-
-#define show(expr, nexp, wcexp, end) \
- n = expr; \
- printf (#expr " -> %Zd", n); \
- printf (", wc = %lu, src = buf+%d", (unsigned long int) wc, \
- src - (const char *) buf); \
- if (n != (size_t) nexp || wc != wcexp || src != (const char *) (end)) \
- { \
- printf (", expected %Zd and %lu and buf+%d", nexp, \
- (unsigned long int) wcexp, (end) - buf); \
- result = 1; \
- } \
- putc ('\n', stdout)
-
-int
-main (void)
-{
- unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
- mbstate_t state;
- const char *src;
- wchar_t wc = 42;
- size_t n;
- int result = 0;
- const char *used_locale;
-
- setlocale (LC_CTYPE,"de_DE.UTF-8");
- /* Double check. */
- used_locale = setlocale (LC_CTYPE, NULL);
- printf ("used locale: \"%s\"\n", used_locale);
- result = strcmp (used_locale, "de_DE.UTF-8");
-
- memset (&state, '\0', sizeof (state));
-
- src = (const char *) buf;
- show (mbsnrtowcs (&wc, &src, 1, 1, &state), 1, 37, buf + 1);
- show (mbsnrtowcs (&wc, &src, 3, 1, &state), 1, 8364, buf + 4);
- show (mbsnrtowcs (&wc, &src, 1, 1, &state), 0, 8364, buf + 5);
- show (mbsnrtowcs (&wc, &src, 1, 1, &state), 1, 955, buf + 6);
-
- return result;
-}
diff --git a/test/locale/tst-mbswcs3.c b/test/locale/tst-mbswcs3.c
deleted file mode 100644
index 73bb59a..0000000
--- a/test/locale/tst-mbswcs3.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/* Test restarting behaviour of wcsrtombs.
- Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Bruno Haible <haible(a)ilog.fr>.
-
- 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/>. */
-
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
-
-#define show(expr, nexp, srcexp, bufexp) \
- { \
- size_t res = expr; \
- printf (#expr " -> %Zd", res); \
- dst += res; \
- printf (", src = srcbuf+%td, dst = buf+%td", \
- src - srcbuf, dst - (char *) buf); \
- if (res != nexp || src != (srcexp) || dst != (char *) (bufexp)) \
- { \
- printf (", expected %Zd and srcbuf+%td and buf+%td", nexp, \
- (srcexp) - srcbuf, (bufexp) - (unsigned char *) buf); \
- result = 1; \
- } \
- putc ('\n', stdout); \
- }
-
-int
-main (void)
-{
- unsigned char buf[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
- const unsigned char bufcheck[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
- const wchar_t srcbuf[4] = { 0x25, 0x20ac, 0x03bb, 0 };
- mbstate_t state;
- const wchar_t *src;
- char *dst;
- int result = 0;
- const char *used_locale;
-
- setlocale (LC_CTYPE, "de_DE.UTF-8");
- /* Double check. */
- used_locale = setlocale (LC_CTYPE, NULL);
- printf ("used locale: \"%s\"\n", used_locale);
- result = strcmp (used_locale, "de_DE.UTF-8");
-
- memset (&state, '\0', sizeof (state));
-
- src = srcbuf;
- dst = (char *) buf;
- show (wcsrtombs (dst, &src, 1, &state), 1, srcbuf + 1, buf + 1);
- show (wcsrtombs (dst, &src, 1, &state), 0, srcbuf + 1, buf + 1);
- show (wcsrtombs (dst, &src, 4, &state), 3, srcbuf + 2, buf + 4);
- show (wcsrtombs (dst, &src, 2, &state), 2, srcbuf + 3, buf + 6);
-
- if (memcmp (buf, bufcheck, 6))
- {
- puts ("wrong results");
- result = 1;
- }
-
- return result;
-}
diff --git a/test/locale/tst-mbswcs4.c b/test/locale/tst-mbswcs4.c
deleted file mode 100644
index 8720401..0000000
--- a/test/locale/tst-mbswcs4.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Test restarting behaviour of mbsrtowcs.
- Copyright (C) 2000 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/>. */
-
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
-
-#define show(expr, nexp, wcexp, end) \
- n = expr; \
- printf (#expr " -> %Zd", n); \
- printf (", wc = %lu, src = buf+%d", (unsigned long int) wc, \
- src - (const char *) buf); \
- if (n != (size_t) nexp || wc != wcexp || src != (const char *) (end)) \
- { \
- printf (", expected %Zd and %lu and buf+%d", nexp, \
- (unsigned long int) wcexp, (end) - buf); \
- result = 1; \
- } \
- putc ('\n', stdout)
-
-int
-main (void)
-{
- unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb };
- mbstate_t state;
- const char *src;
- wchar_t wc = 42;
- size_t n;
- int result = 0;
- const char *used_locale;
-
- setlocale (LC_CTYPE,"de_DE.UTF-8");
- /* Double check. */
- used_locale = setlocale (LC_CTYPE, NULL);
- printf ("used locale: \"%s\"\n", used_locale);
- result = strcmp (used_locale, "de_DE.UTF-8");
-
- memset (&state, '\0', sizeof (state));
-
- src = (const char *) buf;
- show (mbsrtowcs (&wc, &src, 1, &state), 1, 37, buf + 1);
- show (mbsrtowcs (&wc, &src, 1, &state), 1, 8364, buf + 4);
- show (mbsrtowcs (&wc, &src, 1, &state), 1, 955, buf + 6);
-
- return result;
-}
diff --git a/test/locale/tst-mbswcs5.c b/test/locale/tst-mbswcs5.c
deleted file mode 100644
index efb6dda..0000000
--- a/test/locale/tst-mbswcs5.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Test restarting behaviour of wcrtomb.
- Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Bruno Haible <haible(a)ilog.fr>.
-
- 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/>. */
-
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-#include <locale.h>
-
-#define show(expr, nexp, bufexp) \
- { \
- size_t res = expr; \
- printf (#expr " -> %Zd", res); \
- dst += res; \
- printf (", dst = buf+%td", dst - (char *) buf); \
- if (res != nexp || dst != (char *) (bufexp)) \
- { \
- printf (", expected %Zd and buf+%td", nexp, \
- (bufexp) - (unsigned char *) buf); \
- result = 1; \
- } \
- putc ('\n', stdout); \
- }
-
-int
-main (void)
-{
- unsigned char buf[7] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
- const unsigned char bufcheck[7] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb, 0 };
- const wchar_t srcbuf[4] = { 0x25, 0x20ac, 0x03bb, 0 };
- mbstate_t state;
- const wchar_t *src;
- char *dst;
- int result = 0;
- const char *used_locale;
-
- setlocale (LC_CTYPE, "de_DE.UTF-8");
- /* Double check. */
- used_locale = setlocale (LC_CTYPE, NULL);
- printf ("used locale: \"%s\"\n", used_locale);
- result = strcmp (used_locale, "de_DE.UTF-8");
-
- memset (&state, '\0', sizeof (state));
-
- src = srcbuf;
- dst = (char *) buf;
- show (wcrtomb (dst, *src++, &state), 1, buf + 1);
- show (wcrtomb (dst, *src++, &state), 3, buf + 4);
- show (wcrtomb (dst, *src++, &state), 2, buf + 6);
- show (wcrtomb (dst, *src, &state), 1, buf + 7);
-
- if (memcmp (buf, bufcheck, 7))
- {
- puts ("wrong results");
- result = 1;
- }
-
- return result;
-}
diff --git a/test/locale/tst-mbswcs6.c b/test/locale/tst-mbswcs6.c
deleted file mode 100644
index 4bbb961..0000000
--- a/test/locale/tst-mbswcs6.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Test for invalid input to wcrtomb.
- Copyright (C) 2001 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)redhat.com>, 2001.
-
- 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/>. */
-
-#include <errno.h>
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-#include <wchar.h>
-
-
-static int
-do_test (const char *loc)
-{
- char buf[100];
- size_t n;
- mbstate_t state;
- const char *nloc;
- int res;
-
- nloc = setlocale (LC_ALL, loc);
- if (nloc == NULL)
- {
- printf ("could not set locale \"%s\"\n", loc);
- return 1;
- }
- printf ("new locale: %s\n", nloc);
-
- memset (&state, '\0', sizeof (state));
- errno = 0;
- n = wcrtomb (buf, (wchar_t) -15l, &state);
-
- printf ("n = %zd, errno = %d (%s)\n", n, errno, strerror (errno));
-
- res = n != (size_t) -1 || errno != EILSEQ;
- if (res)
- puts ("*** FAIL");
- putchar ('\n');
-
- return res;
-}
-
-
-int
-main (void)
-{
- int res;
-
- res = do_test ("C");
- res |= do_test ("de_DE.ISO-8859-1");
- res |= do_test ("de_DE.UTF-8");
- res |= do_test ("en_US.ISO-8859-1");
- res |= do_test ("ja_JP.UTF-8");
- res |= do_test ("hr_HR.ISO-8859-2");
- //res |= do_test ("ru_RU.KOI8-R");
-
- return res;
-}
diff --git a/test/locale/tst-numeric.c b/test/locale/tst-numeric.c
deleted file mode 100644
index a7911f1..0000000
--- a/test/locale/tst-numeric.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Testing the implementation of LC_NUMERIC and snprintf().
- Copyright (C) 2003 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Petter Reinholdtsen <pere(a)hungry.com>, 2003
-
- Based on tst-fmon.c by Jochen Hein <jochen.hein(a)delphi.central.de>, 1997.
-
- 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/>. */
-
-#include <stdio.h>
-#include <locale.h>
-#include <string.h>
-#include <stdlib.h>
-
-/*
- test-numeric gets called with three parameters:
- - the locale
- - the format-string to be used
- - the actual number to be formatted
- - the expected string
- If the test passes, test-numeric terminates with returncode 0,
- otherwise with 1
-*/
-#define EXIT_SUCCESS 0
-#define EXIT_FAILURE 1
-#define EXIT_SETLOCALE 2
-#define EXIT_SNPRINTF 3
-
-int
-main (int argc, char *argv[])
-{
- char *s = malloc (201);
- double val;
-
- /* Make sure to read the value before setting of the locale, as
- strtod() is locale-dependent. */
- val = strtod (argv[3], NULL);
-
- if (setlocale (LC_ALL, argv[1]) == NULL)
- {
- fprintf (stderr, "setlocale(LC_ALL, \"%s\"): %m\n", argv[1]);
- exit (EXIT_SETLOCALE);
- }
-
- if (snprintf (s, 200, argv[2], val) == -1)
- {
- perror ("snprintf");
- exit (EXIT_SNPRINTF);
- }
-
- if (strcmp (s, argv[4]) != 0)
- {
- printf ("\
-locale: \"%s\", format: \"%s\", expected: \"%s\", got: \"%s\" => %s\n",
- argv[1], argv[2], argv[4], s,
- strcmp (s, argv[4]) != 0 ? "false" : "correct");
- exit (EXIT_FAILURE);
- }
-
- return EXIT_SUCCESS;
-}
diff --git a/test/locale/tst-rpmatch.c b/test/locale/tst-rpmatch.c
deleted file mode 100644
index 91e2365..0000000
--- a/test/locale/tst-rpmatch.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Test program for rpmatch function.
- Copyright (C) 1998, 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Jochen Hein <jochen.hein(a)delphi.central.de>.
-
- 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/>. */
-
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main (int argc, char* argv[])
-{
- setlocale (LC_ALL, argv[1]);
-
- if (rpmatch (argv[2]) != atol (argv[3]))
- {
- fprintf (stderr,"Failed: Locale %s, String %s, Exp: %s, got %d\n",
- argv[1], argv[2], argv[3], rpmatch (argv[2]));
- exit (EXIT_FAILURE);
- }
- return EXIT_SUCCESS;
-}
diff --git a/test/locale/tst-setlocale.c b/test/locale/tst-setlocale.c
deleted file mode 100644
index 1f8e68d..0000000
--- a/test/locale/tst-setlocale.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Test case by Jakub Jelinek <jakub(a)redhat.com>. */
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-
-int
-main (void)
-{
- char q[30];
- char *s;
-
- setlocale (LC_ALL, "");
- printf ("after setlocale (LC_ALL, \"\"): %s\n", setlocale(LC_NUMERIC, NULL));
-
- strcpy (q, "de_DE.UTF-8");
- setlocale (LC_NUMERIC, q);
- printf ("after setlocale (LC_NUMERIC, \"%s\"): %s\n",
- q, setlocale(LC_NUMERIC, NULL));
-
- strcpy (q, "de_DE.ISO-8859-1");
- s = setlocale (LC_NUMERIC, NULL);
- printf ("after overwriting string: %s\n", s);
-
- return strcmp (s, "de_DE.UTF-8") != 0;
-}
diff --git a/test/locale/tst-sscanf.c b/test/locale/tst-sscanf.c
deleted file mode 100644
index 32c1328..0000000
--- a/test/locale/tst-sscanf.c
+++ /dev/null
@@ -1,56 +0,0 @@
-#include <stdio.h>
-#include <locale.h>
-#include <assert.h>
-
-#define P0 "\xDB\xB0"
-#define P1 "\xDB\xB1"
-#define P2 "\xDB\xB2"
-#define P3 "\xDB\xB3"
-#define P4 "\xDB\xB4"
-#define P5 "\xDB\xB5"
-#define P6 "\xDB\xB6"
-#define P7 "\xDB\xB7"
-#define P8 "\xDB\xB8"
-#define P9 "\xDB\xB9"
-#define PD "\xd9\xab"
-#define PT "\xd9\xac"
-
-static int
-check_sscanf (const char *s, const char *format, const float n)
-{
- float f;
-
- if (sscanf (s, format, &f) != 1)
- {
- printf ("nothing found for \"%s\"\n", s);
- return 1;
- }
- if (f != n)
- {
- printf ("got %f expected %f from \"%s\"\n", f, n, s);
- return 1;
- }
- return 0;
-}
-
-static int
-do_test (void)
-{
- if (setlocale (LC_ALL, "fa_IR.UTF-8") == NULL)
- {
- puts ("cannot set fa_IR locale");
- return 1;
- }
-
- int r = check_sscanf (P3 PD P1 P4, "%I8f", 3.14);
- r |= check_sscanf (P3 PT P1 P4 P5, "%I'f", 3145);
- r |= check_sscanf (P3 PD P1 P4 P1 P5 P9, "%If", 3.14159);
- r |= check_sscanf ("-" P3 PD P1 P4 P1 P5, "%If", -3.1415);
- r |= check_sscanf ("+" PD P1 P4 P1 P5, "%If", +.1415);
- r |= check_sscanf (P3 PD P1 P4 P1 P5 "e+" P2, "%Ie", 3.1415e+2);
-
- return r;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/locale/tst-strfmon1.c b/test/locale/tst-strfmon1.c
deleted file mode 100644
index e30aa1b..0000000
--- a/test/locale/tst-strfmon1.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <monetary.h>
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-
-static const struct
-{
- const char *locale;
- const char *expected;
-} tests[] =
- {
- { "de_DE.ISO-8859-1", "|-12,34 EUR|-12,34|" },
- { "da_DK.ISO-8859-1", "|kr -12,34|-12,34|" },
- { "zh_TW.EUC-TW", "|-NT$12.34|-12.34|" },
- { "sv_SE.ISO-8859-1", "|-12,34 kr|-12,34|" }
- };
-#define ntests (sizeof (tests) / sizeof (tests[0]))
-
-
-static int
-do_test (void)
-{
- int res = 0;
- for (int i = 0; i < ntests; ++i)
- {
- char buf[500];
- if (setlocale (LC_ALL, tests[i].locale) == NULL)
- {
- printf ("failed to set locale %s\n", tests[i].locale);
- res = 1;
- continue;
- }
- strfmon (buf, sizeof (buf), "|%n|%!n|", -12.34, -12.34);
- int fail = strcmp (buf, tests[i].expected) != 0;
- printf ("%s%s\n", buf, fail ? " *** FAIL ***" : "");
- res |= fail;
- }
- return res;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/locale/tst-trans.c b/test/locale/tst-trans.c
deleted file mode 100644
index 081a9aa..0000000
--- a/test/locale/tst-trans.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Test program for user-defined character maps.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)cygnus.com>.
-
- 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/>. */
-
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <wchar.h>
-#include <wctype.h>
-
-int
-main (void)
-{
- char buf[30];
- wchar_t wbuf[30];
- wctrans_t t;
- wint_t wch;
- int errors = 0;
- int len;
-
- setlocale (LC_ALL, "");
-
- t = wctrans ("test");
- if (t == (wctrans_t) 0)
- {
- puts ("locale data files probably not loaded");
- exit (1);
- }
-
- wch = towctrans (L'A', t);
- printf ("towctrans (L'A', t) = %c\n", wch);
- if (wch != L'B')
- errors = 1;
-
- wch = towctrans (L'B', t);
- printf ("towctrans (L'B', t) = %c\n", wch);
- if (wch != L'C')
- errors = 1;
-
- /* Test the output digit handling. */
- swprintf (wbuf, sizeof (wbuf) / sizeof (wbuf[0]), L"%Id", 0x499602D2);
- errors |= wcscmp (wbuf, L"bcdefghija") != 0;
- len = wcslen (wbuf);
- errors |= len != 10;
- printf ("len = %d, wbuf = L\"%ls\"\n", len, wbuf);
-
- snprintf (buf, sizeof buf, "%Id", 0x499602D2);
- errors |= strcmp (buf, "bcdefghija") != 0;
- len = strlen (buf);
- errors |= len != 10;
- printf ("len = %d, buf = \"%s\"\n", len, buf);
-
- return errors;
-}
diff --git a/test/locale/tst-wctype.c b/test/locale/tst-wctype.c
deleted file mode 100644
index 21ebd92..0000000
--- a/test/locale/tst-wctype.c
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Test program for iswctype() function in ja_JP locale.
- Copyright (C) 2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)cygnus.com>.
-
- 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/>. */
-
-#include <error.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <wchar.h>
-#include <wctype.h>
-
-int
-main (void)
-{
- wctype_t wct;
- wchar_t buf[1000];
- int result = 1;
-
- setlocale (LC_ALL, "");
- wprintf (L"locale = %s\n", setlocale (LC_CTYPE, NULL));
-
- wct = wctype ("jhira");
- if (wct == 0)
- error (EXIT_FAILURE, 0, "jhira: no such character class");
-
- if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL)
- {
- int n;
-
- wprintf (L"buf[] = \"%ls\"\n", buf);
-
- result = 0;
-
- for (n = 0; buf[n] != L'\0'; ++n)
- {
- wprintf (L"jhira(U%04lx = %lc) = %d\n", (long) buf[n], buf[n],
- iswctype (buf[n], wct));
- result |= ((buf[n] < 0xff && iswctype (buf[n], wct))
- || (buf[n] > 0xff && !iswctype (buf[n], wct)));
- }
- }
-
- wct = wctype ("jkata");
- if (wct == 0)
- error (EXIT_FAILURE, 0, "jkata: no such character class");
-
- if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL)
- {
- int n;
-
- wprintf (L"buf[] = \"%ls\"\n", buf);
-
- result = 0;
-
- for (n = 0; buf[n] != L'\0'; ++n)
- {
- wprintf (L"jkata(U%04lx = %lc) = %d\n", (long) buf[n], buf[n],
- iswctype (buf[n], wct));
- result |= ((buf[n] < 0xff && iswctype (buf[n], wct))
- || (buf[n] > 0xff && !iswctype (buf[n], wct)));
- }
- }
-
- wct = wctype ("jdigit");
- if (wct == 0)
- error (EXIT_FAILURE, 0, "jdigit: no such character class");
-
- if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL)
- {
- int n;
-
- wprintf (L"buf[] = \"%ls\"\n", buf);
-
- result = 0;
-
- for (n = 0; buf[n] != L'\0'; ++n)
- {
- wprintf (L"jdigit(U%04lx = %lc) = %d\n", (long) buf[n], buf[n],
- iswctype (buf[n], wct));
- result |= ((buf[n] < 0xff && iswctype (buf[n], wct))
- || (buf[n] > 0xff && !iswctype (buf[n], wct)));
- }
- }
-
- wct = wctype ("jspace");
- if (wct == 0)
- error (EXIT_FAILURE, 0, "jspace: no such character class");
-
- if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL)
- {
- int n;
-
- wprintf (L"buf[] = \"%ls\"\n", buf);
-
- result = 0;
-
- for (n = 0; buf[n] != L'\0'; ++n)
- {
- wprintf (L"jspace(U%04lx = %lc) = %d\n", (long) buf[n], buf[n],
- iswctype (buf[n], wct));
- result |= ((buf[n] < 0xff && iswctype (buf[n], wct))
- || (buf[n] > 0xff && !iswctype (buf[n], wct)));
- }
- }
-
- wct = wctype ("jkanji");
- if (wct == 0)
- error (EXIT_FAILURE, 0, "jkanji: no such character class");
-
- if (fgetws (buf, sizeof (buf) / sizeof (buf[0]), stdin) != NULL)
- {
- int n;
-
- wprintf (L"buf[] = \"%ls\"\n", buf);
-
- result = 0;
-
- for (n = 0; buf[n] != L'\0'; ++n)
- {
- wprintf (L"jkanji(U%04lx = %lc) = %d\n", (long) buf[n], buf[n],
- iswctype (buf[n], wct));
- result |= ((buf[n] < 0xff && iswctype (buf[n], wct))
- || (buf[n] > 0xff && !iswctype (buf[n], wct)));
- }
- }
-
- return result;
-}
diff --git a/test/locale/tst-xlocale1.c b/test/locale/tst-xlocale1.c
deleted file mode 100644
index 297c9ad..0000000
--- a/test/locale/tst-xlocale1.c
+++ /dev/null
@@ -1,75 +0,0 @@
-#include <locale.h>
-#include <stdio.h>
-#include <string.h>
-
-
-static struct
-{
- const char *locale;
- const char *str1;
- const char *str2;
- int result;
-} tests[] =
- {
- { "C", "TRANSLIT", "translit", 0 },
- { "de_DE.ISO-8859-1", "TRANSLIT", "translit", 0 },
- { "de_DE.ISO-8859-1", "TRANSLIT", "tr�nslit", -1 },
- { "de_DE.UTF-8", "TRANSLIT", "translit", 0 },
- { "de_DE.ISO-8859-1", "�", "�", 1 }
- };
-#define ntests (sizeof (tests) / sizeof (tests[0]))
-
-
-int
-main (void)
-{
- size_t cnt;
- int result = 0;
- locale_t loc = newlocale (1 << LC_ALL, "C", NULL);
-
- for (cnt = 0; cnt < ntests; ++cnt)
- {
- int r;
-
- if (setlocale (LC_ALL, tests[cnt].locale) == NULL)
- {
- printf ("cannot set locale \"%s\": %m\n", tests[cnt].locale);
- result = 1;
- continue;
- }
-
- printf ("\nstrcasecmp_l (\"%s\", \"%s\", loc)\n",
- tests[cnt].str1, tests[cnt].str2);
-
- r = strcasecmp_l (tests[cnt].str1, tests[cnt].str2, loc);
- if (tests[cnt].result == 0)
- {
- if (r != 0)
- {
- printf ("\"%s\" and \"%s\" expected to be the same, result %d\n",
- tests[cnt].str1, tests[cnt].str2, r);
- result = 1;
- }
- }
- else if (tests[cnt].result < 0)
- {
- if (r >= 0)
- {
- printf ("\"%s\" expected to be smaller than \"%s\", result %d\n",
- tests[cnt].str1, tests[cnt].str2, r);
- result = 1;
- }
- }
- else
- {
- if (r <= 0)
- {
- printf ("\"%s\" expected to be larger than \"%s\", result %d\n",
- tests[cnt].str1, tests[cnt].str2, r);
- result = 1;
- }
- }
- }
-
- return result;
-}
diff --git a/test/locale/tst-xlocale2.c b/test/locale/tst-xlocale2.c
deleted file mode 100644
index 30d87de..0000000
--- a/test/locale/tst-xlocale2.c
+++ /dev/null
@@ -1,64 +0,0 @@
-#include <ctype.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-
-static int do_test (__locale_t l);
-
-int
-main (void)
-{
- locale_t l;
- locale_t l2;
- int result;
-
- l = newlocale (1 << LC_ALL, "de_DE.ISO-8859-1", NULL);
- if (l == NULL)
- {
- printf ("newlocale failed: %m\n");
- exit (EXIT_FAILURE);
- }
- puts ("Running tests of created locale");
- result = do_test (l);
-
- l2 = duplocale (l);
- if (l2 == NULL)
- {
- printf ("duplocale failed: %m\n");
- exit (EXIT_FAILURE);
- }
- freelocale (l);
- puts ("Running tests of duplicated locale");
- result |= do_test (l2);
-
- return result;
-}
-
-
-static const char str[] = "0123456789abcdef ABCDEF ghijklmnopqrstuvwxyz������";
-static const char exd[] = "11111111110000000000000000000000000000000000000000";
-static const char exa[] = "00000000001111110111111011111111111111111111111111";
-static const char exx[] = "11111111111111110111111000000000000000000000000000";
-
-
-static int
-do_test (locale_t l)
-{
- int result = 0;
-size_t n;
-
-#define DO_TEST(TEST, RES) \
- for (n = 0; n < sizeof (str) - 1; ++n) \
- if ('0' + (TEST (str[n], l) != 0) != RES[n]) \
- { \
- printf ("%s(%c) failed\n", #TEST, str[n]); \
- result = 1; \
- }
-
- DO_TEST (isdigit_l, exd);
- DO_TEST (isalpha_l, exa);
- DO_TEST (isxdigit_l, exx);
-
- return result;
-}
diff --git a/test/locale/tst_nl_langinfo.c b/test/locale/tst_nl_langinfo.c
deleted file mode 100644
index fcf2fe2..0000000
--- a/test/locale/tst_nl_langinfo.c
+++ /dev/null
@@ -1,296 +0,0 @@
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <langinfo.h>
-#include <nl_types.h>
-
-#if !defined(__UCLIBC__) && 0
-#define DO_EXTRA
-#endif
-
-int main(int argc, char **argv)
-{
- char *l;
- const unsigned char *x;
-/* const unsigned char *y; */
- const unsigned char *p;
-
- if (argc > 2) {
- printf("invalid args\n");
- return EXIT_FAILURE;
- }
- if (argc == 1) {
- l = "";
- } else {
- l = *++argv;
- }
-
- if (!(x = setlocale(LC_ALL,l))) {
- printf("couldn't set locale %s\n", l);
- return EXIT_FAILURE;
- }
-
-/* printf("\nsetlocale returned:\n "); */
-/* do { */
-/* printf("\\x%02x", *x); */
-/* } while (*x++); */
-/* printf("\n"); */
-
-#ifndef __BCC__
-#define STR(X) #X
-#else
-#define STR(X) __STR(X)
-#endif
-#define __PASTE2(A,B) A.B
-
-#define DO_NL_I(X) \
- printf( STR(X) " = %d\n", (int) nl_langinfo(X) );
-#define DO_NL_S(X) \
- printf( STR(X) " = \"%s\"\n", nl_langinfo(X) );
-#define DO_NL_C(X) \
- printf( STR(X) " = \"\\x%02x\"\n", *((unsigned char *) nl_langinfo(X)) );
-
- printf("ctype\n");
-
- DO_NL_S(CODESET);
-#ifdef DO_EXTRA
- DO_NL_I(_NL_CTYPE_INDIGITS_MB_LEN);
- DO_NL_S(_NL_CTYPE_INDIGITS0_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS1_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS2_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS3_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS4_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS5_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS6_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS7_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS8_MB);
- DO_NL_S(_NL_CTYPE_INDIGITS9_MB);
-#endif
- DO_NL_S(_NL_CTYPE_OUTDIGIT0_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT1_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT2_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT3_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT4_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT5_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT6_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT7_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT8_MB);
- DO_NL_S(_NL_CTYPE_OUTDIGIT9_MB);
-
-
- printf("numeric\n");
-
- DO_NL_S(RADIXCHAR); /* DECIMAL_POINT */
- DO_NL_S(THOUSEP); /* THOUSANDS_SEP */
-/* DO_NL_S(GROUPING); */
-
- printf("GROUPING = \"");
- for (p = (unsigned char *) nl_langinfo(GROUPING) ; *p ; p++) {
- printf("\\x%02x", *p);
- }
- printf("\"\n\n");
-
- printf("monetary\n");
-
- DO_NL_S(INT_CURR_SYMBOL);
- DO_NL_S(CURRENCY_SYMBOL);
- DO_NL_S(MON_DECIMAL_POINT);
- DO_NL_S(MON_THOUSANDS_SEP);
-/* DO_NL_S(MON_GROUPING); */
-
- printf("MON_GROUPING = \"");
- for (p = (unsigned char *) nl_langinfo(MON_GROUPING) ; *p ; p++) {
- printf("\\x%02x", *p);
- }
- printf("\"\n\n");
-
- DO_NL_S(POSITIVE_SIGN);
- DO_NL_S(NEGATIVE_SIGN);
- DO_NL_C(INT_FRAC_DIGITS);
- DO_NL_C(FRAC_DIGITS);
- DO_NL_C(P_CS_PRECEDES);
- DO_NL_C(P_SEP_BY_SPACE);
- DO_NL_C(N_CS_PRECEDES);
- DO_NL_C(N_SEP_BY_SPACE);
- DO_NL_C(P_SIGN_POSN);
- DO_NL_C(N_SIGN_POSN);
- DO_NL_C(INT_P_CS_PRECEDES);
- DO_NL_C(INT_P_SEP_BY_SPACE);
- DO_NL_C(INT_N_CS_PRECEDES);
- DO_NL_C(INT_N_SEP_BY_SPACE);
- DO_NL_C(INT_P_SIGN_POSN);
- DO_NL_C(INT_N_SIGN_POSN);
-
- DO_NL_S(CRNCYSTR); /* CURRENCY_SYMBOL */
-
-
- printf("time\n");
-
- DO_NL_S(ABDAY_1);
- DO_NL_S(ABDAY_2);
- DO_NL_S(ABDAY_3);
- DO_NL_S(ABDAY_4);
- DO_NL_S(ABDAY_5);
- DO_NL_S(ABDAY_6);
- DO_NL_S(ABDAY_7);
-
- DO_NL_S(DAY_1);
- DO_NL_S(DAY_2);
- DO_NL_S(DAY_3);
- DO_NL_S(DAY_4);
- DO_NL_S(DAY_5);
- DO_NL_S(DAY_6);
- DO_NL_S(DAY_7);
-
- DO_NL_S(ABMON_1);
- DO_NL_S(ABMON_2);
- DO_NL_S(ABMON_3);
- DO_NL_S(ABMON_4);
- DO_NL_S(ABMON_5);
- DO_NL_S(ABMON_6);
- DO_NL_S(ABMON_7);
- DO_NL_S(ABMON_8);
- DO_NL_S(ABMON_9);
- DO_NL_S(ABMON_10);
- DO_NL_S(ABMON_11);
- DO_NL_S(ABMON_12);
-
- DO_NL_S(MON_1);
- DO_NL_S(MON_2);
- DO_NL_S(MON_3);
- DO_NL_S(MON_4);
- DO_NL_S(MON_5);
- DO_NL_S(MON_6);
- DO_NL_S(MON_7);
- DO_NL_S(MON_8);
- DO_NL_S(MON_9);
- DO_NL_S(MON_10);
- DO_NL_S(MON_11);
- DO_NL_S(MON_12);
-
- DO_NL_S(AM_STR);
- DO_NL_S(PM_STR);
-
- DO_NL_S(D_T_FMT);
- DO_NL_S(D_FMT);
- DO_NL_S(T_FMT);
- DO_NL_S(T_FMT_AMPM);
-/* DO_NL_S(ERA); */
- {
- const char *p = nl_langinfo(ERA);
- if (!p || !*p) {
- printf("ERA = (none)\n");
- } else {
- int i;
- printf("ERA:\n");
- for (i=0 ; i < 100 ; i++) {
- printf(" %3d: \"%s\"\n", i, p);
- while (*p) ++p;
- ++p;
- if (!*p) break;
- }
- }
- }
-
- DO_NL_S(ERA_YEAR); /* non SuSv3 */
- DO_NL_S(ERA_D_FMT);
-/* DO_NL_S(ALT_DIGITS); */
- {
- const char *p = nl_langinfo(ALT_DIGITS);
- if (!p || !*p) {
- printf("ALT_DIGITS = (none)\n");
- } else {
- int i;
- printf("ALT_DIGITS:\n");
- for (i=0 ; i < 100 ; i++) {
- printf(" %3d: \"%s\"\n", i, p);
- while (*p) ++p;
- ++p;
- }
- }
- }
- DO_NL_S(ERA_D_T_FMT);
- DO_NL_S(ERA_T_FMT);
-
-#ifdef DO_EXTRA
- DO_NL_C(_NL_TIME_WEEK_NDAYS);
- DO_NL_I(_NL_TIME_WEEK_1STDAY); /* grr... this won't work with 16bit ptrs */
- DO_NL_C(_NL_TIME_WEEK_1STWEEK);
- DO_NL_C(_NL_TIME_FIRST_WEEKDAY);
- DO_NL_C(_NL_TIME_FIRST_WORKDAY);
- DO_NL_C(_NL_TIME_CAL_DIRECTION);
- DO_NL_S(_NL_TIME_TIMEZONE);
- DO_NL_S(_DATE_FMT);
-#endif
-
- printf("messages\n");
-
- DO_NL_S(YESEXPR);
- DO_NL_S(NOEXPR);
- DO_NL_S(YESSTR);
- DO_NL_S(NOSTR);
-
-#ifdef DO_EXTRA
-
- printf("paper\n");
-
- DO_NL_I(_NL_PAPER_HEIGHT);
- DO_NL_I(_NL_PAPER_WIDTH);
-
- printf("name\n");
-
- DO_NL_S(_NL_NAME_NAME_FMT);
- DO_NL_S(_NL_NAME_NAME_GEN);
- DO_NL_S(_NL_NAME_NAME_MR);
- DO_NL_S(_NL_NAME_NAME_MRS);
- DO_NL_S(_NL_NAME_NAME_MISS);
- DO_NL_S(_NL_NAME_NAME_MS);
-
- printf("address\n");
-
- DO_NL_S(_NL_ADDRESS_POSTAL_FMT);
- DO_NL_S(_NL_ADDRESS_COUNTRY_NAME);
- DO_NL_S(_NL_ADDRESS_COUNTRY_POST);
- DO_NL_S(_NL_ADDRESS_COUNTRY_AB2);
- DO_NL_S(_NL_ADDRESS_COUNTRY_AB3);
- DO_NL_S(_NL_ADDRESS_COUNTRY_CAR);
- DO_NL_I(_NL_ADDRESS_COUNTRY_NUM);
- DO_NL_S(_NL_ADDRESS_COUNTRY_ISBN);
- DO_NL_S(_NL_ADDRESS_LANG_NAME);
- DO_NL_S(_NL_ADDRESS_LANG_AB);
- DO_NL_S(_NL_ADDRESS_LANG_TERM);
- DO_NL_S(_NL_ADDRESS_LANG_LIB);
-
- printf("telephone\n");
-
- DO_NL_S(_NL_TELEPHONE_TEL_INT_FMT);
- DO_NL_S(_NL_TELEPHONE_TEL_DOM_FMT);
- DO_NL_S(_NL_TELEPHONE_INT_SELECT);
- DO_NL_S(_NL_TELEPHONE_INT_PREFIX);
-
- printf("measurement\n");
-
- DO_NL_C(_NL_MEASUREMENT_MEASUREMENT); /* 1 is metric, 2 is US */
-
- printf("identification\n");
-
- DO_NL_S(_NL_IDENTIFICATION_TITLE);
- DO_NL_S(_NL_IDENTIFICATION_SOURCE);
- DO_NL_S(_NL_IDENTIFICATION_ADDRESS);
- DO_NL_S(_NL_IDENTIFICATION_CONTACT);
- DO_NL_S(_NL_IDENTIFICATION_EMAIL);
- DO_NL_S(_NL_IDENTIFICATION_TEL);
- DO_NL_S(_NL_IDENTIFICATION_FAX);
- DO_NL_S(_NL_IDENTIFICATION_LANGUAGE);
- DO_NL_S(_NL_IDENTIFICATION_TERRITORY);
- DO_NL_S(_NL_IDENTIFICATION_AUDIENCE);
- DO_NL_S(_NL_IDENTIFICATION_APPLICATION);
- DO_NL_S(_NL_IDENTIFICATION_ABBREVIATION);
- DO_NL_S(_NL_IDENTIFICATION_REVISION);
- DO_NL_S(_NL_IDENTIFICATION_DATE);
- DO_NL_S(_NL_IDENTIFICATION_CATEGORY);
-
-#endif
-
- return EXIT_SUCCESS;
-}
diff --git a/test/locale/xfrm-test.c b/test/locale/xfrm-test.c
deleted file mode 100644
index 1ab0874..0000000
--- a/test/locale/xfrm-test.c
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Test collation function via transformation using real data.
- Copyright (C) 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)cygnus.com>, 1997.
-
- 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/>. */
-
-#include <ctype.h>
-#include <error.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-struct lines
-{
- char *xfrm;
- char *line;
-};
-
-static int xstrcmp (const void *, const void *);
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- size_t nstrings, nstrings_max;
- struct lines *strings;
- char *line = NULL;
- size_t len = 0;
- size_t n;
-
- if (argc < 2)
- error (1, 0, "usage: %s <random seed>", argv[0]);
-
- setlocale (LC_ALL, "");
-
- nstrings_max = 100;
- nstrings = 0;
- strings = (struct lines *) malloc (nstrings_max * sizeof (struct lines));
- if (strings == NULL)
- {
- perror (argv[0]);
- exit (1);
- }
-
- while (1)
- {
- char saved, *newp;
- int needed;
- int l;
- if (getline (&line, &len, stdin) < 0)
- break;
-
- if (nstrings == nstrings_max)
- {
- strings = (struct lines *) realloc (strings,
- (nstrings_max *= 2)
- * sizeof (*strings));
- if (strings == NULL)
- {
- perror (argv[0]);
- exit (1);
- }
- }
- strings[nstrings].line = strdup (line);
- l = strcspn (line, ":(;");
- while (l > 0 && isspace (line[l - 1]))
- --l;
-
- saved = line[l];
- line[l] = '\0';
- needed = strxfrm (NULL, line, 0);
- newp = malloc (needed + 1);
- strxfrm (newp, line, needed + 1);
- strings[nstrings].xfrm = newp;
- line[l] = saved;
- ++nstrings;
- }
- free (line);
-
- /* First shuffle. */
- srandom (atoi (argv[1]));
- for (n = 0; n < 10 * nstrings; ++n)
- {
- int r1, r2, r;
- size_t idx1 = random () % nstrings;
- size_t idx2 = random () % nstrings;
- struct lines tmp = strings[idx1];
- strings[idx1] = strings[idx2];
- strings[idx2] = tmp;
-
- /* While we are at it a first little test. */
- r1 = strcmp (strings[idx1].xfrm, strings[idx2].xfrm);
- r2 = strcmp (strings[idx2].xfrm, strings[idx1].xfrm);
- r = -(r1 ^ r2);
- if (r)
- r /= abs (r1 ^ r2);
-
- if (r < 0 || (r == 0 && (r1 != 0 || r2 != 0))
- || (r > 0 && (r1 ^ r2) >= 0))
- printf ("collate wrong: %d vs. %d\n", r1, r2);
- }
-
- /* Now sort. */
- qsort (strings, nstrings, sizeof (struct lines), xstrcmp);
-
- /* Print the result. */
- for (n = 0; n < nstrings; ++n)
- {
- fputs (strings[n].line, stdout);
- free (strings[n].line);
- free (strings[n].xfrm);
- }
- free (strings);
-
- return result;
-}
-
-
-static int
-xstrcmp (ptr1, ptr2)
- const void *ptr1;
- const void *ptr2;
-{
- const struct lines *l1 = (const struct lines *) ptr1;
- const struct lines *l2 = (const struct lines *) ptr2;
-
- return strcmp (l1->xfrm, l2->xfrm);
-}
diff --git a/test/malloc/Makefile b/test/malloc/Makefile
deleted file mode 100644
index 97c424b..0000000
--- a/test/malloc/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc malloc tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/malloc/Makefile.in b/test/malloc/Makefile.in
deleted file mode 100644
index 875a849..0000000
--- a/test/malloc/Makefile.in
+++ /dev/null
@@ -1,16 +0,0 @@
-# uClibc malloc tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-TESTS_DISABLED := time_malloc
-
-ifneq ($(UCLIBC_SUSV2_LEGACY),y)
-TESTS_DISABLED += tst-valloc
-endif
-
-ifneq ($(UCLIBC_HAS_OBSTACK),y)
-TESTS_DISABLED += tst-obstack
-endif
-
-ifneq ($(MALLOC_STANDARD),y)
-TESTS_DISABLED += tst-asprintf
-endif
diff --git a/test/malloc/malloc-standard-alignment.c b/test/malloc/malloc-standard-alignment.c
deleted file mode 100644
index 71e5023..0000000
--- a/test/malloc/malloc-standard-alignment.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* exercise a bug found in malloc-standard when alignment
- * values are out of whack and cause a small overflow into
- * actual user data.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-
-#define ok(p) ((void*)p > (void*)0x1000)
-#define x \
- do { \
- printf("%i: phead = %p, phead->link @ %p = %p %s\n", \
- __LINE__, phead, \
- ok(phead) ? &phead->link : 0, \
- ok(phead) ? phead->link : 0, \
- ok(phead) ? phead->link == 0 ? "" : "!!!!!!!!!!!" : ""); \
- if (phead->link != NULL) exit(1); \
- } while (0);
-
-struct llist_s {
- void *data;
- struct llist_s *link;
-} *phead;
-
-int main(int argc, char *argv[])
-{
- char *line, *reg;
-
- setbuf(stdout, NULL);
- setbuf(stderr, NULL);
-
- phead = malloc(sizeof(*phead));
- phead->link = NULL;
-
-x line = malloc(80);
-x line = realloc(line, 2);
-x reg = malloc(32);
-x free(line);
-
-x return 0;
-}
diff --git a/test/malloc/malloc.c b/test/malloc/malloc.c
deleted file mode 100644
index ca7c5f9..0000000
--- a/test/malloc/malloc.c
+++ /dev/null
@@ -1,81 +0,0 @@
-
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-
-#define N_PTRS 1000
-#define N_ALLOCS 10000
-#define MAX_SIZE 0x10000
-
-#define random_size() (random()%MAX_SIZE)
-#define random_ptr() (random()%N_PTRS)
-
-int test1(void);
-int test2(void);
-
-int main(int argc, char *argv[])
-{
- return test1() + test2();
-}
-
-int test1(void)
-{
- void **ptrs;
- int i,j;
- int size;
- int ret = 0;
-
- srandom(0x19730929);
-
- ptrs = malloc(N_PTRS*sizeof(void *));
-
- for(i=0; i<N_PTRS; i++){
- if ((ptrs[i] = malloc(random_size())) == NULL) {
- printf("malloc random failed! %i\n", i);
- ++ret;
- }
- }
- for(i=0; i<N_ALLOCS; i++){
- j = random_ptr();
- free(ptrs[j]);
-
- size = random_size();
- ptrs[j] = malloc(size);
- if (!ptrs[j]) {
- printf("malloc failed! %d\n", i);
- ++ret;
- }
- memset(ptrs[j],0,size);
- }
- for(i=0; i<N_PTRS; i++){
- free(ptrs[i]);
- }
-
- return ret;
-}
-
-int test2(void)
-{
- void *ptr = NULL;
- int ret = 0;
-
- ptr = realloc(ptr,100);
- if (!ptr) {
- printf("couldn't realloc() a NULL pointer\n");
- ++ret;
- } else {
- free(ptr);
- }
-
- ptr = malloc(100);
- ptr = realloc(ptr, 0);
- if (ptr) {
- printf("realloc(,0) failed\n");
- ++ret;
- free(ptr);
- }
-
- return ret;
-}
-
diff --git a/test/malloc/mallocbug.c b/test/malloc/mallocbug.c
deleted file mode 100644
index 84a6387..0000000
--- a/test/malloc/mallocbug.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Reproduce a GNU malloc bug. */
-#include <malloc.h>
-#include <stdio.h>
-#include <string.h>
-
-#define size_t unsigned int
-
-int
-main (int argc, char *argv[])
-{
- char *dummy0;
- char *dummy1;
- char *fill_info_table1;
- char *over_top;
- size_t over_top_size = 0x3000;
- char *over_top_dup;
- size_t over_top_dup_size = 0x7000;
- char *x;
- size_t i;
-
- /* Here's what memory is supposed to look like (hex):
- size contents
- 3000 original_info_table, later fill_info_table1
- 3fa000 dummy0
- 3fa000 dummy1
- 6000 info_table_2
- 3000 over_top
-
- */
- /* mem: original_info_table */
- dummy0 = malloc (0x3fa000);
- /* mem: original_info_table, dummy0 */
- dummy1 = malloc (0x3fa000);
- /* mem: free, dummy0, dummy1, info_table_2 */
- fill_info_table1 = malloc (0x3000);
- /* mem: fill_info_table1, dummy0, dummy1, info_table_2 */
-
- x = malloc (0x1000);
- free (x);
- /* mem: fill_info_table1, dummy0, dummy1, info_table_2, freexx */
-
- /* This is what loses; info_table_2 and freexx get combined unbeknownst
- to mmalloc, and mmalloc puts over_top in a section of memory which
- is on the free list as part of another block (where info_table_2 had
- been). */
- over_top = malloc (over_top_size);
- over_top_dup = malloc (over_top_dup_size);
- memset (over_top, 0, over_top_size);
- memset (over_top_dup, 1, over_top_dup_size);
-
- for (i = 0; i < over_top_size; ++i)
- if (over_top[i] != 0)
- {
- printf ("FAIL: malloc expands info table\n");
- return 0;
- }
-
- for (i = 0; i < over_top_dup_size; ++i)
- if (over_top_dup[i] != 1)
- {
- printf ("FAIL: malloc expands info table\n");
- return 0;
- }
-
- printf ("PASS: malloc expands info table\n");
- return 0;
-}
diff --git a/test/malloc/realloc-can-shrink.c b/test/malloc/realloc-can-shrink.c
deleted file mode 100644
index 33249db..0000000
--- a/test/malloc/realloc-can-shrink.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* make sure that realloc() can properly shrink buffers */
-
-#include <stdlib.h>
-
-#define LARGE_BUFFER (1 << 20) /* idea is to span a lot of pages */
-
-int main(int argc, char *argv[])
-{
- int count = 20;
- char *ptr = NULL;
- while (count--) {
- ptr = realloc(ptr, LARGE_BUFFER);
- ptr = realloc(ptr, 1);
- }
- free(ptr);
- return 0;
-}
diff --git a/test/malloc/realloc0.c b/test/malloc/realloc0.c
deleted file mode 100644
index 62ae39d..0000000
--- a/test/malloc/realloc0.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-
-int main(int argc, char **argv)
-{
- void *ptr = NULL;
- ptr = realloc(ptr, 0);
- printf("realloc(NULL, 0) -- pointer = %p\n", ptr);
-
- ptr = malloc(0);
- printf("malloc(0) -- pointer = %p\n", ptr);
- return 0;
-}
diff --git a/test/malloc/testmalloc.c b/test/malloc/testmalloc.c
deleted file mode 100644
index 42707d2..0000000
--- a/test/malloc/testmalloc.c
+++ /dev/null
@@ -1,101 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-struct list {
- struct list *next;
-};
-
-int main(void)
-{
- int z=999;
- int *y=&z;
- int *x=NULL;
- struct list *save;
- struct list *lp;
- int i;
-
-
- printf("pointer to x is %p\n", x);
- printf("pointer to y is %p\n", y);
- x=malloc(sizeof(int)*2000);
- printf("pointer to x is %p\n", x);
- y=malloc(sizeof(int)*100);
- printf("pointer to y is %p\n", y);
- free(x);
- free(y);
- printf("about to free(0)\n");
- free(0);
-
- x=malloc(13);
- printf("x = %p\n", x);
- memcpy(x, "Small string", 13);
- printf("0x%p test string1: %s\n", x, (char *)x);
- y = realloc(x, 36);
- printf("0x%p test string1: %s\n", y, (char *)y);
- memcpy(y, "********** Larger string **********", 36);
- printf("0x%p test string2: %s\n", y, (char *)y);
- free(y);
-
-
- printf("Allocate 100 nodes 500 bytes each\n");
- save = 0;
- for (i=0; i<100; i++) {
- lp = malloc(500);
- if (lp == 0) {
- printf("loop 1: malloc returned 0\n");
- goto Failed;
- }
- lp->next = save;
- save = lp;
- }
-
- printf("freeing 100 nodes\n");
- while (save) {
- lp = save;
- save = save->next;
- free(lp);
- }
-
- printf("try realloc 100 times \n");
- lp = 0;
- for (i=1; i<=100; i++) {
- lp = realloc(lp, i*200);
- if (lp == 0) {
- printf("loop 3: realloc returned 0\n");
- goto Failed;
- }
- }
- {
- void *unused_ret = realloc(lp, 0);
- (void) unused_ret;
- }
-
- printf("Allocate another 100 nodes 600 bytes each\n");
- save = 0;
- for (i=0; i<100; i++) {
- lp = malloc(600);
- if (lp == 0) {
- printf("loop 2: malloc returned 0\n");
- goto Failed;
- }
- lp->next = save;
- save = lp;
- }
-
- printf("freeing 100 nodes\n");
- while (save) {
- lp = save;
- save = save->next;
- free(lp);
- }
-
-
- printf("alloc test PASSED\n");
- exit(0);
-
-Failed:
- printf("!!!!!!!!!!!! alloc test FAILED. !!!!!!!!!!!!!!!\n");
- exit(1);
-}
diff --git a/test/malloc/time_malloc.c b/test/malloc/time_malloc.c
deleted file mode 100644
index 0b62665..0000000
--- a/test/malloc/time_malloc.c
+++ /dev/null
@@ -1,62 +0,0 @@
-#include <stdlib.h>
-#define REPS (100000)
-int sizes[] = {
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
- 100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50
-};
-#define NUM (sizeof sizes / sizeof sizes[0])
-int main ()
-{
- int i, j;
- void *allocs[NUM];
- for (i = 0; i < REPS; i++) {
- for (j = 0; j < NUM; j++) {
- allocs[j] = malloc(sizes[j]);
- }
- for (j = 0; j < NUM; j++) {
- free(allocs[j]);
- }
- }
- return 0;
-}
-
diff --git a/test/malloc/tst-asprintf.c b/test/malloc/tst-asprintf.c
deleted file mode 100644
index d4c3f76..0000000
--- a/test/malloc/tst-asprintf.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <malloc.h>
-
-static void my_stats(void)
-{
- malloc_stats();
- fprintf(stderr, "\n");
-}
-
-int main(int argc, char *argv[])
-{
- char *a, *b;
-
- my_stats();
- asprintf(&b, "asdsadasd %ssdf\n", "AAAA");
- my_stats();
- asprintf(&a, "asdsadasd %ssdf\n", "AAAA");
- my_stats();
- free(a);
- free(b);
- my_stats();
-
- return 0;
-}
diff --git a/test/malloc/tst-calloc.c b/test/malloc/tst-calloc.c
deleted file mode 100644
index b7b6d2b..0000000
--- a/test/malloc/tst-calloc.c
+++ /dev/null
@@ -1,127 +0,0 @@
-/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper(a)redhat.com>.
-
- 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/>. */
-
-#include <errno.h>
-#include <limits.h>
-#include <malloc.h>
-#include <stdlib.h>
-#include <stdio.h>
-
-static int errors = 0;
-
-/* Number of samples per size. */
-#define N 50000
-
-
-static void
-fixed_test (int size)
-{
- char *ptrs[N];
- int i;
-
- for (i = 0; i < N; ++i)
- {
- int j;
-
- ptrs[i] = (char *) calloc (1, size);
-
- if (ptrs[i] == NULL)
- break;
-
- for (j = 0; j < size; ++j)
- {
- if (ptrs[i][j] != '\0') {
- ++errors;
- printf("byte not cleared (size %d, element %d, byte %d)",
- size, i, j);
- }
- ptrs[i][j] = '\xff';
- }
- }
-
- while (i-- > 0)
- free (ptrs[i]);
-}
-
-
-static void
-random_test (void)
-{
- char *ptrs[N];
- int i;
-
- for (i = 0; i < N; ++i)
- {
- int j;
- int n = 1 + random () % 10;
- int elem = 1 + random () % 100;
- int size = n * elem;
-
- ptrs[i] = (char *) calloc (n, elem);
-
- if (ptrs[i] == NULL)
- break;
-
- for (j = 0; j < size; ++j)
- {
- if (ptrs[i][j] != '\0') {
- ++errors;
- printf("byte not cleared (size %d, element %d, byte %d)",
- size, i, j);
- }
- ptrs[i][j] = '\xff';
- }
- }
-
- while (i-- > 0)
- free (ptrs[i]);
-}
-
-
-static void
-null_test (void)
-{
- /* If the size is 0 the result is implementation defined. Just make
- sure the program doesn't crash. */
- calloc (0, 0);
- calloc (0, UINT_MAX);
- calloc (UINT_MAX, 0);
- calloc (0, ~((size_t) 0));
- calloc (~((size_t) 0), 0);
-}
-
-
-int
-main (void)
-{
- /* We are allocating blocks with `calloc' and check whether every
- block is completely cleared. We first try this for some fixed
- times and then with random size. */
- fixed_test (15);
- fixed_test (5);
- fixed_test (17);
- fixed_test (6);
- fixed_test (31);
- fixed_test (96);
-
- random_test ();
-
- null_test ();
-
- return errors != 0;
-}
diff --git a/test/malloc/tst-malloc.c b/test/malloc/tst-malloc.c
deleted file mode 100644
index 2d3bcce..0000000
--- a/test/malloc/tst-malloc.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Andreas Jaeger <aj(a)arthur.rhein-neckar.de>, 1999.
-
- 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/>. */
-
-#include <errno.h>
-#include <malloc.h>
-#include <stdio.h>
-#include <features.h>
-
-static int errors = 0;
-
-static void
-merror (const char *msg)
-{
- ++errors;
- printf ("Error: %s\n", msg);
-}
-
-int
-main (void)
-{
- void *p;
- int save;
-
- errno = 0;
-
- p = malloc (-1);
- save = errno;
-
- if (p != NULL)
- merror ("malloc (-1) succeeded.");
-
- if (p == NULL && save != ENOMEM)
- merror ("errno is not set correctly");
-
- p = malloc (10);
- if (p == NULL)
- merror ("malloc (10) failed.");
-
- /* realloc (p, 0) == free (p). */
- p = realloc (p, 0);
- if (p != NULL)
- merror ("realloc (p, 0) failed.");
-
- p = malloc (0);
-#if !defined(__UCLIBC__) || defined(__MALLOC_GLIBC_COMPAT__)
- if (p == NULL)
-#else
- if (p != NULL)
-#endif
- merror ("malloc (0) failed.");
-
- p = realloc (p, 0);
- if (p != NULL)
- merror ("realloc (p, 0) failed.");
-
- return errors != 0;
-}
diff --git a/test/malloc/tst-mallocfork.c b/test/malloc/tst-mallocfork.c
deleted file mode 100644
index 5bb1d76..0000000
--- a/test/malloc/tst-mallocfork.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Derived from the test case in
- http://sourceware.org/bugzilla/show_bug.cgi?id=838. */
-#include <assert.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-
-static void
-sig_handler (int signum)
-{
- pid_t child = vfork ();
- if (child == 0)
- exit (0);
- TEMP_FAILURE_RETRY (waitpid (child, NULL, 0));
-}
-
-static int
-do_test (void)
-{
- pid_t parent = getpid ();
-
- struct sigaction action = { .sa_handler = sig_handler };
- sigemptyset (&action.sa_mask);
-
- malloc (sizeof (int));
-
- if (sigaction (SIGALRM, &action, NULL) != 0)
- {
- puts ("sigaction failed");
- return 1;
- }
-
- /* Create a child that sends the signal to be caught. */
- pid_t child = vfork ();
- if (child == 0)
- {
- if (kill (parent, SIGALRM) == -1)
- perror ("kill");
- exit (0);
- }
-
- TEMP_FAILURE_RETRY (waitpid (child, NULL, 0));
-
- return 0;
-}
-
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
diff --git a/test/malloc/tst-mcheck.c b/test/malloc/tst-mcheck.c
deleted file mode 100644
index 9297d79..0000000
--- a/test/malloc/tst-mcheck.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Copyright (C) 2005 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Jakub Jelinek <jakub(a)redhat.com>, 2005.
-
- 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/>. */
-
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <features.h>
-
-static int errors = 0;
-
-static void
-merror (const char *msg)
-{
- ++errors;
- printf ("Error: %s\n", msg);
-}
-
-int
-main (void)
-{
- void *p, *q;
-
- errno = 0;
-
- p = malloc (-1);
-
- if (p != NULL)
- merror ("malloc (-1) succeeded.");
- else if (errno != ENOMEM)
- merror ("errno is not set correctly.");
-
- p = malloc (10);
- if (p == NULL)
- merror ("malloc (10) failed.");
-
- p = realloc (p, 0);
- if (p != NULL)
- merror ("realloc (p, 0) failed.");
-
- p = malloc (0);
-#if !defined(__UCLIBC__) || defined(__MALLOC_GLIBC_COMPAT__)
- if (p == NULL)
-#else
- if (p != NULL)
-#endif
- merror ("malloc (0) failed.");
-
- p = realloc (p, 0);
- if (p != NULL)
- merror ("realloc (p, 0) failed.");
-
- q = malloc (256);
- if (q == NULL)
- merror ("malloc (256) failed.");
-
- p = malloc (512);
- if (p == NULL)
- merror ("malloc (512) failed.");
-
- if (realloc (p, -256) != NULL)
- merror ("realloc (p, -256) succeeded.");
- else if (errno != ENOMEM)
- merror ("errno is not set correctly.");
-
- free (p);
-
- p = malloc (512);
- if (p == NULL)
- merror ("malloc (512) failed.");
-
- if (realloc (p, -1) != NULL)
- merror ("realloc (p, -1) succeeded.");
- else if (errno != ENOMEM)
- merror ("errno is not set correctly.");
-
- free (p);
- free (q);
-
- return errors != 0;
-}
diff --git a/test/malloc/tst-obstack.c b/test/malloc/tst-obstack.c
deleted file mode 100644
index 1841946..0000000
--- a/test/malloc/tst-obstack.c
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Test case by Alexandre Duret-Lutz <duret_g(a)epita.fr>.
- * test_obstack_printf() added by Anthony G. Basile <blueness.gentoo.org>.
- */
-
-#include <features.h>
-#include <obstack.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#define obstack_chunk_alloc verbose_malloc
-#define obstack_chunk_free verbose_free
-#define ALIGN_BOUNDARY 64
-#define ALIGN_MASK (ALIGN_BOUNDARY - 1)
-#define OBJECT_SIZE 1000
-
-static void *
-verbose_malloc (size_t size)
-{
- void *buf = malloc (size);
- printf ("malloc (%zu) => %p\n", size, buf);
- return buf;
-}
-
-static void
-verbose_free (void *buf)
-{
- free (buf);
- printf ("free (%p)\n", buf);
-}
-
-int
-test_obstack_alloc (void)
-{
- int result = 0;
- int align = 2;
-
- while (align <= 64)
- {
- struct obstack obs;
- int i;
- int align_mask = align - 1;
-
- printf ("\n Alignment mask: %d\n", align_mask);
-
- obstack_init (&obs);
- obstack_alignment_mask (&obs) = align_mask;
- /* finish an empty object to take alignment into account */
- obstack_finish (&obs);
-
- /* let's allocate some objects and print their addresses */
- for (i = 15; i > 0; --i)
- {
- void *obj = obstack_alloc (&obs, OBJECT_SIZE);
-
- printf ("obstack_alloc (%u) => %p \t%s\n", OBJECT_SIZE, obj,
- ((uintptr_t) obj & align_mask) ? "(not aligned)" : "");
- result |= ((uintptr_t) obj & align_mask) != 0;
- }
-
- /* clean up */
- obstack_free (&obs, 0);
-
- align <<= 1;
- }
-
- return result;
-}
-
-int
-test_obstack_printf (void)
-{
- int result = 0;
- int n;
- char *s;
- struct obstack ob;
-
- obstack_init (&ob);
-
- n = obstack_printf (&ob, "%s%d%c", "testing 1 ... 2 ... ", 3, '\n');
- result |= (n != 22);
- printf("obstack_printf => %d\n", n);
-
- n = obstack_printf (&ob, "%s%d%c", "testing 3 ... 2 ... ", 1, '\0');
- result |= (n != 22);
- printf("obstack_printf => %d\n", n);
-
- s = obstack_finish (&ob);
- printf("obstack_printf => %s\n", s);
- obstack_free (&ob, NULL);
-
- return result;
-}
-
-int
-main (void)
-{
- int result = 0;
-
- result |= test_obstack_alloc();
- result |= test_obstack_printf();
-
- return result;
-}
diff --git a/test/malloc/tst-valloc.c b/test/malloc/tst-valloc.c
deleted file mode 100644
index 643a0dd..0000000
--- a/test/malloc/tst-valloc.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Test case by Stephen Tweedie <sct(a)redhat.com>. */
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main (void)
-{
- char *p;
- int pagesize = getpagesize ();
- int i;
-
- p = valloc (pagesize);
- i = (long int) p;
-
- if ((i & (pagesize-1)) != 0)
- {
- fprintf (stderr, "Alignment problem: valloc returns %p\n", p);
- exit (1);
- }
-
- return 0;
-}
diff --git a/test/math/Makefile b/test/math/Makefile
deleted file mode 100644
index 6194efa..0000000
--- a/test/math/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# uClibc math tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-top_builddir=../../
-top_srcdir=../../
-include ../Rules.mak
--include Makefile.in
-include ../Test.mak
diff --git a/test/math/Makefile.in b/test/math/Makefile.in
deleted file mode 100644
index 3874001..0000000
--- a/test/math/Makefile.in
+++ /dev/null
@@ -1,46 +0,0 @@
-# uClibc math tests
-# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-
-# libm-test.c is a generated file used by the tests internally so skip it
-TESTS_DISABLED := libm-test
-
-# gamma (removed from TESTS, need to add "small errors are ok" machinery there)
-TESTS_DISABLED += gamma
-ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),)
-TESTS_DISABLED += test-ldouble test-ildoubl compile_test c99_test
-CFLAGS_basic-test := -DNO_LONG_DOUBLE
-endif
-ifeq ($(DO_C99_MATH),)
-TESTS_DISABLED += test-float test-ifloat test-double test-idouble rint signgam ilogb
-endif
-ifeq ($(UCLIBC_HAS_FPU),)
-TESTS_DISABLED += test-fpucw
-endif
-
-DODIFF_rint := 1
-DODIFF_signgam := 1
-
-# NOTE: For basic-test we must disable the floating point optimization.
-# Only for sh architecture because in the other architecture are disabled.
-ifeq ($(TARGET_ARCH),sh)
-CFLAGS_basic-test += -mieee
-endif
-EXTRA_CFLAGS := -fno-builtin
-EXTRA_LDFLAGS := -lm
-
-PERL := perl
-
-MDEPS := $(wildcard test-*.c)
-$(MDEPS): libm-test.c
-
-ULP_SUFFIX :=
-ifeq ($(TARGET_ARCH),mips)
-ULP_SUFFIX:=$(if $(CONFIG_MIPS_N64_ABI),64,32)
-endif
-
-TARGET_ULP := $(if $(wildcard libm-test-ulps-$(TARGET_ARCH)$(ULP_SUFFIX)),$(TARGET_ARCH)$(ULP_SUFFIX),generic)
-
-libm-test.c: libm-test-ulps-$(TARGET_ULP) libm-test.inc gen-libm-test.pl
- $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ULP) ./libm-test.inc -o "." 2>&1 > /dev/null
-
-EXTRA_CLEAN := libm-test.c libm-test-ulps.h
diff --git a/test/math/basic-test.c b/test/math/basic-test.c
deleted file mode 100644
index d073abb..0000000
--- a/test/math/basic-test.c
+++ /dev/null
@@ -1,161 +0,0 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
- Contributed by Andreas Jaeger <aj(a)suse.de>, 1999.
-
- 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 _ISOC99_SOURCE
-
-#include <math.h>
-#include <float.h>
-#include <stdio.h>
-
-static int errors = 0;
-
-
-static void
-check (const char *testname, int result)
-{
- if (!result) {
- printf ("Failure: %s\n", testname);
- errors++;
- }
-}
-
-#define TEST_FUNC(NAME, FLOAT, NANFUNC, EPSILON, HUGEVAL) \
-static void \
-NAME (void) \
-{ \
- /* Variables are declared volatile to forbid some compiler \
- optimizations. */ \
- volatile FLOAT Inf_var, NaN_var, zero_var, one_var; \
- FLOAT x1, x2; \
- \
- zero_var = 0.0; \
- one_var = 1.0; \
- NaN_var = zero_var/zero_var; \
- Inf_var = one_var / zero_var; \
- \
- (void) &zero_var; \
- (void) &one_var; \
- (void) &NaN_var; \
- (void) &Inf_var; \
- \
- \
- check (#FLOAT " isinf (inf) == 1", isinf (Inf_var) == 1); \
- check (#FLOAT " isinf (-inf) == -1", isinf (-Inf_var) == -1); \
- check (#FLOAT " !isinf (1)", !(isinf (one_var))); \
- check (#FLOAT " !isinf (NaN)", !(isinf (NaN_var))); \
- \
- check (#FLOAT " isnan (NaN)", isnan (NaN_var)); \
- check (#FLOAT " isnan (-NaN)", isnan (-NaN_var)); \
- check (#FLOAT " !isnan (1)", !(isnan (one_var))); \
- check (#FLOAT " !isnan (inf)", !(isnan (Inf_var))); \
- \
- /* \
- the same tests but this time with NAN from <bits/nan.h> \
- NAN is a double const \
- */ \
- check (#FLOAT " isnan (NAN)", isnan (NAN)); \
- check (#FLOAT " isnan (-NAN)", isnan (-NAN)); \
- check (#FLOAT " !isinf (NAN)", !(isinf (NAN))); \
- check (#FLOAT " !isinf (-NAN)", !(isinf (-NAN))); \
- \
- /* \
- And again with the value returned by the `nan' function. \
- */ \
- check (#FLOAT " isnan (NAN)", isnan (NANFUNC (""))); \
- check (#FLOAT " isnan (-NAN)", isnan (-NANFUNC (""))); \
- check (#FLOAT " !isinf (NAN)", !(isinf (NANFUNC ("")))); \
- check (#FLOAT " !isinf (-NAN)", !(isinf (-NANFUNC ("")))); \
- check (#FLOAT " NAN != NAN", NANFUNC ("") != NANFUNC ("")); \
- \
- /* test if HUGE_VALx is ok */ \
- x1 = HUGEVAL; \
- check (#FLOAT " isinf (HUGE_VALx) == +1", isinf (x1) == +1); \
- x1 = - HUGEVAL; \
- check (#FLOAT " isinf (-HUGE_VALx) == -1", isinf (x1) == -1); \
-}
-#ifndef DO_C99_MATH
-# undef TEST_FUNC
-# define TEST_FUNC(NAME, FLOAT, NANFUNC, EPSILON, HUGEVAL) \
-static void \
-NAME(void) \
-{ /* nothing */ }
-#endif
-
-#define TEST_VAL(NAME, FLOAT, NANFUNC, EPSILON, HUGEVAL) \
-static void \
-NAME (void) \
-{ \
- /* Variables are declared volatile to forbid some compiler \
- optimizations. */ \
- volatile FLOAT Inf_var, NaN_var, zero_var, one_var; \
- FLOAT x1, x2; \
- \
- zero_var = 0.0; \
- one_var = 1.0; \
- NaN_var = zero_var/zero_var; \
- Inf_var = one_var / zero_var; \
- \
- (void) &zero_var; \
- (void) &one_var; \
- (void) &NaN_var; \
- (void) &Inf_var; \
- \
- \
- check (#FLOAT " inf == inf", Inf_var == Inf_var); \
- check (#FLOAT " -inf == -inf", -Inf_var == -Inf_var); \
- check (#FLOAT " inf != -inf", Inf_var != -Inf_var); \
- check (#FLOAT " NaN != NaN", NaN_var != NaN_var); \
- \
- check (#FLOAT " NAN != NAN", NAN != NAN); \
- \
- \
- /* test if EPSILON is ok */ \
- x1 = 1.0; \
- x2 = x1 + EPSILON; \
- check (#FLOAT " 1 != 1+EPSILON", x1 != x2); \
- \
- x1 = 1.0; \
- x2 = x1 - EPSILON; \
- check (#FLOAT " 1 != 1-EPSILON", x1 != x2); \
- \
-}
-
-TEST_VAL (float_test_value, float, nanf, FLT_EPSILON, HUGE_VALF)
-TEST_FUNC (float_test_call, float, nanf, FLT_EPSILON, HUGE_VALF)
-TEST_VAL (double_test_value, double, nan, DBL_EPSILON, HUGE_VAL)
-TEST_FUNC (double_test_call, double, nan, DBL_EPSILON, HUGE_VAL)
-#ifndef NO_LONG_DOUBLE
-TEST_VAL (ldouble_test_value, long double, nanl, LDBL_EPSILON, HUGE_VALL)
-TEST_FUNC (ldouble_test_call, long double, nanl, LDBL_EPSILON, HUGE_VALL)
-#endif
-
-int
-main (void)
-{
- float_test_value ();
- float_test_call ();
- double_test_value ();
- double_test_call ();
-
-#ifndef NO_LONG_DOUBLE
- ldouble_test_value ();
- ldouble_test_call ();
-#endif
-
- return errors != 0;
-}
diff --git a/test/math/c99_test.c b/test/math/c99_test.c
deleted file mode 100644
index 73382e4..0000000
--- a/test/math/c99_test.c
+++ /dev/null
@@ -1,116 +0,0 @@
-#include <math.h>
-#include <float.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <limits.h>
-#include <stdio.h>
-
-#define check_d1(func, param, expected) \
-do { \
- int err; hex_union ur; hex_union up; \
- double result = func(param); up.f = param; ur.f = result; \
- errors += (err = (result != (expected))); \
- err \
- ? printf("FAIL: %s(%g/"HEXFMT")=%g/"HEXFMT" (expected %g)\n", \
- #func, (double)(param), (long long)up.hex, result, (long long)ur.hex, (double)(expected)) \
- : printf("PASS: %s(%g)=%g\n", #func, (double)(param), result); \
-} while (0)
-
-#define check_i1(func, param, expected) \
-do { \
- int err; hex_union up; \
- long long result = func(param); up.f = param; \
- errors += (err = (result != (expected))); \
- err \
- ? printf("FAIL: %s(%g/"HEXFMT")=%lld/%llu (expected %llu)\n", \
- #func, (double)(param), (long long)up.hex, result, result, (long long)(expected)) \
- : printf("PASS: %s(%g)=%lld/%llu\n", #func, (double)(param), result, result); \
-} while (0)
-
-#define HEXFMT "%08llx"
-typedef union {
- double f;
- uint64_t hex;
-} hex_union;
-
-double zero = 0.0;
-double minus_zero = 0.0;
-double nan_value = 0.0;
-int errors = 0;
-
-int main(void)
-{
- nan_value /= nan_value;
- minus_zero = copysign(zero, -1.0);
-
- check_i1(isfinite, 1.0, 1);
- check_i1(isfinite, 2.0, 1);
- check_i1(isfinite, 3.0, 1);
- check_i1(isfinite, DBL_MAX, 1);
- check_i1(isfinite, FLT_MAX, 1);
- check_i1(isfinite, HUGE_VAL, 0);
- check_i1(isfinite, HUGE_VALF, 0);
- check_i1(isfinite, HUGE_VALL, 0);
- check_i1(isfinite, nan_value, 0);
- check_i1(isfinite, nan_value, 0);
- check_i1(isfinite, nan_value, 0);
-
- check_i1(isnan, 1.0, 0);
- check_i1(isnan, 2.0, 0);
- check_i1(isnan, 3.0, 0);
- check_i1(isnan, DBL_MAX, 0);
- check_i1(isnan, FLT_MAX, 0);
- check_i1(isnan, HUGE_VAL, 0);
- check_i1(isnan, HUGE_VALF, 0);
- check_i1(isnan, HUGE_VALL, 0);
- check_i1(isnan, (float)HUGE_VALL, 0);
- check_i1(isnan, nan_value, 1);
- check_i1(isnan, nan_value, 1);
- check_i1(isnan, nan_value, 1);
-
- check_i1(isinf, 1.0, 0);
- check_i1(isinf, 2.0, 0);
- check_i1(isinf, 3.0, 0);
- check_i1(isinf, DBL_MAX, 0);
- check_i1(isinf, FLT_MAX, 0);
- check_i1(isinf, (float)DBL_MAX, 1);
- check_i1(isinf, HUGE_VAL, 1);
- check_i1(isinf, HUGE_VALF, 1);
- check_i1(isinf, HUGE_VALL, 1);
- check_i1(isinf, (float)HUGE_VALL, 1);
- check_i1(isinf, nan_value, 0);
- check_i1(isinf, nan_value, 0);
- check_i1(isinf, nan_value, 0);
-
- check_i1(fpclassify, minus_zero, FP_ZERO);
- check_i1(fpclassify, 0.0, FP_ZERO);
- check_i1(fpclassify, 1.0, FP_NORMAL);
- check_i1(fpclassify, 2.0, FP_NORMAL);
- check_i1(fpclassify, 3.0, FP_NORMAL);
- check_i1(fpclassify, DBL_MIN/1.01, FP_SUBNORMAL);
- check_i1(fpclassify, DBL_MIN, FP_NORMAL);
- check_i1(fpclassify, DBL_MAX, FP_NORMAL);
- check_i1(fpclassify, FLT_MAX, FP_NORMAL);
- check_i1(fpclassify, DBL_MAX, FP_NORMAL);
- check_i1(fpclassify, DBL_MAX*1.01, FP_INFINITE);
- check_i1(fpclassify, HUGE_VAL, FP_INFINITE);
- check_i1(fpclassify, HUGE_VALF, FP_INFINITE);
- check_i1(fpclassify, HUGE_VALL, FP_INFINITE);
- check_i1(fpclassify, (float)HUGE_VALL, FP_INFINITE);
- check_i1(fpclassify, nan_value, FP_NAN);
- check_i1(fpclassify, nan_value, FP_NAN);
- check_i1(fpclassify, nan_value, FP_NAN);
-
- check_i1(!!signbit, -1.0, 1);
- check_i1(!!signbit, minus_zero, 1);
- check_i1(!!signbit, 0.0, 0);
- check_i1(!!signbit, HUGE_VAL, 0);
- check_i1(!!signbit, HUGE_VALF, 0);
- check_i1(!!signbit, HUGE_VALL, 0);
- check_i1(!!signbit, -HUGE_VAL, 1);
- check_i1(!!signbit, -HUGE_VALF, 1);
- check_i1(!!signbit, -HUGE_VALL, 1);
-
- printf("Errors: %d\n", errors);
- return errors;
-}
diff --git a/test/math/compile_test.c b/test/math/compile_test.c
deleted file mode 100644
index aedfde6..0000000
--- a/test/math/compile_test.c
+++ /dev/null
@@ -1,141 +0,0 @@
-#include <math.h>
-
-static int testf(float float_x, long double long_double_x, /*float complex float_complex_x,*/ int int_x, long long_x)
-{
-int r = 0;
-r += acosf(float_x);
-r += acoshf(float_x);
-r += asinf(float_x);
-r += asinhf(float_x);
-r += atan2f(float_x, float_x);
-r += atanf(float_x);
-r += atanhf(float_x);
-/*r += cargf(float_complex_x); - will fight with complex numbers later */
-r += cbrtf(float_x);
-r += ceilf(float_x);
-r += copysignf(float_x, float_x);
-r += cosf(float_x);
-r += coshf(float_x);
-r += erfcf(float_x);
-r += erff(float_x);
-r += exp2f(float_x);
-r += expf(float_x);
-r += expm1f(float_x);
-r += fabsf(float_x);
-r += fdimf(float_x, float_x);
-r += floorf(float_x);
-r += fmaf(float_x, float_x, float_x);
-r += fmaxf(float_x, float_x);
-r += fminf(float_x, float_x);
-r += fmodf(float_x, float_x);
-r += frexpf(float_x, &int_x);
-r += gammaf(float_x);
-r += hypotf(float_x, float_x);
-r += ilogbf(float_x);
-r += ldexpf(float_x, int_x);
-r += lgammaf(float_x);
-r += llrintf(float_x);
-r += llroundf(float_x);
-r += log10f(float_x);
-r += log1pf(float_x);
-r += log2f(float_x);
-r += logbf(float_x);
-r += logf(float_x);
-r += lrintf(float_x);
-r += lroundf(float_x);
-r += modff(float_x, &float_x);
-r += nearbyintf(float_x);
-r += nexttowardf(float_x, long_double_x);
-r += powf(float_x, float_x);
-r += remainderf(float_x, float_x);
-r += remquof(float_x, float_x, &int_x);
-r += rintf(float_x);
-r += roundf(float_x);
-#ifdef __UCLIBC_SUSV3_LEGACY__
-r += scalbf(float_x, float_x);
-#endif
-r += scalblnf(float_x, long_x);
-r += scalbnf(float_x, int_x);
-r += significandf(float_x);
-r += sinf(float_x);
-r += sinhf(float_x);
-r += sqrtf(float_x);
-r += tanf(float_x);
-r += tanhf(float_x);
-r += tgammaf(float_x);
-r += truncf(float_x);
-return r;
-}
-
-static int testl(long double long_double_x, int int_x, long long_x)
-{
-int r = 0;
-r += __finitel(long_double_x);
-r += __fpclassifyl(long_double_x);
-r += __isinfl(long_double_x);
-r += __isnanl(long_double_x);
-r += __signbitl(long_double_x);
-r += acoshl(long_double_x);
-r += acosl(long_double_x);
-r += asinhl(long_double_x);
-r += asinl(long_double_x);
-r += atan2l(long_double_x, long_double_x);
-r += atanhl(long_double_x);
-r += atanl(long_double_x);
-r += cbrtl(long_double_x);
-r += ceill(long_double_x);
-r += copysignl(long_double_x, long_double_x);
-r += coshl(long_double_x);
-r += cosl(long_double_x);
-r += erfcl(long_double_x);
-r += erfl(long_double_x);
-r += exp2l(long_double_x);
-r += expl(long_double_x);
-r += expm1l(long_double_x);
-r += fabsl(long_double_x);
-r += fdiml(long_double_x, long_double_x);
-r += floorl(long_double_x);
-r += fmal(long_double_x, long_double_x, long_double_x);
-r += fmaxl(long_double_x, long_double_x);
-r += fminl(long_double_x, long_double_x);
-r += fmodl(long_double_x, long_double_x);
-r += frexpl(long_double_x, &int_x);
-r += hypotl(long_double_x, long_double_x);
-r += ilogbl(long_double_x);
-r += ldexpl(long_double_x, int_x);
-r += lgammal(long_double_x);
-r += llrintl(long_double_x);
-r += llroundl(long_double_x);
-r += log10l(long_double_x);
-r += log1pl(long_double_x);
-r += log2l(long_double_x);
-r += logbl(long_double_x);
-r += logl(long_double_x);
-r += lrintl(long_double_x);
-r += lroundl(long_double_x);
-r += modfl(long_double_x, &long_double_x);
-r += nearbyintl(long_double_x);
-r += nextafterl(long_double_x, long_double_x);
-r += nexttowardl(long_double_x, long_double_x);
-r += powl(long_double_x, long_double_x);
-r += remainderl(long_double_x, long_double_x);
-r += remquol(long_double_x, long_double_x, &int_x);
-r += rintl(long_double_x);
-r += roundl(long_double_x);
-r += scalblnl(long_double_x, long_x);
-r += scalbnl(long_double_x, int_x);
-r += sinhl(long_double_x);
-r += sinl(long_double_x);
-r += sqrtl(long_double_x);
-r += tanhl(long_double_x);
-r += tanl(long_double_x);
-r += tgammal(long_double_x);
-r += truncl(long_double_x);
-return r;
-}
-
-int main(int argc, char **argv)
-{
- /* Always 0 but gcc hopefully won't be able to notice */
- return 5 & ((long)&testf) & ((long)&testl) & 2;
-}
diff --git a/test/math/fenv.h b/test/math/fenv.h
deleted file mode 100644
index 0025a62..0000000
--- a/test/math/fenv.h
+++ /dev/null
@@ -1,3 +0,0 @@
-/* until we support fenv ... */
-#define feclearexcept(X)
-#define fetestexcept(X) (0)
diff --git a/test/math/gamma.c b/test/math/gamma.c
deleted file mode 100644
index 69c10af..0000000
--- a/test/math/gamma.c
+++ /dev/null
@@ -1,73 +0,0 @@
-#include <math.h>
-#include <float.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <stdio.h>
-
-#define check_d1(func, param, expected) \
-do { \
- int err; hex_union ur; hex_union up; \
- double result = func(param); up.f = param; ur.f = result; \
- errors += (err = (result != (expected))); \
- err \
- ? printf("FAIL: %s(%g/"HEXFMT")=%g/"HEXFMT" (expected %g)\n", \
- #func, (double)(param), (long long)up.hex, result, (long long)ur.hex, (double)(expected)) \
- : printf("PASS: %s(%g)=%g\n", #func, (double)(param), result); \
-} while (0)
-
-#define HEXFMT "%08llx"
-typedef union {
- double f;
- uint64_t hex;
-} hex_union;
-double result;
-
-#define M_2_SQRT_PIl 3.5449077018110320545963349666822903L /* 2 sqrt (M_PIl) */
-#define M_SQRT_PIl 1.7724538509055160272981674833411451L /* sqrt (M_PIl) */
-
-double zero = 0.0;
-double minus_zero = 0.0;
-double nan_value = 0.0;
-int errors = 0;
-
-int main(void)
-{
- nan_value /= nan_value;
- minus_zero = copysign(zero, -1.0);
-
- //check_d1(tgamma, HUGE_VAL, NAN);
- //check_d1(tgamma, negative_integer, NAN);
- check_d1(tgamma, 0.0, HUGE_VAL); /* pole */
- check_d1(tgamma, minus_zero, -HUGE_VAL); /* pole */
- check_d1(tgamma, DBL_MAX/2, HUGE_VAL); /* overflow to inf */
- check_d1(tgamma, DBL_MAX, HUGE_VAL); /* overflow to inf */
- check_d1(tgamma, HUGE_VAL, HUGE_VAL); /* overflow to inf */
- check_d1(tgamma, 7, 2*3*4*5*6); /* normal value */
- check_d1(tgamma, -0.5, -M_2_SQRT_PIl); /* normal value (testing negative points) */
-
- check_d1(lgamma, -HUGE_VAL, HUGE_VAL);
- //check_d1(lgamma, HUGE_VAL, NAN);
- check_d1(lgamma, 0.0, HUGE_VAL); /* pole */
- check_d1(lgamma, minus_zero, HUGE_VAL); /* pole */
- check_d1(lgamma, 1.0, 0.0);
- check_d1(lgamma, 2.0, 0.0);
- check_d1(lgamma, DBL_MAX/2, HUGE_VAL); /* overflow to inf */
- check_d1(lgamma, DBL_MAX, HUGE_VAL); /* overflow to inf */
- check_d1(lgamma, HUGE_VAL, HUGE_VAL); /* overflow to inf */
- check_d1(lgamma, 7, log(2*3*4*5*6)); /* normal value */
-
- /* In glibc, gamma == lgamma. (In BSD, it's == tgamma */
- check_d1(gamma, -HUGE_VAL, HUGE_VAL);
- //check_d1(gamma, HUGE_VAL, NAN);
- check_d1(gamma, 0.0, HUGE_VAL); /* pole */
- check_d1(gamma, minus_zero, HUGE_VAL); /* pole */
- check_d1(gamma, 1.0, 0.0);
- check_d1(gamma, 2.0, 0.0);
- check_d1(gamma, DBL_MAX/2, HUGE_VAL); /* overflow to inf */
- check_d1(gamma, DBL_MAX, HUGE_VAL); /* overflow to inf */
- check_d1(gamma, HUGE_VAL, HUGE_VAL); /* overflow to inf */
- check_d1(gamma, 7, log(2*3*4*5*6)); /* normal value */
-
- printf("Errors: %d\n", errors);
- return errors;
-}
diff --git a/test/math/gen-libm-test.pl b/test/math/gen-libm-test.pl
deleted file mode 100755
index 118f352..0000000
--- a/test/math/gen-libm-test.pl
+++ /dev/null
@@ -1,737 +0,0 @@
-#!/usr/bin/env perl
-# Copyright (C) 1999 Free Software Foundation, Inc.
-# This file is part of the GNU C Library.
-# Contributed by Andreas Jaeger <aj(a)suse.de>, 1999.
-
-# 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; see the file COPYING.LIB. If
-# not, see <http://www.gnu.org/licenses/>.
-
-# This file needs to be tidied up
-# Note that functions and tests share the same namespace.
-
-# Information about tests are stored in: %results
-# $results{$test}{"kind"} is either "fct" or "test" and flags whether this
-# is a maximal error of a function or a single test.
-# $results{$test}{"type"} is the result type, e.g. normal or complex.
-# $results{$test}{"has_ulps"} is set if deltas exist.
-# $results{$test}{"has_fails"} is set if exptected failures exist.
-# In the following description $type and $float are:
-# - $type is either "normal", "real" (for the real part of a complex number)
-# or "imag" (for the imaginary part # of a complex number).
-# - $float is either of float, ifloat, double, idouble, ldouble, ildouble;
-# It represents the underlying floating point type (float, double or long
-# double) and if inline functions (the leading i stands for inline)
-# are used.
-# $results{$test}{$type}{"fail"}{$float} is defined and has a 1 if
-# the test is expected to fail
-# $results{$test}{$type}{"ulp"}{$float} is defined and has a delta as value
-
-
-use Getopt::Std;
-
-use strict;
-
-use vars qw ($input $output);
-use vars qw (%results);
-use vars qw (@tests @functions);
-use vars qw ($count);
-use vars qw (%beautify @all_floats);
-use vars qw ($output_dir $ulps_file);
-
-# all_floats is sorted and contains all recognised float types
-@all_floats = ('double', 'float', 'idouble',
- 'ifloat', 'ildouble', 'ldouble');
-
-%beautify =
- ( "minus_zero" => "-0",
- "plus_zero" => "+0",
- "minus_infty" => "-inf",
- "plus_infty" => "inf",
- "nan_value" => "NaN",
- "M_El" => "e",
- "M_E2l" => "e^2",
- "M_E3l" => "e^3",
- "M_LOG10El", "log10(e)",
- "M_PIl" => "pi",
- "M_PI_34l" => "3/4 pi",
- "M_PI_2l" => "pi/2",
- "M_PI_4l" => "pi/4",
- "M_PI_6l" => "pi/6",
- "M_PI_34_LOG10El" => "3/4 pi*log10(e)",
- "M_PI_LOG10El" => "pi*log10(e)",
- "M_PI2_LOG10El" => "pi/2*log10(e)",
- "M_PI4_LOG10El" => "pi/4*log10(e)",
- "M_LOG_SQRT_PIl" => "log(sqrt(pi))",
- "M_LOG_2_SQRT_PIl" => "log(2*sqrt(pi))",
- "M_2_SQRT_PIl" => "2 sqrt (pi)",
- "M_SQRT_PIl" => "sqrt (pi)",
- "INVALID_EXCEPTION" => "invalid exception",
- "DIVIDE_BY_ZERO_EXCEPTION" => "division by zero exception",
- "INVALID_EXCEPTION_OK" => "invalid exception allowed",
- "DIVIDE_BY_ZERO_EXCEPTION_OK" => "division by zero exception allowed",
- "EXCEPTIONS_OK" => "exceptions allowed",
- "IGNORE_ZERO_INF_SIGN" => "sign of zero/inf not specified",
-"INVALID_EXCEPTION|IGNORE_ZERO_INF_SIGN" => "invalid exception and sign of zero/inf not specified"
- );
-
-
-# get Options
-# Options:
-# u: ulps-file
-# h: help
-# o: output-directory
-# n: generate new ulps file
-use vars qw($opt_u $opt_h $opt_o $opt_n);
-getopts('u:o:nh');
-
-$ulps_file = 'libm-test-ulps';
-$output_dir = '';
-
-if ($opt_h) {
- print "Usage: gen-libm-test.pl [OPTIONS]\n";
- print " -h print this help, then exit\n";
- print " -o DIR directory where generated files will be placed\n";
- print " -n only generate sorted file NewUlps from libm-test-ulps\n";
- print " -u FILE input file with ulps\n";
- exit 0;
-}
-
-$ulps_file = $opt_u if ($opt_u);
-$output_dir = $opt_o if ($opt_o);
-
-$input = "libm-test.inc";
-$output = "${output_dir}libm-test.c";
-
-$count = 0;
-
-&parse_ulps ($ulps_file);
-&generate_testfile ($input, $output) unless ($opt_n);
-&output_ulps ("${output_dir}libm-test-ulps.h", $ulps_file) unless ($opt_n);
-&print_ulps_file ("${output_dir}NewUlps") if ($opt_n);
-
-# Return a nicer representation
-sub beautify {
- my ($arg) = @_;
- my ($tmp);
-
- if (exists $beautify{$arg}) {
- return $beautify{$arg};
- }
- if ($arg =~ /^-/) {
- $tmp = $arg;
- $tmp =~ s/^-//;
- if (exists $beautify{$tmp}) {
- return '-' . $beautify{$tmp};
- }
- }
- if ($arg =~ /[0-9]L$/) {
- $arg =~ s/L$//;
- }
- return $arg;
-}
-
-# Return a nicer representation of a complex number
-sub build_complex_beautify {
- my ($r, $i) = @_;
- my ($str1, $str2);
-
- $str1 = &beautify ($r);
- $str2 = &beautify ($i);
- if ($str2 =~ /^-/) {
- $str2 =~ s/^-//;
- $str1 .= ' - ' . $str2;
- } else {
- $str1 .= ' + ' . $str2;
- }
- $str1 .= ' i';
- return $str1;
-}
-
-# Return name of a variable
-sub get_variable {
- my ($number) = @_;
-
- return "x" if ($number == 1);
- return "y" if ($number == 2);
- return "z" if ($number == 3);
- # return x1,x2,...
- $number =-3;
- return "x$number";
-}
-
-# Add a new test to internal data structures and fill in the
-# ulps, failures and exception information for the C line.
-sub new_test {
- my ($test, $exception) = @_;
- my $rest;
-
- # Add ulp, xfail
- if (exists $results{$test}{'has_ulps'}) {
- $rest = ", DELTA$count";
- } else {
- $rest = ', 0';
- }
- if (exists $results{$test}{'has_fails'}) {
- $rest .= ", FAIL$count";
- } else {
- $rest .= ', 0';
- }
- if (defined $exception) {
- $rest .= ", $exception";
- } else {
- $rest .= ', 0';
- }
- $rest .= ");\n";
- # We must increment here to keep @tests and count in sync
- push @tests, $test;
- ++$count;
- return $rest;
-}
-
-# Treat some functions especially.
-# Currently only sincos needs extra treatment.
-sub special_functions {
- my ($file, $args) = @_;
- my (@args, $str, $test, $cline);
-
- @args = split /,\s*/, $args;
-
- unless ($args[0] =~ /sincos/) {
- die ("Don't know how to handle $args[0] extra.");
- }
- print $file " FUNC (sincos) ($args[1], &sin_res, &cos_res);\n";
-
- $str = 'sincos (' . &beautify ($args[1]) . ', &sin_res, &cos_res)';
- # handle sin
- $test = $str . ' puts ' . &beautify ($args[2]) . ' in sin_res';
- if ($#args == 4) {
- $test .= " plus " . &beautify ($args[4]);
- }
-
- $cline = " check_float (\"$test\", sin_res, $args[2]";
- $cline .= &new_test ($test, $args[4]);
- print $file $cline;
-
- # handle cos
- $test = $str . ' puts ' . &beautify ($args[3]) . ' in cos_res';
- $cline = " check_float (\"$test\", cos_res, $args[3]";
- # only tests once for exception
- $cline .= &new_test ($test, undef);
- print $file $cline;
-}
-
-# Parse the arguments to TEST_x_y
-sub parse_args {
- my ($file, $descr, $args) = @_;
- my (@args, $str, $descr_args, $descr_res, @descr);
- my ($current_arg, $cline, $i);
- my ($pre, $post, @special);
- my ($extra_var, $call, $c_call);
-
- if ($descr eq 'extra') {
- &special_functions ($file, $args);
- return;
- }
- ($descr_args, $descr_res) = split /_/,$descr, 2;
-
- @args = split /,\s*/, $args;
-
- $call = "$args[0] (";
-
- # Generate first the string that's shown to the user
- $current_arg = 1;
- $extra_var = 0;
- @descr = split //,$descr_args;
- for ($i = 0; $i <= $#descr; $i++) {
- if ($i >= 1) {
- $call .= ', ';
- }
- # FLOAT, int, long int, long long int
- if ($descr[$i] =~ /f|i|l|L/) {
- $call .= &beautify ($args[$current_arg]);
- ++$current_arg;
- next;
- }
- # &FLOAT, &int - argument is added here
- if ($descr[$i] =~ /F|I/) {
- ++$extra_var;
- $call .= '&' . &get_variable ($extra_var);
- next;
- }
- # complex
- if ($descr[$i] eq 'c') {
- $call .= &build_complex_beautify ($args[$current_arg], $args[$current_arg+1]);
- $current_arg += 2;
- next;
- }
-
- die ("$descr[$i] is unknown");
- }
- $call .= ')';
- $str = "$call == ";
-
- # Result
- @descr = split //,$descr_res;
- foreach (@descr) {
- if ($_ =~ /f|i|l|L/) {
- $str .= &beautify ($args[$current_arg]);
- ++$current_arg;
- } elsif ($_ eq 'c') {
- $str .= &build_complex_beautify ($args[$current_arg], $args[$current_arg+1]);
- $current_arg += 2;
- } elsif ($_ eq 'b') {
- # boolean
- $str .= ($args[$current_arg] == 0) ? "false" : "true";
- ++$current_arg;
- } elsif ($_ eq '1') {
- ++$current_arg;
- } else {
- die ("$_ is unknown");
- }
- }
- # consistency check
- if ($current_arg == $#args) {
- die ("wrong number of arguments")
- unless ($args[$current_arg] =~ /EXCEPTION|IGNORE_ZERO_INF_SIGN/);
- } elsif ($current_arg < $#args) {
- die ("wrong number of arguments");
- } elsif ($current_arg > ($#args+1)) {
- die ("wrong number of arguments");
- }
-
-
- # check for exceptions
- if ($current_arg <= $#args) {
- $str .= " plus " . &beautify ($args[$current_arg]);
- }
-
- # Put the C program line together
- # Reset some variables to start again
- $current_arg = 1;
- $extra_var = 0;
- if (substr($descr_res,0,1) eq 'f') {
- $cline = 'check_float'
- } elsif (substr($descr_res,0,1) eq 'b') {
- $cline = 'check_bool';
- } elsif (substr($descr_res,0,1) eq 'c') {
- $cline = 'check_complex';
- } elsif (substr($descr_res,0,1) eq 'i') {
- $cline = 'check_int';
- } elsif (substr($descr_res,0,1) eq 'l') {
- $cline = 'check_long';
- } elsif (substr($descr_res,0,1) eq 'L') {
- $cline = 'check_longlong';
- }
- # Special handling for some macros:
- $cline .= " (\"$str\", ";
- if ($args[0] =~ /fpclassify|isnormal|isfinite|signbit/) {
- $c_call = "$args[0] (";
- } else {
- $c_call = " FUNC($args[0]) (";
- }
- @descr = split //,$descr_args;
- for ($i=0; $i <= $#descr; $i++) {
- if ($i >= 1) {
- $c_call .= ', ';
- }
- # FLOAT, int, long int, long long int
- if ($descr[$i] =~ /f|i|l|L/) {
- $c_call .= $args[$current_arg];
- $current_arg++;
- next;
- }
- # &FLOAT, &int
- if ($descr[$i] =~ /F|I/) {
- ++$extra_var;
- $c_call .= '&' . &get_variable ($extra_var);
- next;
- }
- # complex
- if ($descr[$i] eq 'c') {
- $c_call .= "BUILD_COMPLEX ($args[$current_arg], $args[$current_arg+1])";
- $current_arg += 2;
- next;
- }
- }
- $c_call .= ')';
- $cline .= "$c_call, ";
-
- @descr = split //,$descr_res;
- foreach (@descr) {
- if ($_ =~ /b|f|i|l|L/ ) {
- $cline .= $args[$current_arg];
- $current_arg++;
- } elsif ($_ eq 'c') {
- $cline .= "BUILD_COMPLEX ($args[$current_arg], $args[$current_arg+1])";
- $current_arg += 2;
- } elsif ($_ eq '1') {
- push @special, $args[$current_arg];
- ++$current_arg;
- }
- }
- # Add ulp, xfail
- $cline .= &new_test ($str, ($current_arg <= $#args) ? $args[$current_arg] : undef);
-
- # special treatment for some functions
- if ($args[0] eq 'frexp') {
- if (defined $special[0] && $special[0] ne "IGNORE") {
- my ($str) = "$call sets x to $special[0]";
- $post = " check_int (\"$str\", x, $special[0]";
- $post .= &new_test ($str, undef);
- }
- } elsif ($args[0] eq 'gamma' || $args[0] eq 'lgamma') {
- $pre = " signgam = 0;\n";
- if (defined $special[0] && $special[0] ne "IGNORE") {
- my ($str) = "$call sets signgam to $special[0]";
- $post = " check_int (\"$str\", signgam, $special[0]";
- $post .= &new_test ($str, undef);
- }
- } elsif ($args[0] eq 'modf') {
- if (defined $special[0] && $special[0] ne "IGNORE") {
- my ($str) = "$call sets x to $special[0]";
- $post = " check_float (\"$str\", x, $special[0]";
- $post .= &new_test ($str, undef);
- }
- } elsif ($args[0] eq 'remquo') {
- if (defined $special[0] && $special[0] ne "IGNORE") {
- my ($str) = "$call sets x to $special[0]";
- $post = " check_int (\"$str\", x, $special[0]";
- $post .= &new_test ($str, undef);
- }
- }
-
- print $file $pre if (defined $pre);
-
- print $file " $cline";
-
- print $file $post if (defined $post);
-}
-
-# Generate libm-test.c
-sub generate_testfile {
- my ($input, $output) = @_;
- my ($lasttext);
- my (@args, $i, $str);
-
- open INPUT, $input or die ("Can't open $input: $!");
- open OUTPUT, ">$output" or die ("Can't open $output: $!");
-
- # Replace the special macros
- while (<INPUT>) {
-
- # TEST_...
- if (/^\s*TEST_/) {
- my ($descr, $args);
- chop;
- ($descr, $args) = ($_ =~ /TEST_(\w+)\s*\((.*)\)/);
- &parse_args (\*OUTPUT, $descr, $args);
- next;
- }
- # START (function)
- if (/START/) {
- print OUTPUT " init_max_error ();\n";
- next;
- }
- # END (function)
- if (/END/) {
- my ($fct, $line, $type);
- if (/complex/) {
- s/,\s*complex\s*//;
- $type = 'complex';
- } else {
- $type = 'normal';
- }
- ($fct) = ($_ =~ /END\s*\((.*)\)/);
- if ($type eq 'complex') {
- $line = " print_complex_max_error (\"$fct\", ";
- } else {
- $line = " print_max_error (\"$fct\", ";
- }
- if (exists $results{$fct}{'has_ulps'}) {
- $line .= "DELTA$fct";
- } else {
- $line .= '0';
- }
- if (exists $results{$fct}{'has_fails'}) {
- $line .= ", FAIL$fct";
- } else {
- $line .= ', 0';
- }
- $line .= ");\n";
- print OUTPUT $line;
- push @functions, $fct;
- next;
- }
- print OUTPUT;
- }
- close INPUT;
- close OUTPUT;
-}
-
-
-
-# Parse ulps file
-sub parse_ulps {
- my ($file) = @_;
- my ($test, $type, $float, $eps, $kind);
-
- # $type has the following values:
- # "normal": No complex variable
- # "real": Real part of complex result
- # "imag": Imaginary part of complex result
- open ULP, $file or die ("Can't open $file: $!");
- while (<ULP>) {
- chop;
- # ignore comments and empty lines
- next if /^#/;
- next if /^\s*$/;
- if (/^Test/) {
- if (/Real part of:/) {
- s/Real part of: //;
- $type = 'real';
- } elsif (/Imaginary part of:/) {
- s/Imaginary part of: //;
- $type = 'imag';
- } else {
- $type = 'normal';
- }
- s/^.+\"(.*)\".*$/$1/;
- $test = $_;
- $kind = 'test';
- next;
- }
- if (/^Function: /) {
- if (/Real part of/) {
- s/Real part of //;
- $type = 'real';
- } elsif (/Imaginary part of/) {
- s/Imaginary part of //;
- $type = 'imag';
- } else {
- $type = 'normal';
- }
- ($test) = ($_ =~ /^Function:\s*\"([a-zA-Z0-9_]+)\"/);
- $kind = 'fct';
- next;
- }
- if (/^i?(float|double|ldouble):/) {
- ($float, $eps) = split /\s*:\s*/,$_,2;
-
- if ($eps eq 'fail') {
- $results{$test}{$type}{'fail'}{$float} = 1;
- $results{$test}{'has_fails'} = 1;
- } elsif ($eps eq "0") {
- # ignore
- next;
- } else {
- $results{$test}{$type}{'ulp'}{$float} = $eps;
- $results{$test}{'has_ulps'} = 1;
- }
- if ($type =~ /^real|imag$/) {
- $results{$test}{'type'} = 'complex';
- } elsif ($type eq 'normal') {
- $results{$test}{'type'} = 'normal';
- }
- $results{$test}{'kind'} = $kind;
- next;
- }
- print "Skipping unknown entry: `$_'\n";
- }
- close ULP;
-}
-
-
-# Clean up a floating point number
-sub clean_up_number {
- my ($number) = @_;
-
- # Remove trailing zeros
- $number =~ s/0+$//;
- $number =~ s/\.$//;
- return $number;
-}
-
-# Output a file which can be read in as ulps file.
-sub print_ulps_file {
- my ($file) = @_;
- my ($test, $type, $float, $eps, $fct, $last_fct);
-
- $last_fct = '';
- open NEWULP, ">$file" or die ("Can't open $file: $!");
- print NEWULP "# Begin of automatic generation\n";
- # first the function calls
- foreach $test (sort keys %results) {
- next if ($results{$test}{'kind'} ne 'test');
- foreach $type ('real', 'imag', 'normal') {
- if (exists $results{$test}{$type}) {
- if (defined $results{$test}) {
- ($fct) = ($test =~ /^(\w+)\s/);
- if ($fct ne $last_fct) {
- $last_fct = $fct;
- print NEWULP "\n# $fct\n";
- }
- }
- if ($type eq 'normal') {
- print NEWULP "Test \"$test\":\n";
- } elsif ($type eq 'real') {
- print NEWULP "Test \"Real part of: $test\":\n";
- } elsif ($type eq 'imag') {
- print NEWULP "Test \"Imaginary part of: $test\":\n";
- }
- foreach $float (@all_floats) {
- if (exists $results{$test}{$type}{'ulp'}{$float}) {
- print NEWULP "$float: ",
- &clean_up_number ($results{$test}{$type}{'ulp'}{$float}),
- "\n";
- }
- if (exists $results{$test}{$type}{'fail'}{$float}) {
- print NEWULP "$float: fail\n";
- }
- }
- }
- }
- }
- print NEWULP "\n# Maximal error of functions:\n";
-
- foreach $fct (sort keys %results) {
- next if ($results{$fct}{'kind'} ne 'fct');
- foreach $type ('real', 'imag', 'normal') {
- if (exists $results{$fct}{$type}) {
- if ($type eq 'normal') {
- print NEWULP "Function: \"$fct\":\n";
- } elsif ($type eq 'real') {
- print NEWULP "Function: Real part of \"$fct\":\n";
- } elsif ($type eq 'imag') {
- print NEWULP "Function: Imaginary part of \"$fct\":\n";
- }
- foreach $float (@all_floats) {
- if (exists $results{$fct}{$type}{'ulp'}{$float}) {
- print NEWULP "$float: ",
- &clean_up_number ($results{$fct}{$type}{'ulp'}{$float}),
- "\n";
- }
- if (exists $results{$fct}{$type}{'fail'}{$float}) {
- print NEWULP "$float: fail\n";
- }
- }
- print NEWULP "\n";
- }
- }
- }
- print NEWULP "# end of automatic generation\n";
- close NEWULP;
-}
-
-sub get_ulps {
- my ($test, $type, $float) = @_;
-
- if ($type eq 'complex') {
- my ($res);
- # Return 0 instead of BUILD_COMPLEX (0,0)
- if (!exists $results{$test}{'real'}{'ulp'}{$float} &&
- !exists $results{$test}{'imag'}{'ulp'}{$float}) {
- return "0";
- }
- $res = 'BUILD_COMPLEX (';
- $res .= (exists $results{$test}{'real'}{'ulp'}{$float}
- ? $results{$test}{'real'}{'ulp'}{$float} : "0");
- $res .= ', ';
- $res .= (exists $results{$test}{'imag'}{'ulp'}{$float}
- ? $results{$test}{'imag'}{'ulp'}{$float} : "0");
- $res .= ')';
- return $res;
- }
- return (exists $results{$test}{'normal'}{'ulp'}{$float}
- ? $results{$test}{'normal'}{'ulp'}{$float} : "0");
-}
-
-sub get_failure {
- my ($test, $type, $float) = @_;
- if ($type eq 'complex') {
- # return x,y
- my ($res);
- # Return 0 instead of BUILD_COMPLEX_INT (0,0)
- if (!exists $results{$test}{'real'}{'ulp'}{$float} &&
- !exists $results{$test}{'imag'}{'ulp'}{$float}) {
- return "0";
- }
- $res = 'BUILD_COMPLEX_INT (';
- $res .= (exists $results{$test}{'real'}{'fail'}{$float}
- ? $results{$test}{'real'}{'fail'}{$float} : "0");
- $res .= ', ';
- $res .= (exists $results{$test}{'imag'}{'fail'}{$float}
- ? $results{$test}{'imag'}{'fail'}{$float} : "0");
- $res .= ')';
- return $res;
- }
- return (exists $results{$test}{'normal'}{'fail'}{$float}
- ? $results{$test}{'normal'}{'fail'}{$float} : "0");
-
-}
-
-# Output the defines for a single test
-sub output_test {
- my ($file, $test, $name) = @_;
- my ($ldouble, $double, $float, $ildouble, $idouble, $ifloat);
- my ($type);
-
- # Do we have ulps/failures?
- if (!exists $results{$test}{'type'}) {
- return;
- }
- $type = $results{$test}{'type'};
- if (exists $results{$test}{'has_ulps'}) {
- # XXX use all_floats (change order!)
- $ldouble = &get_ulps ($test, $type, "ldouble");
- $double = &get_ulps ($test, $type, "double");
- $float = &get_ulps ($test, $type, "float");
- $ildouble = &get_ulps ($test, $type, "ildouble");
- $idouble = &get_ulps ($test, $type, "idouble");
- $ifloat = &get_ulps ($test, $type, "ifloat");
- print $file "#define DELTA$name CHOOSE($ldouble, $double, $float, $ildouble, $idouble, $ifloat)\t/* $test */\n";
- }
-
- if (exists $results{$test}{'has_fails'}) {
- $ldouble = &get_failure ($test, "ldouble");
- $double = &get_failure ($test, "double");
- $float = &get_failure ($test, "float");
- $ildouble = &get_failure ($test, "ildouble");
- $idouble = &get_failure ($test, "idouble");
- $ifloat = &get_failure ($test, "ifloat");
- print $file "#define FAIL$name CHOOSE($ldouble, $double, $float $ildouble, $idouble, $ifloat)\t/* $test */\n";
- }
-}
-
-# Print include file
-sub output_ulps {
- my ($file, $ulps_filename) = @_;
- my ($i, $fct);
-
- open ULP, ">$file" or die ("Can't open $file: $!");
-
- print ULP "/* This file is automatically generated\n";
- print ULP " from $ulps_filename with gen-libm-test.pl.\n";
- print ULP " Don't change it - change instead the master files. */\n\n";
-
- print ULP "\n/* Maximal error of functions. */\n";
- foreach $fct (@functions) {
- output_test (\*ULP, $fct, $fct);
- }
-
- print ULP "\n/* Error of single function calls. */\n";
- for ($i = 0; $i < $count; $i++) {
- output_test (\*ULP, $tests[$i], $i);
- }
- close ULP;
-}
diff --git a/test/math/ilogb.c b/test/math/ilogb.c
deleted file mode 100644
index 041e66b..0000000
--- a/test/math/ilogb.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <math.h>
-#include <float.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <limits.h>
-#include <stdio.h>
-
-#define check_d1(func, param, expected) \
-do { \
- int err; hex_union ur; hex_union up; \
- double result = func(param); up.f = param; ur.f = result; \
- errors += (err = (result != (expected))); \
- err \
- ? printf("FAIL: %s(%g/"HEXFMT")=%g/"HEXFMT" (expected %g)\n", \
- #func, (double)(param), (long long)up.hex, result, (long long)ur.hex, (double)(expected)) \
- : printf("PASS: %s(%g)=%g\n", #func, (double)(param), result); \
-} while (0)
-
-#define check_i1(func, param, expected) \
-do { \
- int err; hex_union up; \
- long long result = func(param); up.f = param; \
- errors += (err = (result != (expected))); \
- err \
- ? printf("FAIL: %s(%g/"HEXFMT")=%lld/%llu (expected %llu)\n", \
- #func, (double)(param), (long long)up.hex, result, result, (long long)(expected)) \
- : printf("PASS: %s(%g)=%lld/%llu\n", #func, (double)(param), result, result); \
-} while (0)
-
-#define HEXFMT "%08llx"
-typedef union {
- double f;
- uint64_t hex;
-} hex_union;
-
-double nan_value = 0.0;
-int errors = 0;
-
-int main(void)
-{
- nan_value /= nan_value;
-
- check_i1(ilogb, 0.0, FP_ILOGB0);
- check_i1(ilogb, HUGE_VAL, INT_MAX);
- check_i1(ilogb, nan_value, FP_ILOGBNAN);
- check_i1(ilogbf, 0.0, FP_ILOGB0);
- check_i1(ilogbf, HUGE_VALF, INT_MAX);
- check_i1(ilogbf, nan_value, FP_ILOGBNAN);
-
- printf("Errors: %d\n", errors);
- return errors;
-}
diff --git a/test/math/libm-test-ulps-arc b/test/math/libm-test-ulps-arc
deleted file mode 100644
index 46b2ac5..0000000
--- a/test/math/libm-test-ulps-arc
+++ /dev/null
@@ -1,145 +0,0 @@
-# Begin of automatic generation
-
-# cos
-Test "cos (M_PI_6l * 2.0) == 0.5":
-double: 1
-idouble: 1
-Test "cos (M_PI_6l * 4.0) == -0.5":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-# erf
-Test "erf (0.75) == 0.711155633653515131598937834591410777":
-double: 1
-idouble: 1
-Test "erf (1.25) == 0.922900128256458230136523481197281140":
-double: 1
-idouble: 1
-
-# erfc
-Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
-double: 1
-idouble: 1
-
-# exp
-Test "exp (1) == e":
-double: 1
-idouble: 1
-
-# expm1
-Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
-double: 1
-idouble: 1
-
-# hypot
-Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-
-# lgamma
-Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-# log10
-Test "log10 (0.75) == -0.124938736608299953132449886193870744":
-double: 1
-idouble: 1
-Test "log10 (e) == log10(e)":
-float: 1
-ifloat: 1
-
-# tgamma
-Test "tgamma (-0.5) == -2 sqrt (pi)":
-double: 1
-idouble: 1
-Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-# Maximal error of functions:
-Function: "cos":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: "erf":
-double: 1
-idouble: 1
-
-Function: "erfc":
-double: 1
-idouble: 1
-
-Function: "exp":
-double: 1
-idouble: 1
-
-Function: "expm1":
-double: 1
-idouble: 1
-
-Function: "hypot":
-float: 1
-ifloat: 1
-
-Function: "lgamma":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: "log":
-float: 1
-ifloat: 1
-
-Function: "log10":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "tan":
-double: 1
-idouble: 1
-
-Function: "tgamma":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-# end of automatic generation
diff --git a/test/math/libm-test-ulps-arm b/test/math/libm-test-ulps-arm
deleted file mode 100644
index 8528e81..0000000
--- a/test/math/libm-test-ulps-arm
+++ /dev/null
@@ -1,4989 +0,0 @@
-# Begin of automatic generation
-
-# acos_downward
-Test "acos_downward (-0)":
-float: 1
-ifloat: 1
-Test "acos_downward (-0.5)":
-double: 1
-idouble: 1
-Test "acos_downward (-1)":
-float: 1
-ifloat: 1
-Test "acos_downward (0)":
-float: 1
-ifloat: 1
-Test "acos_downward (0.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-# acos_towardzero
-Test "acos_towardzero (-0)":
-float: 1
-ifloat: 1
-Test "acos_towardzero (-0.5)":
-double: 1
-idouble: 1
-Test "acos_towardzero (-1)":
-float: 1
-ifloat: 1
-Test "acos_towardzero (0)":
-float: 1
-ifloat: 1
-Test "acos_towardzero (0.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-# asin_downward
-Test "asin_downward (-0.5)":
-double: 1
-idouble: 1
-Test "asin_downward (0.5)":
-double: 1
-idouble: 1
-Test "asin_downward (1.0)":
-float: 1
-ifloat: 1
-
-# asin_towardzero
-Test "asin_towardzero (-0.5)":
-double: 1
-idouble: 1
-Test "asin_towardzero (-1.0)":
-float: 1
-ifloat: 1
-Test "asin_towardzero (0.5)":
-double: 1
-idouble: 1
-Test "asin_towardzero (1.0)":
-float: 1
-ifloat: 1
-
-# asin_upward
-Test "asin_upward (-1.0)":
-float: 1
-ifloat: 1
-
-# atan2
-Test "atan2 (-0.75, -1.0)":
-float: 1
-ifloat: 1
-Test "atan2 (-max_value, -min_value)":
-float: 1
-ifloat: 1
-Test "atan2 (0.75, -1.0)":
-float: 1
-ifloat: 1
-Test "atan2 (1.390625, 0.9296875)":
-float: 1
-ifloat: 1
-
-# atanh
-Test "atanh (0.75)":
-float: 1
-ifloat: 1
-
-# cacos
-Test "Imaginary part of: cacos (+0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (+0 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (+0 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (+0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (+0 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (+0 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0.25 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0.25 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0.25 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0.25 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0.5 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0.5 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0.5 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x0.fffffffffffff8p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x0.fffffffffffff8p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (-0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (-0x1.000002p0 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.000002p0 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-10 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x1.fp-10 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0x1.fp-100 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-100 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-100 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-100 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-1000 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x1.fp-1000 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x1.fp-1025 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x1.fp-1025 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x1.fp-1025 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (-0x1.fp-1025 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 + 0x0.ffffffp0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-129 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 + 1.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-129 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 - 0x0.ffffffp0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-129 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-129 - 1.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-129 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0x1.fp-30 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-30 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1.fp-30 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1.fp-30 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-105 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-105 + 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-105 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-105 - 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-112 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-112 + 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-112 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-112 - 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-23 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-23 + 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0x1p-23 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-23 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-23 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-23 - 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (-0x1p-23 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-23 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-52 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-52 + 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-52 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-52 - 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-63 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-63 + 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-63 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-0x1p-63 - 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-1.0 + 0x1p50 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (-1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-1.0 - 0x1p50 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0.25 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0.25 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (0.5 + +0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 0x1p-63 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0.5 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0.5 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 0x1p-63 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0.5 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x0.fffffffffffff8p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x0.fffffffffffff8p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0x0.ffffffp0 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (0x0.ffffffp0 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Real part of: cacos (0x0.ffffffp0 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (0x0.ffffffp0 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Real part of: cacos (0x1.0000000000001p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0x1.0000000000001p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (0x1.000002p0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (0x1.000002p0 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (0x1.000002p0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (0x1.000002p0 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-10 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-10 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-100 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-100 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-1000 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-1000 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-1025 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-1025 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-1025 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-1025 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-129 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-129 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-129 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-129 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp-30 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp-30 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-23 + 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-23 - 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacos (0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (1.0 + 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (1.0 + 0x1.fp-10 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (1.0 - 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacos (1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacos (1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacos (1.0 - 0x1.fp-10 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacos (1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-
-# cacosh
-Test "Real part of: cacosh (+0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (+0 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (+0 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (+0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (+0 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (+0 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (-0 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (-0 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.25 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0.25 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (-0.25 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0.25 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (-0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (-0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0.5 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (-0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x0.fffffffffffff8p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x0.fffffffffffff8p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Real part of: cacosh (-0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Real part of: cacosh (-0x1.000002p0 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.000002p0 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-10 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-10 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-100 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-100 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-100 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-100 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-1000 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-1000 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-1025 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-1025 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-1025 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-1025 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (-0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 0x0.ffffffp0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-129 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-129 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 + 1.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 0x0.ffffffp0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-129 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-129 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (-0x1.fp-129 - 1.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-30 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-30 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1.fp-30 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1.fp-30 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-105 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-105 + 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-105 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-105 - 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-112 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-112 + 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-112 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-112 - 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-23 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-23 + 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (-0x1p-23 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-23 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-23 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-23 - 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (-0x1p-23 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-23 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-52 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-52 + 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-52 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-52 - 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-63 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-63 + 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-63 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-0x1p-63 - 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-1.0 + 0x1p50 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (-1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-1.0 - 0x1p50 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0.25 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0.25 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (0.5 + +0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 0x1p-63 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (0.5 - 0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 0x1p-63 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0.5 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x0.fffffffffffff8p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x0.fffffffffffff8p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0x0.ffffffp0 + 0.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (0x0.ffffffp0 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacosh (0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacosh (0x0.ffffffp0 - 0.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (0x0.ffffffp0 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacosh (0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacosh (0x1.0000000000001p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cacosh (0x1.0000000000001p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.000002p0 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (0x1.000002p0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Real part of: cacosh (0x1.000002p0 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (0x1.000002p0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Real part of: cacosh (0x1.fp-10 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-10 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-100 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-100 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-1000 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-1000 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-1025 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-1025 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-1025 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-1025 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-129 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-129 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-129 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-129 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp-30 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp-30 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-23 + 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-23 - 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (1.0 + 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (1.0 + 0x1.fp-10 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: cacosh (1.0 - 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: cacosh (1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cacosh (1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cacosh (1.0 - 0x1.fp-10 i)":
-float: 2
-ifloat: 2
-
-# casin
-Test "Imaginary part of: casin (+0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (+0 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (+0 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (+0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (+0 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (+0 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.25 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0.25 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0.5 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x0.fffffffffffff8p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x0.fffffffffffff8p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: casin (-0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: casin (-0x1.000002p0 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.000002p0 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (-0x1.fp-10 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-10 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (-0x1.fp-10 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-10 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-100 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-100 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-1000 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-1000 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-1025 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-1025 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-1025 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-1025 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-129 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-129 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-129 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-129 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (-0x1.fp-30 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1.fp-30 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (-0x1p-23 + 0.5 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-23 + 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (-0x1p-23 + 0x1.000002p0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casin (-0x1p-23 - 0.5 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-23 - 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (-0x1p-23 - 0x1.000002p0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (-1.0 + 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (-1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (-1.0 - 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (-1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (-1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0.25 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0.25 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 + 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 + 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 - 0x1p-105 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 - 0x1p-112 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0.5 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (0.75 + 1.25 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x0.fffffffffffff8p0 + 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x0.fffffffffffff8p0 - 0x1p-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x0.ffffffp0 + 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: casin (0x0.ffffffp0 - 0x1p-23 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: casin (0x1.000002p0 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.000002p0 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (0x1.fp-10 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-10 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (0x1.fp-10 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-10 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-100 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-100 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-1000 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-1000 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-1025 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-1025 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-1025 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-1025 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-129 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-129 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-129 + 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-129 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-129 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-129 - 1.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp-30 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp-30 - 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casin (0x1p-105 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-105 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-112 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-112 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (0x1p-23 + 0.5 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-23 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-23 + 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (0x1p-23 + 0x1.000002p0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casin (0x1p-23 - 0.5 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-23 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-23 - 0x0.ffffffp0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (0x1p-23 - 0x1.000002p0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-52 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-52 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-63 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (0x1p-63 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (1.0 + 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (1.0 + 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casin (1.0 - 0.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: casin (1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (1.0 - 0.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casin (1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-
-# casinh
-Test "Imaginary part of: casinh (-0.25 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (-0.25 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0.5 + +0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (-0.5 + 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (-0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (-0.5 - 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (-0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0x0.ffffffp0 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x0.ffffffp0 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (-0x1.000002p0 + 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casinh (-0x1.000002p0 - 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-0x1.fp-10 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0x1.fp-10 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0x1.fp-129 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1.fp-129 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-105 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-105 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-112 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-112 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-23 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-23 + 0x0.ffffffp0 i)":
-float: 2
-ifloat: 2
-Test "Real part of: casinh (-0x1p-23 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0x1p-23 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-23 - 0x0.ffffffp0 i)":
-float: 2
-ifloat: 2
-Test "Real part of: casinh (-0x1p-23 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-0x1p-52 + 0x0.fffffffffffff8p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-0x1p-52 - 0x0.fffffffffffff8p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 + +0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 + 0.25 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 + 0x1.fp-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (-1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 + 0x1.fp-100 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 + 0x1.fp-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 + 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 + 0x1.fp-129 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 + 0x1.fp-30 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 - 0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 - 0.25 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 - 0x1.fp-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (-1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 - 0x1.fp-100 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 - 0x1.fp-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 - 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.0 - 0x1.fp-129 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.0 - 0x1.fp-30 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (-1.5 + +0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.5 + 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.5 - 0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.5 - 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (-1.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (0.25 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (0.25 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0.5 + +0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (0.5 + 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (0.5 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0x1.fp-129 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0x1p-105 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0x1p-112 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0x1p-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (0.5 - 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0x1p-52 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 0x1p-63 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (0.5 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0.75 + 1.25 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: casinh (0.75 + 1.25 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (0x0.ffffffp0 + 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x0.ffffffp0 - 0x1p-23 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (0x1.000002p0 + 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: casinh (0x1.000002p0 - 0x1p-23 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (0x1.fp-10 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0x1.fp-10 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0x1.fp-129 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1.fp-129 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-105 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-105 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-112 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-112 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-23 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-23 + 0x0.ffffffp0 i)":
-float: 2
-ifloat: 2
-Test "Real part of: casinh (0x1p-23 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0x1p-23 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-23 - 0x0.ffffffp0 i)":
-float: 2
-ifloat: 2
-Test "Real part of: casinh (0x1p-23 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (0x1p-52 + 0x0.fffffffffffff8p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (0x1p-52 - 0x0.fffffffffffff8p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 + +0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 + 0.25 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 + 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 + 0x1.fp-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (1.0 + 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 + 0x1.fp-100 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 + 0x1.fp-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 + 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 + 0x1.fp-129 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 + 0x1.fp-30 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 - 0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 - 0.25 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 - 0.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 - 0x1.fp-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: casinh (1.0 - 0x1.fp-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 - 0x1.fp-100 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 - 0x1.fp-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 - 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.0 - 0x1.fp-129 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.0 - 0x1.fp-30 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: casinh (1.5 + +0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.5 + 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.5 + 0x1.fp-129 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.5 - 0 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.5 - 0x1.fp-1025 i)":
-double: 1
-idouble: 1
-Test "Real part of: casinh (1.5 - 0x1.fp-129 i)":
-double: 1
-idouble: 1
-
-# catan
-Test "Imaginary part of: catan (-0x0.fffffffffffff8p0 + 0x1p-27 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x0.ffffffp0 + 0x1p-13 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1.0000000000001p0 - 0x1p-27 i)":
-double: 1
-idouble: 1
-Test "Real part of: catan (-0x1.000002p0 + 0x1p-126 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-0x1.000002p0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-0x1.000002p0 - 0x1p-126 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-0x1.000002p0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1.000002p0 - 0x1p-13 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x1.fp1023 - 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x1.fp127 - 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x1p-1020 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (-0x1p-1020 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: catan (-0x1p-13 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-0x1p-13 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-0x1p-13 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1p-13 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-0x1p-13 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1p-54 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1p-54 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1p-57 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-0x1p-57 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-1.0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (-1.0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (-2 - 3 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x0.fffffffffffff8p0 + 0x1p-27 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x0.ffffffp0 + 0x1p-13 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1.0000000000001p0 - 0x1p-27 i)":
-double: 1
-idouble: 1
-Test "Real part of: catan (0x1.000002p0 + 0x1p-126 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (0x1.000002p0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (0x1.000002p0 - 0x1p-126 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (0x1.000002p0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1.000002p0 - 0x1p-13 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x1.fp1023 - 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x1.fp127 - 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x1p-1020 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catan (0x1p-1020 - 1.0 i)":
-double: 1
-idouble: 1
-Test "Real part of: catan (0x1p-13 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (0x1p-13 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (0x1p-13 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1p-13 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (0x1p-13 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1p-54 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1p-54 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1p-57 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catan (0x1p-57 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (1.0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catan (1.0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-
-# catanh
-Test "Real part of: catanh (-0x1.000002p0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (-0x1.000002p0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-0x1.000002p0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (-0x1.000002p0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (-0x1.fp1023 - 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (-0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (-0x1.fp127 - 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (-0x1p-126 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (-0x1p-126 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-0x1p-13 + 0x1.000002p0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (-0x1p-13 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (-0x1p-13 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-0x1p-13 - 0x1.000002p0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (-0x1p-13 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (-0x1p-13 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-0x1p-27 + 0x1.0000000000001p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (-0x1p-27 - 0x1.0000000000001p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (-1.0 + 0x1p-1020 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (-1.0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-1.0 + 0x1p-54 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-1.0 + 0x1p-57 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-1.0 - 0x1p-1020 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (-1.0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-1.0 - 0x1p-54 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-1.0 - 0x1p-57 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (-2 - 3 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (0x1.000002p0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (0x1.000002p0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (0x1.fp1023 + 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (0x1.fp1023 - 0x1.fp1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (0x1.fp127 + 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (0x1.fp127 - 0x1.fp127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (0x1p-126 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (0x1p-126 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (0x1p-13 + 0x0.ffffffp0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: catanh (0x1p-13 + 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (0x1p-13 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (0x1p-13 - 0x0.ffffffp0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: catanh (0x1p-13 - 0x1.000002p0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: catanh (0x1p-13 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (0x1p-27 + 0x0.fffffffffffff8p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (0x1p-27 - 0x0.fffffffffffff8p0 i)":
-double: 1
-idouble: 1
-Test "Real part of: catanh (1.0 + 0x1p-1020 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (1.0 + 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (1.0 + 0x1p-54 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (1.0 + 0x1p-57 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (1.0 - 0x1p-1020 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: catanh (1.0 - 0x1p-13 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (1.0 - 0x1p-54 i)":
-float: 1
-ifloat: 1
-Test "Real part of: catanh (1.0 - 0x1p-57 i)":
-float: 1
-ifloat: 1
-
-# cbrt
-Test "cbrt (-27.0)":
-double: 1
-idouble: 1
-Test "cbrt (0.75)":
-double: 1
-idouble: 1
-Test "cbrt (0.9921875)":
-double: 1
-idouble: 1
-
-# ccos
-Test "Imaginary part of: ccos (-0.75 + 710.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccos (-0.75 + 89.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccos (-0.75 - 710.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccos (-0.75 - 89.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccos (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Real part of: ccos (0.75 + 1.25 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: ccos (0.75 + 1.25 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccos (0.75 + 710.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccos (0.75 + 89.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccos (0.75 - 710.5 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccos (0.75 - 89.5 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccos (0x1p-1074 + 1440 i)":
-double: 1
-idouble: 1
-
-# ccosh
-Test "Real part of: ccosh (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccosh (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccosh (-710.5 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccosh (-710.5 - 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccosh (-89.5 + 0.75 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccosh (-89.5 - 0.75 i)":
-float: 1
-ifloat: 1
-Test "Real part of: ccosh (0.75 + 1.25 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: ccosh (0.75 + 1.25 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccosh (1440 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccosh (710.5 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccosh (710.5 - 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ccosh (89.5 + 0.75 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ccosh (89.5 - 0.75 i)":
-float: 1
-ifloat: 1
-
-# cexp
-Test "Imaginary part of: cexp (-2.0 - 3.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cexp (-95 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Real part of: cexp (0.75 + 1.25 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cexp (1440 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Real part of: cexp (50 + 0x1p127 i)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "Imaginary part of: cexp (50 + 0x1p127 i)":
-double: 1
-idouble: 1
-Test "Real part of: cexp (500 + 0x1p1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: cexp (709.8125 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: cexp (709.8125 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Real part of: cexp (88.75 + 0.75 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: cexp (88.75 + 0.75 i)":
-float: 2
-ifloat: 2
-
-# clog
-Test "Real part of: clog (-0x1.0000000123456p0 + 0x1.2345678p-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog (-0x1.0000000123456p0 + 0x1.2345678p-30 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog (-0x1.234566p-40 - 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (-0x1.fp+127 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (-0x1.fp+127 - 0x1p-149 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (-0x1p-149 + 0x1.fp+127 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog (-0x1p-149 + 0x1.fp+127 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (-0x1p-149 - 0x1.fp+127 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog (-0x1p-149 - 0x1.fp+127 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x0.ffffffp0 + 0x0.ffffffp-100 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x1.000566p0 + 0x1.234p-10 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x1.fp+127 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x1.fp+127 - 0x1p-149 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x1p-1074 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog (0x1p-147 + 0x1p-147 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x1p-149 + 0x1.fp+127 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (0x1p-149 - 0x1.fp+127 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog (0x2818p-15 + 0x798fp-15 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog (1.0 + 0x1.234566p-10 i)":
-float: 1
-ifloat: 1
-
-# clog10
-Test "Imaginary part of: clog10 (-0 + inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-0 - inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: clog10 (-0x1.0000000123456p0 + 0x1.2345678p-1000 i)":
-double: 2
-idouble: 2
-Test "Imaginary part of: clog10 (-0x1.0000000123456p0 + 0x1.2345678p-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (-0x1.0000000123456p0 + 0x1.2345678p-30 i)":
-double: 2
-idouble: 2
-Test "Imaginary part of: clog10 (-0x1.0000000123456p0 + 0x1.2345678p-30 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-0x1.fp+1023 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-0x1.fp+1023 - 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-0x1.fp+127 + 0x1p-149 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-0x1.fp+127 - 0x1p-149 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-0x1p-1074 + 0x1.fp+1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-0x1p-1074 - 0x1.fp+1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-0x1p-149 + 0x1.fp+127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-0x1p-149 - 0x1.fp+127 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-1.0 + 0x1.234566p-20 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-2 - 3 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-3 + inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-3 - inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-inf + 0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-inf + 1 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-inf + inf i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (-inf - 0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (-inf - 1 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0 + inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0 - inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: clog10 (0x0.fffffffffffff8p0 + 0x0.fffffffffffff8p-1000 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x0.ffffffp0 + 0x0.ffffffp-100 i)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "Real part of: clog10 (0x1.000566p0 + 0x1.234p-10 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1.000566p0 + 0x1.234p-10 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x1.000566p0 + 0x1.234p-100 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1.234566p-30 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1.234566p-50 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1.234566p-60 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1.fffffep+127 + 0x1.fffffep+127 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: clog10 (0x1.fffffep+127 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1.fffffffffffffp+1023 + 0x1.fffffffffffffp+1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x10673dd0f2481p-51 + 0x7ef1d17cefbd2p-51 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x1367a310575591p-54 + 0x3cfcc0a0541f60p-54 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1367a310575591p-54 + 0x3cfcc0a0541f60p-54 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x164c74eea876p-45 + 0x16f393482f77p-45 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1a6p-10 + 0x3a5p-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-1073 + 0x1p-1073 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-1074 + 0x1.fp+1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x1p-1074 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-1074 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-1074 - 0x1.fp+1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-147 + 0x1p-147 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1p-149 + 0x1.fp+127 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1p-149 + 0x1p-149 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1p-149 - 0x1.fp+127 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1p-509 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-510 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-511 + 1.0 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x1p-61 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1p-62 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x1p-63 + 1.0 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: clog10 (0x2818p-15 + 0x798fp-15 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x2818p-15 + 0x798fp-15 i)":
-float: 1
-ifloat: 1
-Test "Real part of: clog10 (0x2dd46725bp-35 + 0x7783a1284p-35 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x2ede88p-23 + 0x771c3fp-23 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (0x2ede88p-23 + 0x771c3fp-23 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0x4447d7175p-35 + 0x6c445e00ap-35 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x5b06b680ea2ccp-52 + 0xef452b965da9fp-52 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0x9b57bp-20 + 0xcb7b4p-20 i)":
-double: 1
-idouble: 1
-Test "Real part of: clog10 (0xf2p-10 + 0x3e3p-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0xf2p-10 + 0x3e3p-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (0xfe961079616p-45 + 0x1bc37e09e6d1p-45 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (1.0 + 0x1.234566p-10 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: clog10 (3 + inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (3 - inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (inf + inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: clog10 (inf - inf i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-# cos
-Test "cos (0x1p+120)":
-float: 1
-ifloat: 1
-Test "cos (0x1p+127)":
-float: 1
-ifloat: 1
-Test "cos (M_PI_6l * 2.0) == 0.5":
-double: 1
-idouble: 1
-ifloat: 1
-Test "cos (M_PI_6l * 4.0) == -0.5":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-# cos_downward
-Test "cos_downward (1)":
-float: 1
-ifloat: 1
-Test "cos_downward (2)":
-float: 1
-ifloat: 1
-Test "cos_downward (3)":
-float: 1
-ifloat: 1
-Test "cos_downward (4)":
-float: 1
-ifloat: 1
-Test "cos_downward (5)":
-float: 1
-ifloat: 1
-Test "cos_downward (7)":
-float: 1
-ifloat: 1
-Test "cos_downward (8)":
-float: 1
-ifloat: 1
-
-# cos_tonearest
-Test "cos_tonearest (7)":
-float: 1
-ifloat: 1
-
-# cos_towardzero
-Test "cos_towardzero (2)":
-float: 1
-ifloat: 1
-Test "cos_towardzero (3)":
-float: 1
-ifloat: 1
-Test "cos_towardzero (5)":
-float: 1
-ifloat: 1
-Test "cos_towardzero (7)":
-float: 1
-ifloat: 1
-Test "cos_towardzero (8)":
-float: 1
-ifloat: 1
-
-# cos_upward
-Test "cos_upward (10)":
-float: 1
-ifloat: 1
-Test "cos_upward (6)":
-float: 1
-ifloat: 1
-Test "cos_upward (7)":
-float: 1
-ifloat: 1
-Test "cos_upward (9)":
-float: 2
-ifloat: 2
-
-# cosh_downward
-Test "cosh_downward (22)":
-float: 1
-ifloat: 1
-Test "cosh_downward (23)":
-float: 1
-ifloat: 1
-Test "cosh_downward (24)":
-float: 1
-ifloat: 1
-
-# cosh_towardzero
-Test "cosh_towardzero (22)":
-float: 1
-ifloat: 1
-Test "cosh_towardzero (23)":
-float: 1
-ifloat: 1
-Test "cosh_towardzero (24)":
-float: 1
-ifloat: 1
-
-# cpow
-Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i)":
-double: 1
-float: 4
-idouble: 1
-ifloat: 4
-Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i)":
-double: 2
-float: 3
-idouble: 2
-ifloat: 3
-Test "Real part of: cpow (2 + 3 i, 4 + 0 i)":
-double: 1
-float: 4
-idouble: 1
-ifloat: 4
-Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i)":
-float: 2
-ifloat: 2
-
-# csin
-Test "Real part of: csin (-0.75 + 710.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: csin (-0.75 + 89.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csin (-0.75 - 710.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: csin (-0.75 - 89.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csin (0.75 + 710.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: csin (0.75 + 89.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csin (0.75 - 710.5 i)":
-double: 1
-idouble: 1
-Test "Real part of: csin (0.75 - 89.5 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csin (0x1p-1074 + 1440 i)":
-double: 1
-idouble: 1
-
-# csinh
-Test "Imaginary part of: csinh (-2 - 3 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csinh (-710.5 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csinh (-710.5 - 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csinh (-89.5 + 0.75 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: csinh (-89.5 - 0.75 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csinh (0.75 + 1.25 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: csinh (0.75 + 1.25 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: csinh (1440 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csinh (710.5 + 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csinh (710.5 - 0.75 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csinh (89.5 + 0.75 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: csinh (89.5 - 0.75 i)":
-float: 1
-ifloat: 1
-
-# csqrt
-Test "Real part of: csqrt (-0x1.000002p-126 - 0x1.000002p-126 i)":
-double: 1
-idouble: 1
-Test "Real part of: csqrt (-2 + 3 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csqrt (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: csqrt (0x1.000002p-126 + 0x1.000002p-126 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csqrt (0x1.fffffep+127 + 1.0 i)":
-float: 1
-ifloat: 1
-Test "Real part of: csqrt (0x1.fffffffffffffp+1023 + 0x1.fffffffffffffp+1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csqrt (0x1.fffffffffffffp+1023 + 0x1.fffffffffffffp+1023 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: csqrt (0x1.fffffffffffffp+1023 + 0x1p+1023 i)":
-double: 1
-idouble: 1
-
-# ctan
-Test "Real part of: ctan (-2 - 3 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctan (-2 - 3 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ctan (0.75 + 1.25 i)":
-double: 1
-idouble: 1
-Test "Real part of: ctan (0x1p1023 + 1 i)":
-double: 1
-idouble: 1
-Test "Imaginary part of: ctan (0x1p127 + 1 i)":
-double: 1
-idouble: 1
-Test "Real part of: ctan (0x3.243f6cp-1 + 0 i)":
-float: 1
-ifloat: 1
-
-# ctan_downward
-Test "Real part of: ctan_downward (0x1.921fb6p+0 + 0x1p-149 i)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "Imaginary part of: ctan_downward (0x1.921fb6p+0 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-
-# ctan_tonearest
-Test "Real part of: ctan_tonearest (0x1.921fb6p+0 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctan_tonearest (0x1.921fb6p+0 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-
-# ctan_towardzero
-Test "Real part of: ctan_towardzero (0x1.921fb6p+0 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctan_towardzero (0x1.921fb6p+0 + 0x1p-149 i)":
-float: 1
-ifloat: 1
-
-# ctan_upward
-Test "Real part of: ctan_upward (0x1.921fb54442d18p+0 + 0x1p-1074 i)":
-double: 1
-idouble: 1
-Test "Real part of: ctan_upward (0x1.921fb6p+0 + 0x1p-149 i)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "Imaginary part of: ctan_upward (0x1.921fb6p+0 + 0x1p-149 i)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-# ctanh
-Test "Real part of: ctanh (-2 - 3 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: ctanh (-2 - 3 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: ctanh (0 + 0x3.243f6cp-1 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctanh (0 + pi/4 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Real part of: ctanh (0.75 + 1.25 i)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "Imaginary part of: ctanh (0.75 + 1.25 i)":
-float: 2
-ifloat: 2
-Test "Imaginary part of: ctanh (1 + 0x1p1023 i)":
-double: 1
-idouble: 1
-Test "Real part of: ctanh (1 + 0x1p127 i)":
-double: 1
-idouble: 1
-
-# ctanh_downward
-Test "Real part of: ctanh_downward (0x1p-149 + 0x1.921fb6p+0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctanh_downward (0x1p-149 + 0x1.921fb6p+0 i)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-# ctanh_tonearest
-Test "Real part of: ctanh_tonearest (0x1p-149 + 0x1.921fb6p+0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctanh_tonearest (0x1p-149 + 0x1.921fb6p+0 i)":
-float: 1
-ifloat: 1
-
-# ctanh_towardzero
-Test "Real part of: ctanh_towardzero (0x1p-149 + 0x1.921fb6p+0 i)":
-float: 1
-ifloat: 1
-Test "Imaginary part of: ctanh_towardzero (0x1p-149 + 0x1.921fb6p+0 i)":
-float: 1
-ifloat: 1
-
-# ctanh_upward
-Test "Imaginary part of: ctanh_upward (0x1p-1074 + 0x1.921fb54442d18p+0 i)":
-double: 1
-idouble: 1
-Test "Real part of: ctanh_upward (0x1p-149 + 0x1.921fb6p+0 i)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "Imaginary part of: ctanh_upward (0x1p-149 + 0x1.921fb6p+0 i)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-# erf
-Test "erf (0.75) == 0.711155633653515131598937834591410777":
-double: 1
-idouble: 1
-Test "erf (1.25) == 0.922900128256458230136523481197281140":
-double: 1
-idouble: 1
-
-# erfc
-Test "erfc (0x1.f7303cp+1)":
-double: 1
-idouble: 1
-Test "erfc (0x1.ffa002p+2)":
-float: 1
-ifloat: 1
-Test "erfc (2.0)":
-double: 1
-idouble: 1
-Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8":
-double: 1
-idouble: 1
-
-# exp
-Test "exp (1) == e":
-double: 1
-idouble: 1
-
-# exp10
-Test "exp10 (-1)":
-double: 1
-idouble: 1
-Test "exp10 (-305)":
-double: 1
-idouble: 1
-Test "exp10 (-36)":
-double: 1
-idouble: 1
-Test "exp10 (3)":
-double: 1
-idouble: 1
-Test "exp10 (36)":
-double: 1
-idouble: 1
-
-# exp_downward
-Test "exp_downward (2)":
-float: 1
-ifloat: 1
-Test "exp_downward (3)":
-float: 1
-ifloat: 1
-
-# exp_towardzero
-Test "exp_towardzero (2)":
-float: 1
-ifloat: 1
-Test "exp_towardzero (3)":
-float: 1
-ifloat: 1
-
-# exp_upward
-Test "exp_upward (1)":
-float: 1
-ifloat: 1
-
-# expm1
-Test "expm1 (0.75) == 1.11700001661267466854536981983709561":
-double: 1
-idouble: 1
-Test "expm1 (1)":
-float: 1
-ifloat: 1
-Test "expm1 (500.0)":
-double: 1
-idouble: 1
-
-# gamma
-Test "gamma (0.7)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "gamma (1.2)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-# hypot
-Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271":
-float: 1
-ifloat: 1
-
-# j0
-Test "j0 (-4.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "j0 (0.75)":
-float: 1
-ifloat: 1
-Test "j0 (0x1.d7ce3ap+107)":
-float: 2
-ifloat: 2
-Test "j0 (10.0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "j0 (2.0)":
-float: 2
-ifloat: 2
-Test "j0 (4.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "j0 (8.0)":
-float: 1
-ifloat: 1
-
-# j1
-Test "j1 (0x1.3ffp+74)":
-double: 1
-idouble: 1
-Test "j1 (0x1.ff00000000002p+840)":
-double: 1
-idouble: 1
-Test "j1 (10.0)":
-float: 2
-ifloat: 2
-Test "j1 (2.0)":
-double: 1
-idouble: 1
-Test "j1 (8.0)":
-double: 1
-idouble: 1
-
-# jn
-Test "jn (0, -4.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "jn (0, 0.75)":
-float: 1
-ifloat: 1
-Test "jn (0, 10.0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "jn (0, 2.0)":
-float: 2
-ifloat: 2
-Test "jn (0, 4.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "jn (0, 8.0)":
-float: 1
-ifloat: 1
-Test "jn (1, 10.0)":
-float: 2
-ifloat: 2
-Test "jn (1, 2.0)":
-double: 1
-idouble: 1
-Test "jn (1, 8.0)":
-double: 1
-idouble: 1
-Test "jn (10, 0.125)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "jn (10, 0.75)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "jn (10, 10.0)":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-Test "jn (10, 2.0)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "jn (2, 0x1.ffff62p+99)":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-Test "jn (2, 2.4048255576957729)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "jn (3, 0.125)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "jn (3, 0.75)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "jn (3, 10.0)":
-double: 3
-float: 1
-idouble: 3
-ifloat: 1
-Test "jn (3, 2.0)":
-float: 1
-ifloat: 1
-Test "jn (3, 2.4048255576957729)":
-double: 3
-idouble: 3
-Test "jn (4, 2.4048255576957729)":
-double: 1
-idouble: 1
-Test "jn (5, 2.4048255576957729)":
-double: 3
-float: 1
-idouble: 3
-ifloat: 1
-Test "jn (6, 2.4048255576957729)":
-double: 4
-float: 3
-idouble: 4
-ifloat: 3
-Test "jn (7, 2.4048255576957729)":
-double: 3
-float: 5
-idouble: 3
-ifloat: 5
-Test "jn (8, 2.4048255576957729)":
-double: 3
-float: 2
-idouble: 3
-ifloat: 2
-Test "jn (9, 2.4048255576957729)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-# lgamma
-Test "lgamma (0.7) == 0.260867246531666514385732417016759578":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-# log10
-Test "log10 (0.75) == -0.124938736608299953132449886193870744":
-double: 1
-idouble: 1
-Test "log10 (e) == log10(e)":
-float: 1
-ifloat: 1
-
-# log1p
-Test "log1p (-0.25)":
-float: 1
-ifloat: 1
-
-# pow
-Test "pow (0x0.ffffffp0, -0x1p24)":
-float: 1
-ifloat: 1
-Test "pow (0x0.ffffffp0, 0x1p24)":
-float: 1
-ifloat: 1
-Test "pow (0x1.000002p0, 0x1p24)":
-float: 1
-ifloat: 1
-
-# pow10
-Test "pow10 (-1)":
-double: 1
-idouble: 1
-Test "pow10 (-305)":
-double: 1
-idouble: 1
-Test "pow10 (-36)":
-double: 1
-idouble: 1
-Test "pow10 (3)":
-double: 1
-idouble: 1
-Test "pow10 (36)":
-double: 1
-idouble: 1
-
-# pow_downward
-Test "pow_downward (1.5, 1.03125)":
-float: 1
-ifloat: 1
-
-# pow_towardzero
-Test "pow_towardzero (1.5, 1.03125)":
-float: 1
-ifloat: 1
-
-# pow_upward
-Test "pow_upward (1.0625, 1.125)":
-float: 1
-ifloat: 1
-
-# sin_downward
-Test "sin_downward (10)":
-float: 1
-ifloat: 1
-Test "sin_downward (3)":
-float: 1
-ifloat: 1
-Test "sin_downward (5)":
-float: 1
-ifloat: 1
-Test "sin_downward (6)":
-float: 1
-ifloat: 1
-
-# sin_tonearest
-Test "sin_tonearest (1)":
-float: 1
-ifloat: 1
-
-# sin_towardzero
-Test "sin_towardzero (1)":
-float: 1
-ifloat: 1
-Test "sin_towardzero (10)":
-float: 1
-ifloat: 1
-Test "sin_towardzero (4)":
-float: 1
-ifloat: 1
-Test "sin_towardzero (5)":
-float: 1
-ifloat: 1
-Test "sin_towardzero (9)":
-float: 1
-ifloat: 1
-
-# sin_upward
-Test "sin_upward (1)":
-float: 1
-ifloat: 1
-Test "sin_upward (2)":
-float: 2
-ifloat: 2
-Test "sin_upward (4)":
-float: 1
-ifloat: 1
-Test "sin_upward (9)":
-float: 1
-ifloat: 1
-
-# sincos
-Test "sincos (0x1p+120) extra output 2":
-float: 1
-ifloat: 1
-Test "sincos (0x1p+127) extra output 2":
-float: 1
-ifloat: 1
-Test "sincos (M_PI_6l*2.0) extra output 1":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "sincos (M_PI_6l*2.0) extra output 2":
-double: 1
-idouble: 1
-Test "sincos (pi/6) extra output 2":
-float: 1
-ifloat: 1
-
-# sinh_downward
-Test "sinh_downward (22)":
-float: 1
-ifloat: 1
-Test "sinh_downward (23)":
-float: 1
-ifloat: 1
-Test "sinh_downward (24)":
-float: 1
-ifloat: 1
-
-# sinh_towardzero
-Test "sinh_towardzero (22)":
-float: 1
-ifloat: 1
-Test "sinh_towardzero (23)":
-float: 1
-ifloat: 1
-Test "sinh_towardzero (24)":
-float: 1
-ifloat: 1
-
-# tan_downward
-Test "tan_downward (1)":
-float: 1
-ifloat: 1
-Test "tan_downward (10)":
-float: 1
-ifloat: 1
-Test "tan_downward (2)":
-float: 1
-ifloat: 1
-Test "tan_downward (6)":
-float: 1
-ifloat: 1
-Test "tan_downward (8)":
-float: 1
-ifloat: 1
-Test "tan_downward (9)":
-float: 1
-ifloat: 1
-
-# tan_towardzero
-Test "tan_towardzero (10)":
-float: 1
-ifloat: 1
-Test "tan_towardzero (3)":
-float: 1
-ifloat: 1
-Test "tan_towardzero (4)":
-float: 1
-ifloat: 1
-Test "tan_towardzero (5)":
-float: 1
-ifloat: 1
-Test "tan_towardzero (9)":
-float: 1
-ifloat: 1
-
-# tan_upward
-Test "tan_upward (1)":
-float: 1
-ifloat: 1
-Test "tan_upward (10)":
-float: 1
-ifloat: 1
-Test "tan_upward (3)":
-float: 1
-ifloat: 1
-Test "tan_upward (5)":
-float: 1
-ifloat: 1
-
-# tgamma
-Test "tgamma (-0.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0.5) == -2 sqrt (pi)":
-double: 1
-idouble: 1
-Test "tgamma (-0x0.fffffffffffff8p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x0.ffffffp0)":
-float: 1
-ifloat: 1
-Test "tgamma (-0x1.000002p0)":
-double: 2
-idouble: 2
-Test "tgamma (-0x1.0a32a2p+5)":
-float: 2
-ifloat: 2
-Test "tgamma (-0x13.ffffep0)":
-float: 2
-ifloat: 2
-Test "tgamma (-0x14.000000000001p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x14.00002p0)":
-float: 1
-ifloat: 1
-Test "tgamma (-0x1d.ffffep0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0x1e.000000000001p0)":
-double: 3
-idouble: 3
-Test "tgamma (-0x1e.00002p0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0x2.0000000000002p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x2.000004p0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "tgamma (-0x2.fffffcp0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0x27.fffffffffffep0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x28.000000000002p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x28.00004p0)":
-double: 2
-idouble: 2
-Test "tgamma (-0x29.00004p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x29.ffffcp0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x3.000004p0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "tgamma (-0x3.fffffcp0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0x3.ffffffffffffep0)":
-double: 2
-idouble: 2
-Test "tgamma (-0x31.fffffffffffep0)":
-double: 3
-idouble: 3
-Test "tgamma (-0x4.000008p0)":
-float: 1
-ifloat: 1
-Test "tgamma (-0x4.fffff8p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x4.ffffffffffffcp0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x5.000008p0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0x5.ffffffffffffcp0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x6.000008p0)":
-float: 2
-ifloat: 2
-Test "tgamma (-0x6.fffff8p0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "tgamma (-0x6.ffffffffffffcp0)":
-double: 4
-idouble: 4
-Test "tgamma (-0x63.fffffffffffcp0)":
-double: 2
-idouble: 2
-Test "tgamma (-0x64.000000000004p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x7.0000000000004p0)":
-double: 3
-idouble: 3
-Test "tgamma (-0x7.000008p0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-0x7.fffff8p0)":
-double: 3
-float: 1
-idouble: 3
-ifloat: 1
-Test "tgamma (-0x7.ffffffffffffcp0)":
-double: 3
-idouble: 3
-Test "tgamma (-0x8.00001p0)":
-double: 2
-idouble: 2
-Test "tgamma (-0x9.ffffffffffff8p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0x9.fffffp0)":
-float: 1
-ifloat: 1
-Test "tgamma (-0x96.000000000008p0)":
-double: 1
-idouble: 1
-Test "tgamma (-0xa.00001p0)":
-double: 1
-idouble: 1
-Test "tgamma (-2.5)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "tgamma (-3.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-4.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-5.5)":
-double: 1
-idouble: 1
-Test "tgamma (-6.5)":
-float: 1
-ifloat: 1
-Test "tgamma (-7.5)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "tgamma (-8.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (-9.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (0.5)":
-float: 1
-ifloat: 1
-Test "tgamma (0.7)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (0.7) == 1.29805533264755778568117117915281162":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (0x1.fffffep0)":
-float: 1
-ifloat: 1
-Test "tgamma (0x1.fffffffffffffp0)":
-double: 1
-idouble: 1
-Test "tgamma (0x1p-24)":
-float: 1
-ifloat: 1
-Test "tgamma (0x1p-53)":
-double: 1
-idouble: 1
-Test "tgamma (0x2.30a43cp+4)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "tgamma (0x2.fffffcp0)":
-float: 3
-ifloat: 3
-Test "tgamma (0x3.fffffcp0)":
-float: 1
-ifloat: 1
-Test "tgamma (0x3.ffffffffffffep0)":
-double: 1
-idouble: 1
-Test "tgamma (0x4.0000000000004p0)":
-double: 1
-idouble: 1
-Test "tgamma (0x4.ffffffffffffcp0)":
-double: 1
-idouble: 1
-Test "tgamma (0x5.0000000000004p0)":
-double: 1
-idouble: 1
-Test "tgamma (0x5.000008p0)":
-float: 2
-ifloat: 2
-Test "tgamma (0x5.fffff8p0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (0x6.0000000000004p0)":
-double: 1
-idouble: 1
-Test "tgamma (0x6.000008p0)":
-float: 2
-ifloat: 2
-Test "tgamma (0x6.fffff8p0)":
-double: 1
-idouble: 1
-Test "tgamma (0x6.ffffffffffffcp0)":
-double: 4
-idouble: 4
-Test "tgamma (0x7.0000000000004p0)":
-double: 4
-idouble: 4
-Test "tgamma (0x7.000008p0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (0x7.fffff8p0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "tgamma (0x7.ffffffffffffcp0)":
-double: 2
-idouble: 2
-Test "tgamma (0x8.00001p0)":
-double: 2
-idouble: 2
-Test "tgamma (0xa.b9fd72b0fb238p+4)":
-double: 1
-idouble: 1
-Test "tgamma (10)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (18.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (19.5)":
-double: 2
-idouble: 2
-Test "tgamma (2.5)":
-float: 2
-ifloat: 2
-Test "tgamma (23.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (29.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (3)":
-float: 1
-ifloat: 1
-Test "tgamma (3.5)":
-float: 2
-ifloat: 2
-Test "tgamma (30.5)":
-float: 1
-ifloat: 1
-Test "tgamma (33.5)":
-float: 1
-ifloat: 1
-Test "tgamma (34.5)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "tgamma (4)":
-float: 1
-ifloat: 1
-Test "tgamma (4.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (6)":
-float: 1
-ifloat: 1
-Test "tgamma (6.5)":
-float: 1
-ifloat: 1
-Test "tgamma (7)":
-double: 1
-idouble: 1
-Test "tgamma (7.5)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "tgamma (8)":
-double: 1
-idouble: 1
-Test "tgamma (8.5)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "tgamma (9)":
-double: 1
-idouble: 1
-Test "tgamma (9.5)":
-double: 1
-idouble: 1
-
-# y0
-Test "y0 (0x1.3ffp+74)":
-double: 1
-idouble: 1
-Test "y0 (0x1.ff00000000002p+840)":
-double: 1
-idouble: 1
-Test "y0 (0x1p-10)":
-double: 1
-idouble: 1
-Test "y0 (0x1p-110)":
-double: 1
-idouble: 1
-Test "y0 (0x1p-20)":
-float: 1
-ifloat: 1
-Test "y0 (0x1p-30)":
-float: 1
-ifloat: 1
-Test "y0 (0x1p-40)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "y0 (0x1p-50)":
-float: 1
-ifloat: 1
-Test "y0 (0x1p-70)":
-double: 1
-idouble: 1
-Test "y0 (0x1p-80)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "y0 (1.0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "y0 (1.5)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "y0 (10.0)":
-float: 1
-ifloat: 1
-Test "y0 (8.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-# y1
-Test "y1 (0.125)":
-double: 1
-idouble: 1
-Test "y1 (0x1.27e204p+99)":
-double: 1
-idouble: 1
-Test "y1 (0x1p-10)":
-double: 1
-idouble: 1
-Test "y1 (1.5)":
-float: 1
-ifloat: 1
-Test "y1 (10.0)":
-double: 3
-float: 1
-idouble: 3
-ifloat: 1
-Test "y1 (2.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "y1 (8.0)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-# yn
-Test "yn (0, 1.0)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "yn (0, 1.5)":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-Test "yn (0, 10.0)":
-float: 1
-ifloat: 1
-Test "yn (0, 8.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "yn (1, 0.125)":
-double: 1
-idouble: 1
-Test "yn (1, 1.5)":
-float: 1
-ifloat: 1
-Test "yn (1, 10.0)":
-double: 3
-float: 1
-idouble: 3
-ifloat: 1
-Test "yn (1, 2.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "yn (1, 8.0)":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-Test "yn (10, 0.125)":
-double: 1
-idouble: 1
-Test "yn (10, 0.75)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "yn (10, 1.0)":
-double: 1
-idouble: 1
-Test "yn (10, 10.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "yn (10, 2.0)":
-double: 2
-idouble: 2
-Test "yn (3, 0.125)":
-double: 1
-idouble: 1
-Test "yn (3, 0.75)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "yn (3, 10.0)":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-Test "yn (3, 2.0)":
-double: 1
-idouble: 1
-
-# Maximal error of functions:
-Function: "acos_downward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "acos_towardzero":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "asin_downward":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "asin_towardzero":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "asin_upward":
-float: 1
-ifloat: 1
-
-Function: "atan2":
-float: 1
-ifloat: 1
-
-Function: "atanh":
-float: 1
-ifloat: 1
-
-Function: Real part of "cacos":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Imaginary part of "cacos":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Real part of "cacosh":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Imaginary part of "cacosh":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Real part of "casin":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "casin":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Real part of "casinh":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Imaginary part of "casinh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "catan":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "catan":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "catanh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "catanh":
-float: 1
-ifloat: 1
-
-Function: "cbrt":
-double: 1
-idouble: 1
-
-Function: Real part of "ccos":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "ccos":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "ccosh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "ccosh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "cexp":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: Imaginary part of "cexp":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Real part of "clog":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "clog":
-float: 1
-ifloat: 1
-
-Function: Real part of "clog10":
-double: 2
-float: 2
-idouble: 2
-ifloat: 2
-
-Function: Imaginary part of "clog10":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "cos":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: "cos_downward":
-float: 1
-ifloat: 1
-
-Function: "cos_tonearest":
-float: 1
-ifloat: 1
-
-Function: "cos_towardzero":
-float: 1
-ifloat: 1
-
-Function: "cos_upward":
-float: 2
-ifloat: 2
-
-Function: "cosh_downward":
-float: 1
-ifloat: 1
-
-Function: "cosh_towardzero":
-float: 1
-ifloat: 1
-
-Function: Real part of "cpow":
-double: 2
-float: 4
-idouble: 2
-ifloat: 4
-
-Function: Imaginary part of "cpow":
-float: 2
-ifloat: 2
-
-Function: Real part of "csin":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "csinh":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "csinh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "csqrt":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "csqrt":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Real part of "ctan":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "ctan":
-double: 1
-idouble: 1
-
-Function: Real part of "ctan_downward":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: Imaginary part of "ctan_downward":
-float: 1
-ifloat: 1
-
-Function: Real part of "ctan_tonearest":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "ctan_tonearest":
-float: 1
-ifloat: 1
-
-Function: Real part of "ctan_towardzero":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "ctan_towardzero":
-float: 1
-ifloat: 1
-
-Function: Real part of "ctan_upward":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: Imaginary part of "ctan_upward":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Real part of "ctanh":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: Imaginary part of "ctanh":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Real part of "ctanh_downward":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "ctanh_downward":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: Real part of "ctanh_tonearest":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "ctanh_tonearest":
-float: 1
-ifloat: 1
-
-Function: Real part of "ctanh_towardzero":
-float: 1
-ifloat: 1
-
-Function: Imaginary part of "ctanh_towardzero":
-float: 1
-ifloat: 1
-
-Function: Real part of "ctanh_upward":
-double: 1
-float: 2
-idouble: 1
-ifloat: 2
-
-Function: Imaginary part of "ctanh_upward":
-double: 2
-float: 1
-idouble: 2
-ifloat: 1
-
-Function: "erf":
-double: 1
-idouble: 1
-
-Function: "erfc":
-double: 1
-float: 1
-idouble: 1
-ifloat: 1
-
-Function: "exp":
-double: 1
-idouble: 1
-