regression testing fail in 5.0-Current [locale]

Tim Robbins tjr at FreeBSD.ORG
Thu Apr 10 01:59:06 PDT 2003


On Thu, Apr 10, 2003 at 03:39:59PM +0800, Dung Patrick wrote:

> Dear All,
> 
> When I run make in /usr/src/tools/regression/lib/libc/locale, I see this:
> 
> bash-2.05b# make
> for p in test-mbrtowc    test-wcrtomb    test-mbsrtowcs  test-wcsrtombs  test-btowc      test-mbrlen     test-mbtowc     test-wctomb       test-mbstowcs   test-wcstombs   test-mblen; do /usr/src/tools/regression/lib/libc/locale/$p; done
> PASS mbrtowc()
> Assertion failed: (wcrtomb(NULL, UCHAR_MAX + 1, NULL) == 1), function main, file test-wcrtomb.c, line 65.
> Abort trap (core dumped)
> *** Error code 134
> 
> Stop in /usr/src/tools/regression/lib/libc/locale.

Looks like I forgot to merge the fix for this bug when I merged the regression
test for it from my local repo. In any case, the test is right and 5.0-R
and -current have a bug in their wcrtomb() implementations when s == NULL and
wc is an illegal wide character. I'll commit the fix for this shortly, thanks
for pointing it out.


Tim


More information about the freebsd-current mailing list