Received: by mail.netbsd.org (Postfix, from userid 605) id A676B84EA0; Fri, 1 Dec 2017 01:08:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1766984E92 for ; Fri, 1 Dec 2017 01:08:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id lyZuVcwQ_qdq for ; Fri, 1 Dec 2017 01:08:36 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id AD6F784CD9 for ; Fri, 1 Dec 2017 01:08:36 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D64D0FB40; Fri, 1 Dec 2017 01:08:35 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 1 Dec 2017 01:08:35 +0000 From: "Robert Elz" Subject: CVS commit: src/tests/lib/libc/locale To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20171201010835.D64D0FB40@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Robert Elz" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: kre Date: Fri Dec 1 01:08:35 UTC 2017 Modified Files: src/tests/lib/libc/locale: t_sprintf.c Log Message: Since the C standard allows for intermediate floating results to contain more precision bits than the data type expects, but (kind of obviously) does not allow such values to be stored in memory, expecting the value returned from strtod() (an intermediate result) to be identical (that is, equal) to a stored value is incorrect. So instead go back to checking that the two numbers are very very close. See comments added to the test for more explanation. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libc/locale/t_sprintf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.