From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id AFE6F1F453 for ; Thu, 21 Feb 2019 20:57:36 +0000 (UTC) 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=azfr6 /3PcldS5WxptSKpIAHTjitMOMjrQ6Es68xwf641T5nnZoaiNa/3uJz+PA+Hx8qay qIeE61d9cDLodZYz/AgK8/DooDskV9twvHWG3F20JPJDnebQaShWUWN/cDOwWnr8 CHEkQ8l4qEczZA1054GJOb/fnsrtH8GDs9T/yY= 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=EGe/YtWIAiMMbVZAbG4XraqORPWbauN6O2zGj+97cPJ bXKbmRDqf08bio0JVrGaOkhv8ZK5xYR/7ogEVlskFZuc1QuZ4JlMOTRdT4q0gyVl D6G0dn0GcEoYQjDVnzsvtpX5ku01jJNjsFiqliMPFJf5ry7KIgz2fyEh1bzTamUU = 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 Received: (qmail 52752 invoked by uid 89); 21 Feb 2019 20:57:24 -0000 Authentication-Results: sourceware.org; auth=none 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 Content-Type: text/plain 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 -- 2.14.5