From patchwork Thu Dec 6 18:08:21 2018 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: 30566 Received: (qmail 9819 invoked by alias); 6 Dec 2018 18:08:54 -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 9732 invoked by uid 89); 6 Dec 2018 18:08:53 -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, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*F:D*br X-HELO: mo20.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: Subject: [PATCH v1 4/7] ldbl-opt: Reuse argp tests that print long double Date: Thu, 6 Dec 2018 16:08:21 -0200 Message-ID: <20181206180824.1761-5-gabriel@inconstante.eti.br> In-Reply-To: <20181206180824.1761-1-gabriel@inconstante.eti.br> References: <20181206180824.1761-1-gabriel@inconstante.eti.br> MIME-Version: 1.0 X-Ovh-Tracer-Id: 7327919547650002627 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrudefjedguddtkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecu 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