glibc/argp
Gabriel F. T. Gomes 2c03961fce Add tests for argp_error and argp_failure with floating-point parameters
The functions argp_error and argp_failure, from argp.h, have a format
string as parameter, which can possibly request the printing of
floating-point values.  These values could be of long double type, which
can have different formats, depending on the architecture and on
compilation parameters (for instance, on powerpc, long double values can
have double format (-mlong-double-64) or IBM Extended Precision format
(-mlong-double-128)).

This patch adds tests for argp_error and argp_failure that contain a
format string with double and long double conversion specifiers ('%f'
and '%Lf').  These tests automatically check that the default format of
the long double type works.  A future patch will extend the test for
platforms that can have an optional format for long double.

Tested for powerpc64le.

	* argp/Makefile (tests): Add tst-ldbl-argp.
	* argp/tst-ldbl-argp.c: New file.
2018-11-06 11:19:54 -02:00
..
Makefile Add tests for argp_error and argp_failure with floating-point parameters 2018-11-06 11:19:54 -02:00
Versions Update ABI information 2012-01-07 19:23:45 -05:00
argp-ba.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-eexst.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-fmtstream.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-fmtstream.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-fs-xinl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-help.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-namefrob.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-parse.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-pv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-pvh.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-test.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-xinl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
bug-argp1.c
bug-argp2.c
tst-argp1.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-argp2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-ldbl-argp.c Add tests for argp_error and argp_failure with floating-point parameters 2018-11-06 11:19:54 -02:00