summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-07-03 10:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2019-03-01 15:23:16 -0300
commitea2d89d01c2be3e87eced8bb51ce5dc66d09ac35 (patch)
tree14890dd66137a5a9bae08897dd91851bbc8447e6 /sysdeps/ieee754
parent6e1f6440b99d74db314a9f1a1b27c050ef62a45c (diff)
downloadglibc-ea2d89d01c2be3e87eced8bb51ce5dc66d09ac35.tar.gz
ldbl-opt: Reuse argp tests that print long double
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.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/ldbl-opt/Makefile10
1 files changed, 10 insertions, 0 deletions
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