]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ldbl-opt: Reuse argp tests that print long double
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Tue, 3 Jul 2018 13:43:13 +0000 (10:43 -0300)
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Fri, 1 Mar 2019 18:23:16 +0000 (15:23 -0300)
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 powerpc, powerpc64 and powerpc64le.

ChangeLog
sysdeps/ieee754/ldbl-opt/Makefile

index cd1c9a5df8effb941c39310c16b669a2a9f9a8b0..80de7958607004ff637f54dfcfc078e907995678 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
+
+       * 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.
+
 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
 
        [BZ #23983]
index 64fdb8cb9e76b94c16f329de9675d35b6fdabeb5..8a2c129f5fc2a28458728622c165f71b0fe59516 100644 (file)
@@ -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