From owner-freebsd-current@FreeBSD.ORG Thu Apr 10 01:59:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4221137B401 for ; Thu, 10 Apr 2003 01:59:06 -0700 (PDT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF0F043F3F for ; Thu, 10 Apr 2003 01:59:05 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (210.50.216.203) by smtp01.syd.iprimus.net.au (7.0.012) id 3E8A144A001F0415; Thu, 10 Apr 2003 18:59:03 +1000 Received: by dilbert.robbins.dropbear.id.au (Postfix, from userid 1000) id 9303BC90D; Thu, 10 Apr 2003 18:58:58 +1000 (EST) Date: Thu, 10 Apr 2003 18:58:58 +1000 From: Tim Robbins To: Dung Patrick Message-ID: <20030410185858.A2451@dilbert.robbins.dropbear.id.au> References: <1049960399.c8e66d40dkt@digitalme.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1049960399.c8e66d40dkt@digitalme.com>; from dkt@digitalme.com on Thu, Apr 10, 2003 at 03:39:59PM +0800 cc: freebsd-current@freebsd.org Subject: Re: regression testing fail in 5.0-Current [locale] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 08:59:06 -0000 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