From owner-freebsd-standards@FreeBSD.ORG Mon Apr 21 07:17:33 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFFB137B401; Mon, 21 Apr 2003 07:17:33 -0700 (PDT) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 417F643F3F; Mon, 21 Apr 2003 07:17:33 -0700 (PDT) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id 96DE39C4C; Mon, 21 Apr 2003 10:02:54 -0400 (EDT) Date: Mon, 21 Apr 2003 10:02:54 -0400 From: Mike Barcroft To: David Leimbach Message-ID: <20030421100254.A11165@espresso.bsdmike.org> References: <20030421173354.A41423@dilbert.robbins.dropbear.id.au> <938EF288-73EF-11D7-98DE-0003937E39E0@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <938EF288-73EF-11D7-98DE-0003937E39E0@mac.com>; from leimy2k@mac.com on Mon, Apr 21, 2003 at 06:51:24AM -0500 Organization: The FreeBSD Project cc: freebsd-current@FreeBSD.ORG cc: freebsd-standards@FreeBSD.ORG cc: Tim Robbins Subject: Re: test-strerror regression test X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 14:17:34 -0000 David Leimbach writes: > I guess my point was I didn't know how to make these "conform" when I > looked > at the POSIX standard for SUS. All it said about strerror is that any > int should > work and return a string per the locale that is currently set. I agree with Tim; the main purpose is to prevent regressions in our implementation, not to evaluate conformance to any given standard. In fact, I created the test to ensure I didn't break strerror() or strerror_r() while fixing a conformance bug in strerror_r(). > > cc -O -pipe -mcpu=pentiumpro test-wmemset.c -o test-wmemset > > for p in test-strerror test-wcschr test-wcscmp test-wcslen > > test-wmemchr test-wmemset; do > > /home/tim/p4/wchar/src/tools/regression/lib/libc/string/$p; done > > PASS strerror() > > Failed for me due to failing assertions. What's the output of: ident /usr/lib/libc.so.* | grep strerror.c Best regards, Mike Barcroft