]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r290532,r290561,r290843,r290844,r290845:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 23 Nov 2015 08:31:41 +0000 (08:31 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 23 Nov 2015 08:31:41 +0000 (08:31 +0000)
commit66908e592a47e3d371cffeb8647620b590912504
tree0f041c18c2452bf663153c190277220b23158463
parenta25baf78d7a9d2b01d78488493a516e837f445bf
MFC r290532,r290561,r290843,r290844,r290845:

r290532:

Integrate tools/regression/lib/libc/locale into the FreeBSD test suite
as lib/libc/tests/locale

Sponsored by: EMC / Isilon Storage Division

r290561:

Delete leftover printfs from when these were TAP tests

Sponsored by: EMC / Isilon Storage Division

r290843:

Polish up the tests a bit more after projects/collation was merged to head

Provide more meaningful diagnostic messages if LC_CTYPE can't be set properly
instead of segfaulting, because setlocale returns NULL and strcmp(NULL, b) will
always segfault

Split up the testcases so one failing (in this case en_US.ISO8859-15) won't
cause the rest of the testcases to be skipped

Remove some unused variables

Sponsored by: EMC / Isilon Storage Division

r290844:

Polish up iswctype_test

- Split up the testcases into C locale and ja_JP.eucJP testcases.
- Avoid a segfault in the event that setlocale fails, similar to r290843
- Replace `sizeof(x) / sizeof(*x)` pattern with `nitems(x)`

Sponsored by: EMC / Isilon Storage Division

r290845:

Remove unused variables; sort by alignment where needed

Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@291178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
35 files changed:
lib/libc/tests/locale/Makefile
lib/libc/tests/locale/btowc_test.c [moved from tools/regression/lib/libc/locale/test-btowc.c with 75% similarity]
lib/libc/tests/locale/c16rtomb_test.c [moved from tools/regression/lib/libc/locale/test-c16rtomb.c with 53% similarity]
lib/libc/tests/locale/iswctype_test.c [moved from tools/regression/lib/libc/locale/test-iswctype.c with 56% similarity]
lib/libc/tests/locale/mblen_test.c [moved from tools/regression/lib/libc/locale/test-mblen.c with 76% similarity]
lib/libc/tests/locale/mbrlen_test.c [moved from tools/regression/lib/libc/locale/test-mbrlen.c with 73% similarity]
lib/libc/tests/locale/mbrtoc16_test.c [new file with mode: 0644]
lib/libc/tests/locale/mbrtowc_test.c [moved from tools/regression/lib/libc/locale/test-mbrtowc.c with 66% similarity]
lib/libc/tests/locale/mbsnrtowcs_test.c [moved from tools/regression/lib/libc/locale/test-mbsnrtowcs.c with 66% similarity]
lib/libc/tests/locale/mbsrtowcs_test.c [moved from tools/regression/lib/libc/locale/test-mbsrtowcs.c with 71% similarity]
lib/libc/tests/locale/mbstowcs_test.c [moved from tools/regression/lib/libc/locale/test-mbstowcs.c with 73% similarity]
lib/libc/tests/locale/mbtowc_test.c [moved from tools/regression/lib/libc/locale/test-mbtowc.c with 69% similarity]
lib/libc/tests/locale/towctrans_test.c [moved from tools/regression/lib/libc/locale/test-towctrans.c with 79% similarity]
lib/libc/tests/locale/wcrtomb_test.c [moved from tools/regression/lib/libc/locale/test-wcrtomb.c with 69% similarity]
lib/libc/tests/locale/wcsnrtombs_test.c [moved from tools/regression/lib/libc/locale/test-wcsnrtombs.c with 67% similarity]
lib/libc/tests/locale/wcsrtombs_test.c [moved from tools/regression/lib/libc/locale/test-wcsrtombs.c with 71% similarity]
lib/libc/tests/locale/wcstombs_test.c [moved from tools/regression/lib/libc/locale/test-wcstombs.c with 72% similarity]
lib/libc/tests/locale/wctomb_test.c [moved from tools/regression/lib/libc/locale/test-wctomb.c with 71% similarity]
tools/regression/lib/libc/locale/Makefile [deleted file]
tools/regression/lib/libc/locale/test-btowc.t [deleted file]
tools/regression/lib/libc/locale/test-iswctype.t [deleted file]
tools/regression/lib/libc/locale/test-mblen.t [deleted file]
tools/regression/lib/libc/locale/test-mbrlen.t [deleted file]
tools/regression/lib/libc/locale/test-mbrtoc16.c [deleted file]
tools/regression/lib/libc/locale/test-mbrtowc.t [deleted file]
tools/regression/lib/libc/locale/test-mbsnrtowcs.t [deleted file]
tools/regression/lib/libc/locale/test-mbsrtowcs.t [deleted file]
tools/regression/lib/libc/locale/test-mbstowcs.t [deleted file]
tools/regression/lib/libc/locale/test-mbtowc.t [deleted file]
tools/regression/lib/libc/locale/test-towctrans.t [deleted file]
tools/regression/lib/libc/locale/test-wcrtomb.t [deleted file]
tools/regression/lib/libc/locale/test-wcsnrtombs.t [deleted file]
tools/regression/lib/libc/locale/test-wcsrtombs.t [deleted file]
tools/regression/lib/libc/locale/test-wcstombs.t [deleted file]
tools/regression/lib/libc/locale/test-wctomb.t [deleted file]