From patchwork Thu Feb 21 20:57:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 1046453 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-100204-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=inconstante.eti.br Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="Ozi8n4P7"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4456HS0qPGz9s70 for ; Fri, 22 Feb 2019 07:57:39 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=l7Sk6 TDFDmeDom8lcE7zezuE/cDSjtpwYKp5zox5VzziWDuYGlTkJn7fZbjv57ZouN3VZ Z9GIjcHBLW3E3vcwY+92TO9B422BxWTJBtEMA6tUXDSNZGYUR/dMhxPQ2OW6puNj 1OtMHaQHASz+EkvVSh2ObUMNMfIdPqTFJb7JdQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=KteMw6jaAM2 SuQHXM/GB7txTxHU=; b=Ozi8n4P7DZ+C7Ahx163zsJMDepJ9i1QuKzm0FoW521q bkyAlb0x1kBIymel72qcxSxR+awGFmLOHQPy3RponeQqwddNQFc8OfRQPGvw7xhL xPmRBryub4DGwSHYFkvSymHxFJFKmvqV2pWJRjIpaekQE50j6upKAFuqPLjAFozk = Received: (qmail 52859 invoked by alias); 21 Feb 2019 20:57:24 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 52752 invoked by uid 89); 21 Feb 2019 20:57:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=H*F:D*br X-HELO: smtpout1.mo528.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: Subject: [PATCH v4 2/5] ldbl-opt: Reuse argp tests that print long double Date: Thu, 21 Feb 2019 17:57:03 -0300 Message-ID: <20190221205706.12225-3-gabriel@inconstante.eti.br> In-Reply-To: <20190221205706.12225-1-gabriel@inconstante.eti.br> References: <20190221205706.12225-1-gabriel@inconstante.eti.br> MIME-Version: 1.0 X-Ovh-Tracer-Id: 1202461104577302211 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtdekgddugeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenuc No changes since v3. No changes since v2. No changes since v1. -- 8< -- The test case tst-ldbl-argp checks that the conversion specifier '%Lf' correctly prints long double values with the default long double format for a platform. This patch reuses the test case for long double with the same format as double (-mlong-double-64). Tested for powerpc64 and powerpc64le. * sysdeps/ieee754/ldbl-opt/Makefile [subdir == argp] (tests-internal): Add tst-nldbl-argp. [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule. [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable. --- sysdeps/ieee754/ldbl-opt/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sysdeps/ieee754/ldbl-opt/Makefile b/sysdeps/ieee754/ldbl-opt/Makefile index 64fdb8cb9e..8a2c129f5f 100644 --- a/sysdeps/ieee754/ldbl-opt/Makefile +++ b/sysdeps/ieee754/ldbl-opt/Makefile @@ -179,3 +179,13 @@ CFLAGS-test-nldbl-redirect.c += -mlong-double-64 $(objpfx)test-nldbl-redirect: $(objpfx)libnldbl_nonshared.a endif + +# Tests for argp.h functions (reusing the relevant tests from argp/) +ifeq ($(subdir),argp) +tests-internal += tst-nldbl-argp + +$(objpfx)tst-nldbl-argp.c: tst-ldbl-argp.c + cp $< $@ + +CFLAGS-tst-nldbl-argp.c += -mlong-double-64 +endif